Then I might do a video instruction, but it tomorrow.
And if you change the regular price in the store you do not need set new pricelist to true, only when you make them on the basis of reference prices.
Shop [Unmaintained]
Discussion in 'Plugin Support' started by Bombardir, Nov 16, 2014.
-
So I guess I was doing it wrong. Ca we add more to the cofig like weapons and other clothes?
Thanks for your help and great plugin! -
Last edited by a moderator: Nov 18, 2014
-
I'm not sure what you mean here?
Himself add you hardly can, need item id -
I got it working, sweet plugin and here is what I was doing wrong, hopefully save other people from making the same mistake.
When I modified the price file in the data directory (PriceList.json) to change the prices, I was also modifying the Shop.json file in the Config directory (setting the NewPriceList variable to true thinking this was needed when I update prices). This does NOT need to be set after you initialize (create) the PriceList.json file. So each time I was making changes to prices, I was setting this variable to true and thus regenerating all the other items I deleted, thus giving me lots of items set to 0/0 for buy, sell.
Works great now, no instruction video needed for this guy, lol.
Cheers,
Meejun.
-
[DOUBLEPOST=1416338608][/DOUBLEPOST]
For example you put the price of a wood: 10. And if something is composed of 100 wood, the plugin will set price: 1000. -
I just shut the server down, edited the pricelist (not base items) copied file over and started it up. It now says command unknown /bsl
I did remove some items from the store per the directions.
When I do a oxide.reload Shop I get this
oxide.reload Shop
[Oxide] 6:14 PM [Info] Loaded plugin Shop (v0.4.0) by Bombardir
[Oxide] 6:14 PM [Error] Failed to initialise plugin Shop (A .NET exception occured in user-code)
[Oxide] 6:14 PM [Debug] at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 -
-
-
get item with name not found when trying to buy 5.56 Rifle Cartridge
-
M@CH!N3, try to search 'Rifle Cartridge'. The plugin can filter '.' .
-
Bombardir updated Shop with a new update entry:
Minor Changes
-
-
noticed a glitch, if you by things like code locks it stacks them, but you MUST unstack them or else it will use the whole stack at once and you loose the extras. This goes with meat, locks, tools, etc.. everthing stacks when you buy multiple ones and if you don't unstack them you loose them. -
-
i have an error :
Code:10:41 PM [Error] Shop: A .NET exception occured in user-code at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.
Last edited by a moderator: Dec 5, 2014 -
-
4 Errors...
Code:1:06 AM [Error] Shop: A .NET exception occured in user-code at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:12 AM [Error] Shop: A .NET exception occured in user-code at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:12 AM [Error] Shop: A .NET exception occured in user-code at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 1:13 AM [Error] Shop: A .NET exception occured in user-code at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Last edited by a moderator: Dec 6, 2014 -
-
When trying to buy something like A Bear trap it brings up multiple items and then it don't let you buy that item or the other item. Tried case sensitive tried many things still don't let you buy most of the items