Names with spaces must be taken in quotes. "Bear Trap"
Shop [Unmaintained]
Discussion in 'Plugin Support' started by Bombardir, Nov 16, 2014.
-
Curious why this dosent shop up in the console with 0-logger?
-
Has anyone got a price list that people can use as a guide? I ask this as personally wouldn't have a clue what to charge and I am still quite new to the game. Thanks
-
Bombardir updated Shop with a new update entry:
Fix for new Oxide
-
shop no longer working for me after updating..
Unknown commands when typing /bsl 1 or /buy
using Oxide 2 build 97 -
Code:"Commands": { "Buy": "", "Sell": "", "List": "" }
-
I redownloaded, deleted config reinstalled several times now and it still comes up with unknown comand /bsl but yet it shows it in the help commands when I type /help
Shop.json has this at the end:
"Commands": {
"Buy": "buy", -- Chat commands, u can change their.
"Sell": "sell", -- To remove a command, leave it "" (for example "Sell": "")
"List": "bsl"
} -
-
that is copied and pasted right from the config
-
just delete old, and plugin will create a new -
ok wow i deleted it and restarted the server now all that in the file is:
{} -
Default config:
Code:{ "Commands": { "Sell": "sell", "Buy": "buy", "List": "bsl" }, "Generate": { "FileName": "PriceList", "Generate_Ingredients": false, "New_Price_List": true, "List_Items_Per_Page": 10, "Sell_Modificator": 0.5 }, "Messages": { "Sell_Not": "This item can not be sold.", "Buy_Succes": "Thank you for your purchase! We are waiting for you again! (You spent: %s)", "Sell_Error": "You can't sell what you do not have!", "List_Beg": "------------------- PAGE %s -------------------", "Matches": "Found multiple items: %s", "List": "Name: {Name}, Purchase price: {PPrice}, Sale price: {SPrice}", "Buy_Error2": "You don't have enough space in your inventory!", "Help": [ "/sell <item> -- Shows the sales price", "/sell <item> <amount> -- Sell item", "/buy <item> -- Shows the purchase price", "/buy <item> <amount> -- Buy item", "/bsl [<page>] -- Shows a list of the prices of a specific page" ], "ChatName": "[Shop]", "Buy_Error": "You do not have enough money (still need: %s)!", "Not_Find": "The item with this name can't be found in the store!", "List_End": "-------------------------------------------------", "Buy_Price": "The purchase price of this item: %s", "Sell_Succes": "You have successfully sold item for %s!", "List_No_Sale": "no", "Sell_Price": "Sale price of this item: %s", "Buy_Not": "This item can not be bought.", "List_No_Purchase": "no", "Syntax_Error": "Syntax Error! /%s <item> [<amount>]" } }
-
I use to use this plugin before, all others i used still work so far this is the only one that stopped.
Still same thing after I pasted that config in mine and restarted the server "unknown command bsl!" -
Maybe there is an error in the logs ? -
no errors in the log
I do get this in the Rusty Rcon tool:
ArgumentOutOfRangeException:Argument is out if range.
Parameter name: startIndex -
If that does not work reinstall oxide. -
ok I finially got it to show the list of items after doing a fresh reinstall of the server and updating to the new oxide however after it generated the new pricelist corse everything was 0 so i stopped the server and edited the pricelist and then it messed up again. So the problems is when I set prices in the file. I set all sell options to false, cause i don't want anyone selling anything and only set buy prices to certain items, rest i remove completly. I guess I am messing something up in the file and have to take my time, sucks lol.
I tried setting the base price section and restarting the server, it did change the file and added each items base materials but the prices didn't update.... -
-
Oxide] 5:18 AM [Info] [Logger] TROY <0 LvL> ran chat command: /buy box 1
[Oxide] 5:18 AM [Error] Shop: [string "Shop.lua"]:192: Object reference not set to an instance of an object
at PlayerInventory.GiveItem (Int32 itemid, Int32 amount, Boolean sendNotification) [0x00000] in <filename unknown>:0