Hey @CrazyMonkeySteve
Where do i put the data for the shops/item info?
Also the default GUI i downloaded doesn't blacken the background

GUI Shop
GUI Shop based on Economics. Supports NPC
Total Downloads: 11,483 - First Release: Aug 29, 2015 - Last Update: May 3, 2018
- 5/5, 38 likes
-
-
[Oxide] 00:06 [Error] Failed to call hook 'ccmdShopBuy' on plugin 'GUIShop v1.3.0' (FormatException: Invalid format.)
-
Hello,
Does reload GUIShop, reload the json? Im adding new shops to existing NPCs but it wont update and requires a server restart?
--------------
Actually i think its because my other shops arent working.
Code:"2070164562": { "buy": [ "Apple", "Blueberries", "Bed", "Leather", "Cloth", "Wood", "Stone", "Rock", "Torch" ], "description": "You currently have {0} coins to spend in this General shop", "name": "General Shop", "sell": [ "Leather", "Cloth", "Wood", "Stone" ] }, "593838620": { "buy": [ "Bear Meat Cooked", "Raw Chicken Breast", "Cooked Pork Meat", "Cooked Wolf Meat" ], "description": "You currently have {0} coins to spend in this Restaurant", "name": "Restaurant 101", "sell": [ "Bear Meat", "Raw Chicken Breast", "Pork", "Raw Wolf Meat" ] },
------------------------------------------
FixedLast edited by a moderator: Apr 24, 2016 -
Items
I hope you mean that.
[DOUBLEPOST=1461520216][/DOUBLEPOST]klick on the word "Items" -
I have added Economics and the Shop as well as Kit plugins. This is the config I am using
{
"Message - Bought": "You've successfully bought {0}x {1}",
"Message - Error - Cooldown": "This item has a cooldown of {0} seconds.",
"Message - Error - Cooldown Amount": "This item has a cooldown and amount is limited to 1.",
"Message - Error - Invetory Full": "Your inventory is full.",
"Message - Error - Invetory Slots": "Your inventory needs {0} free slots.",
"Message - Error - Item Doesnt Exist": "WARNING: The item you are trying to buy doesn't seem to exist",
"Message - Error - Item Not Set Properly": "WARNING: The admin didn't set this item properly! (item)",
"Message - Error - Item Not Valid": "WARNING: It seems like it's not a valid item",
"Message - Error - No Action In Shop": "You are not allowed to {0} in this shop",
"Message - Error - No Action Item": "You are not allowed to {0} this item here",
"Message - Error - No Buy Price": "WARNING: No buy price was given by the admin, you can't buy this item",
"Message - Error - No Chat Shop": "You may not use the chat shop. You might need to find the NPC Shops.",
"Message - Error - No Econonomics": "Couldn't get informations out of Economics. Is it installed?",
"Message - Error - No NPC": "The NPC owning this shop was not found around you",
"Message - Error - No Sell Price": "WARNING: No sell price was given by the admin, you can't sell this item",
"Message - Error - No Shop": "This shop doesn't seem to exist.",
"Message - Error - Not Enough Items": "You don't have enough of this item.",
"Message - Error - Not Enough Money": "You need {0} coins to buy {1} of {2}",
"Message - Error - Redeem Kit": "WARNING: There was an error while giving you this kit",
"Message - Sold": "You've successfully sold {0}x {1}",
"Shop - Shop Categories": {
"Airdrop": {
"buy": "1000",
"cmd": [
"airdrop.toplayer $player.id",
"say $player.name bought an airdrop. Kill him!!!"
],
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
"sell": "1000"
},
"Apple": {
"buy": "1",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
"item": "apple",
"sell": "1"
},
"Assault Rifle": {
"buy": "10",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405105940",
"item": "assault rifle",
"sell": "8"
},
"BlueBerries": {
"buy": "1",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405111338",
"item": "blueberries",
"sell": "1"
},
"Bolt Action Rifle": {
"buy": "10",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405111457",
"item": "bolt action rifle",
"sell": "8"
},
"Build Kit": {
"buy": "10",
"img": "http://oxidemod.org/data/resource_icons/0/715.jpg?1425682952",
"item": "kitbuild",
"sell": "8"
}
},
"Shop - Shop List": {
"1234567": {
"buy": [
"Apple",
"BlueBerries",
"Assault Rifle",
"Bolt Action Rifle"
],
"description": "You currently have {0} coins to spend in this farmers market",
"name": "Fruit Market",
"sell": [
"Apple",
"BlueBerries",
"Assault Rifle",
"Bolt Action Rifle"
]
},
"5498734": {
"buy": [
"Assault Rifle",
"Bolt Action Rifle"
],
"description": "You currently have {0} coins to spend in this weapons shop",
"name": "Weaponsmith Shop",
"sell": [
"Assault Rifle",
"Bolt Action Rifle"
]
},
"chat": {
"buy": [
"Build Kit",
"Airdrop"
],
"description": "You currently have {0} coins to spend in this builders shop",
"name": "Build"
}
}
}
Which is default but only thing pops up in the ship is airdrop and build kit. But when trying to redeem/buy them they don't appear in my inventory. Something wrong here? -
Is it possible to have a Randomizer thrown in? For example buy "Mystery Box" for 500 and get 1 of any item from a prespecified list?
-
Can someone please explain why this code doesnt work for the NPC shop? Thank you.
"Shop - Shop Categories": {
"Bolt Action Rifle": {
"buy": "1000",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
"item": "Bolt Action Rifle",
"sell": "150"
},
"C4": {
"buy": "50000",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
"item": "Timed Explosive Charge",
"sell": "25000"
},
"Deadly Grenade": {
"buy": "500",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
"item": "F1 Grenade",
"sell": "100"
},
"Hunting Spear": {
"buy": "50",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
"item": "Stone Spear",
"sell": "25"
},
"Revolver": {
"buy": "399",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
"item": "Revolver",
"sell": "150"
}
},
"Shop - Shop List": {
"NPC 1657744932": {
"buy": [
"Bolt Action Rifle",
"Revolver",
"Timed Explosive Charge",
"F1 Grenade"
],
"description": "You currently have {0} coins to spend in this farmers market",
"name": "Fruit Market",
"sell": [
"Bolt Action Rifle",
"Revolver",
"Timed Explosive Charge",
"F1 Grenade"
]
}
}
} -
please someone help me... I'm banging my head against the desk trying to figure out WHY this doesn't work... This is my GUIShop.json file and in game the /shop pulls up the default "Build Kit" item and the NPC whos entity ID i've triple checked doesn't do anything.. what am I missing?
I'm not getting any error's it's just acting like the plugin isn't reading the json file. Is it something I'm doing or is there something I need to modify in the GUIShop.cs to make it read from the json file?Attached Files:
Last edited by a moderator: Apr 27, 2016 -
-
I tried finding the commands/config text for it but couldn't. What are the commands/config for:
Placing a kit in the shop,
Making an item to buy only 5 times in a time period Ex (5 c4 daily or every 8 hours),
Making a warp in the /shop to the npc shop (/warp to shop is the warp)
[DOUBLEPOST=1461796887][/DOUBLEPOST]
[DOUBLEPOST=1461796979][/DOUBLEPOST] -
-
-
[DOUBLEPOST=1461810721,1461798957][/DOUBLEPOST]So I was wrong even after fixing the issue with what i thought was a conflicting plugin I uploaded a new config with fixed Item ID's and it loads GUIShop but still just shows ONLY the default shop with the "Build Kit" no other items... here is my JSON is this an issue with my JSON or is there something I'm missing?Attached Files:
-
-
??
Also, try to change last shop to "chat" instead numbers..Last edited by a moderator: Apr 28, 2016 -
-
How do I make it buy multiple items? Like two items for the price of one?
-
What happens to me is if i have them both in config, i can enter "chat" shop but i see empty GUI. -
An alternative would be to set it up as a kit and add the kit to the shop instead.
To add kits, just replace the item name with the name of the kit
E.g.
"BP Frags Kit (300 Frags)": {
"buy": "500",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106061217",
"item": "bpfrags",
"sell": "100"
} -
Hello, i need some help, in my shop when i try to buy ak rifle i ve this message "You're not allowed to buy this item here", what's my problem? i don't use npc for shop. I join my config file.
Attached Files:
-
-
I keep getting told different things for what to use as the Item ID. Tried item ID, Item Name, Item Shortname.. I'm officially at a loss here.Attached Files:
Last edited by a moderator: Apr 30, 2016 -