
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
-
-
-
When they call the shop this is displayed
But when they buy, they receive nothing like it for me.Attached Files:
-
-
For example, you had this in your config file: "item": "Hunting Bow",
The correct way to do it is this: "item": "hunting bow",
Under the item part, you should never use capital letters. I have done you a massive favour and gone through the WHOLE thing and changed them all. You should now have no issues getting your items.
HOWEVER, there is a second issue in your config file that I will not touch as I will leave it up to you to figure out what you want where.
You're only supposed to have one "chat" shop in your config file. You have 2 or 3. Items you want to appear in /shop all need to be merged into one "shop" rather than 2 or 3.
You can still have as many NPC shops as you'd like with as many different items in each shop as you want.
Upload your new config file and do oxide.reload GUIShop in the console and then /shop should work (when you've set it up properly that is).
If you need help getting it into one then I can help you a bit more.Attached Files:
-
-
The file i took it in a post here and edit
except that
"Shop - Balance": false,
"Shop - Reduce": {
"Bronze": 3,
"Elite": 0,
"Gold": 7,
"Silver": 5,
"VIP": 0
I did not create a group
It may be that simple player can not buy or sell?
-
No, it's different group i have on my server. They're VIP and i want give us reduce for shop
-
Hello i can only sell may items in store, can you help me ?
{
"Message - Bought": "You've successfully bought {0}x {1}",
"Message - Error - Building Blocked": "You cannot shop while in building blocked area.",
"Message - Error - Command Multiple": "Can't buy multiple",
"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 - Not Nothing": "You cannot buy nothing of this item.",
"Message - Error - Redeem Kit": "WARNING: There was an error while giving you this kit",
"Message - Sold": "You've successfully sold {0}x {1}",
"Shop - Balance": true,
"Shop - Shop Categories": {
"Apple": {
"buy": "2",
"img": "http://vignette2.wikia.nocookie.net...test/scale-to-width-down/50?cb=20151106061034",
"item": "apple",
"sell": "1"
},
"BlueBerries": {
"buy": "2",
"img": "http://vignette1.wikia.nocookie.net...test/scale-to-width-down/50?cb=20151106061231",
"item": "blueberries",
"sell": "1"
},
"Cooked Pork": {
"buy": "5",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211201237",
"item": "Cooked Pork",
"sell": "2"
},
"Water Jug": {
"buy": "2",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160422072821",
"item": "Water Jug",
"sell": "1"
},
"Bandage": {
"buy": "10",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106061541",
"item": "Bandage",
"sell": "5"
},
"Medical Syringe": {
"buy": "20",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106061059",
"item": "Medical Syringe",
"sell": "10"
},
"Hemp Seed": {
"buy": "5",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160708084856",
"item": "Hemp Seed",
"sell": "2"
},
"Semi-Automatic Pistol": {
"buy": "60",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211200319",
"item": "Semi-Automatic Pistol",
"sell": "30"
},
"Thompson": {
"buy": "250",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160226092921",
"item": "Thompson",
"sell": "125"
},
"Assault Rifle": {
"buy": "500",
"img": "http://vignette3.wikia.nocookie.net...test/scale-to-width-down/50?cb=20160211200609",
"item": "assault rifle",
"sell": "250"
},
"Bolt Action Rifle": {
"buy": "700",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211200415",
"item": "bolt action rifle",
"sell": "350"
},
"4x Zoom Scope": {
"buy": "100",
"img": "http://vignette4.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211201610",
"item": "4x Zoom Scope",
"sell": "50"
},
"M249": {
"buy": "3000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151112221315",
"item": "M249",
"sell": "800"
},
"Holosight": {
"buy": "75",
"img": "http://vignette4.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211200620",
"item": "Holosight",
"sell": "33"
},
"Cloth": {
"buy": "3",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106071629",
"item": "Cloth",
"sell": "1"
},
"Animal Fat": {
"buy": "3",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106060911",
"item": "Animal Fat",
"sell": "1"
},
"Build Kit": {
"buy": "10",
"img": "http://oxidemod.org/data/resource_icons/0/715.jpg?1425682952",
"item": "kitbuild",
"sell": "8"
}
},
"Shop - Shop Icon Url": "",
"Shop - Shop List": {
"chat": {
"buy": [
"Apple",
"BlueBerries",
"Cooked Pork",
"Water Jug",
"Bandage",
"Medical Syringe",
"Hemp Seed",
"Semi-Automatic Pistol",
"Thompson",
"Assault Rifle",
"Bolt Action Rifle",
"4x Zoom Scope",
"M249",
"Holosight",
"Cloth",
"Animal Fat"
],
"sell": [
"Apple"
],
"description": "You currently have {0} coins to spend in this farmers market",
"name": "Farmers Market",
"sell": [
"Apple",
"BlueBerries",
"Cooked Pork",
"Water Jug",
"Bandage",
"Medical Syringe",
"Hemp Seed",
"Semi-Automatic Pistol",
"Thompson",
"Assault Rifle",
"Bolt Action Rifle",
"4x Zoom Scope",
"M249",
"Holosight",
"Cloth",
"Animal Fat"
]
},
"5498734": {
"buy": [
"Apple",
"BlueBerries",
"Cooked Pork",
"Water Jug",
"Bandage",
"Medical Syringe",
"Hemp Seed",
"Semi-Automatic Pistol",
"Thompson",
"Assault Rifle",
"Bolt Action Rifle",
"4x Zoom Scope",
"M249",
"Holosight",
"Cloth",
"Animal Fat"
],
"description": "You currently have {0} coins to spend in this weapons shop",
"name": "Weaponsmith Shop",
"sell": [
"Apple",
"BlueBerries",
"Cooked Pork",
"Water Jug",
"Bandage",
"Medical Syringe",
"Hemp Seed",
"Semi-Automatic Pistol",
"Thompson",
"Assault Rifle",
"Bolt Action Rifle",
"4x Zoom Scope",
"M249",
"Holosight",
"Cloth",
"Animal Fat"
]
},
"chat": {
"buy": [
"Apple",
"BlueBerries",
"Cooked Pork",
"Water Jug",
"Bandage",
"Medical Syringe",
"Hemp Seed",
"Semi-Automatic Pistol",
"Thompson",
"Assault Rifle",
"Bolt Action Rifle",
"4x Zoom Scope",
"M249",
"Holosight",
"Cloth",
"Animal Fat",
"Build Kit"
],
"description": "You currently have {0} coins to spend in this farmers shop",
"name": "Farmers Shop"
}
}
} -
View attachment 30170
Sorry for the inconvenience
I found my problem
I translated my file GuiShop.cs but that does not work.
I do not know what to do to make it work
View attachment 30170Attached Files:
Last edited by a moderator: Nov 12, 2016 -
-
Here's my .JSON file. I've placed an NPC in world. I have all the dependencies installed. NPC works, I just can't get the GUIShop.JSON to work. Can someone help please? Thanks!
I've also been seeing others' files and trying to make sure I have set everything similar. I have also gone in and done the oxide.reload HumanNPC command and then retry and still nothing. I could sure use the help and point out what I'm missing. Thank you in advance!Attached Files:
-
-
Correction. Tested .JSON file, says valid, but still can't get it to work for the NPC or the /shop command in world.
Attached Files:
Last edited by a moderator: Nov 13, 2016 -
-
Hello ! I love this plugin ! But.. Can you add the quantity value in shops ? Because actually shop can be only admin shop, I would like create sale hotel with quantity, when un item is bought, the money of the buyer go to the money of the saler of this item.
I think is a very good idea for this type of plugin ! -
-
P.S if you do it i will have your babies -
-
Edit: @UkFsG you're a top bloke thank you.Last edited by a moderator: Nov 17, 2016 -
Can I give 10% discount for VIPs on the GUI Shops on NPCs?
-
How can I put the NPC just to Sell 1 item? ( without options to buy 100,1000 or ALL)
-
why can all the items be in the chat shop already i spent hours trying to get all this to work and end up breaking it all and i just want a simple template of all the items or useful items in the shop >_<
-
I do not understand
in NPC USERID:
you must use /npc_list to get the list of the NPC IDs and place the id of the NPC that you want to be this market.
You may use "0" as ID, this will ACTIVATE the /shop command.
if NO "0" markets are set, the /shop will not work and the shops will only be avaible via NPCs.
How do you set a market to "0" ???
{
"Message - Bought": "You've successfully bought {0}x {1}",
"Message - Error - Building Blocked": "You cannot shop while in building blocked area.",
"Message - Error - Command Multiple": "Can't buy multiple",
"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 - Not Nothing": "You cannot buy nothing of this item.",
"Message - Error - Redeem Kit": "WARNING: There was an error while giving you this kit",
"Message - Sold": "You've successfully sold {0}x {1}",
"Shop - Balance": false,
"Shop - Shop Categories": {
"Assault Rifle": {
"buy": "4000",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405105940",
"item": "assault rifle",
"sell": "3000"
},
"Bolt Action Rifle": {
"buy": "5000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211200415",
"item": "rifle.bolt",
"sell": "4000"
},
"Custom SMG": {
"buy": "3000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151108000740",
"item": "smg.2",
"sell": "2000"
},
"LR-300 Assualt Rifle": {
"buy": "4000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160901064335",
"item": "rifle.lr300",
"sell": "3000"
},
"Rocket Launcher": {
"buy": "8000",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106061852",
"item": "rocket.launcher",
"sell": "6000"
},
"Thompson": {
"buy": "2000",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160226092921",
"item": "smg.thompson",
"sell": "1000"
}
},
"Shop - Shop Icon Url": "",
"Shop - Shop List": {
"chat": {
"buy": [
"Bolt Action Rifle",
"LR-300 Assualt Rifle",
"Assault Rifle",
"Thompson",
"Custom SMG",
"Rocket Launcher"
],
"description": "Get the advantage!",
"name": "Blitz Survival Shop",
"sell": [
"Bolt Action Rifle",
"LR-300 Assualt Rifle",
"Assault Rifle",
"Thompson",
"Custom SMG",
"Rocket Launcher"
]
}
}
}
[DOUBLEPOST=1480305275][/DOUBLEPOST]WOWOWOWOWOWOWOW. PLEASE REMOVE You may use "0" as ID, this will ACTIVATE the /shop command.
YOU HAVE TO SET IT TO "chat"
JUST UPDATE THE POST. IF ANYONE WANTS TO USE MY TEMPLATE JUST COPY AND PAST INTO THE CONFIG FILE GUIShop.json
[DOUBLEPOST=1480305338][/DOUBLEPOST]
{
"Message - Bought": "You've successfully bought {0}x {1}",
"Message - Error - Building Blocked": "You cannot shop while in building blocked area.",
"Message - Error - Command Multiple": "Can't buy multiple",
"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 - Not Nothing": "You cannot buy nothing of this item.",
"Message - Error - Redeem Kit": "WARNING: There was an error while giving you this kit",
"Message - Sold": "You've successfully sold {0}x {1}",
"Shop - Balance": false,
"Shop - Shop Categories": {
"Assault Rifle": {
"buy": "4000",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405105940",
"item": "assault rifle",
"sell": "3000"
},
"Bolt Action Rifle": {
"buy": "5000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211200415",
"item": "rifle.bolt",
"sell": "4000"
},
"Custom SMG": {
"buy": "3000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151108000740",
"item": "smg.2",
"sell": "2000"
},
"LR-300 Assualt Rifle": {
"buy": "4000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160901064335",
"item": "rifle.lr300",
"sell": "3000"
},
"Rocket Launcher": {
"buy": "8000",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106061852",
"item": "rocket.launcher",
"sell": "6000"
},
"Thompson": {
"buy": "2000",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160226092921",
"item": "smg.thompson",
"sell": "1000"
}
},
"Shop - Shop Icon Url": "",
"Shop - Shop List": {
"chat": {
"buy": [
"Bolt Action Rifle",
"LR-300 Assualt Rifle",
"Assault Rifle",
"Thompson",
"Custom SMG",
"Rocket Launcher"
],
"description": "Get the advantage!",
"name": "Blitz Survival Shop",
"sell": [
"Bolt Action Rifle",
"LR-300 Assualt Rifle",
"Assault Rifle",
"Thompson",
"Custom SMG",
"Rocket Launcher"
]
}
}
}