Why doesn't this work?
{
"Message - Bought": "You've successfully bought {0}x {1}",
"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": {
"Apple": {
"buy": "1",
"img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
"item": "apple",
"sell": "1"
},
"Assault Rifle": {
"buy": "6000",
"img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405105940",
"item": "assault rifle",
"sell": "3000"
},
"BlueBerries": {
"buy": "1",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405111338",
"item": "blueberries",
"sell": "1"
},
"M249": {
"buy": "10000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151112221315",
"item": "M249",
"sell": "5000"
},
"Bolt Action Rifle": {
"buy": "7000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405111457",
"item": "bolt action rifle",
"sell": "4000"
},
"Build Kit": {
"buy": "10",
"img": "http://oxidemod.org/data/resource_icons/0/715.jpg?1425682952",
"item": "kitbuild",
"sell": "8"
}
},
"Shop - Shop List": {
"1064751053": {
"buy": [
"M249",
"Assault Rifle",
"Bolt Action Rifle"
],
"description": "You currently have {0} coins to spend in this Weapons Smith",
"name": "Weapons Smith",
"sell": [
"Assault Rifle",
"Bolt Action Rifle",
"M249"
]
},
"Nothing For Now": {
"buy": [
"Assault Rifle",
"Bolt Action Rifle",
"M249"
],
"description": "You currently have {0} coins to spend in this Weapons Smith",
"name": "Weapons Smith",
"sell": [
"Assault Rifle",
"Bolt Action Rifle"
]
},
"Nothing For Now": {
"buy": [
"Build Kit"
],
"description": "You currently have {0} coins to spend in this builders shop",
"name": "Build"
}
}
}

GUI Shop
GUI Shop based on Economics. Supports NPC
Total Downloads: 11,480 - First Release: Aug 29, 2015 - Last Update: May 3, 2018
- 5/5, 38 likes
-
Should i downgrade somethng to make it work ? -
Plugin doesnt work with the NPC anymore, I found this in the log when I made contact with the NPC to buy:
Code:[Oxide] 12:41 PM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 12:41 PM [Debug] at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Int32 from, Boolean fullRefresh) [0x00000] in <filename unknown>:0 at Oxide.Plugins.GUIShop.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
-
[Oxide] 6:27 AM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
[Oxide] 6:27 AM [Debug] at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Int32 from, Boolean fullRefresh) [0x00000] in <filename unknown>:0
at Oxide.Plugins.GUIShop.cmdShop (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 -
(22:13:45) | [Oxide] 11:14 PM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
and
(22:50:55) | [Oxide] 11:51 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)Last edited by a moderator: Nov 22, 2015 -
use the attached file: GUI Shop | Page 14 | Oxide
-
(22:50:55) | [Oxide] 11:51 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
[DOUBLEPOST=1448233294][/DOUBLEPOST]Nevermind, got it. Also can you do special shops for specific ranks? -
Hi,
i want to add NPC so when player interact with him they will enter shop.I added NPC, than i edit config file so u cant use /shop in game but u need to find npc to shop.But when i try to interact with NPC , nothing happens and i got this error in console:
[Oxide] 12:51 AM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
[Oxide] 12:51 AM [Debug] at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Int32 from, Boolean fullRefresh) [0x00000] in <filename unknown>:0
at Oxide.Plugins.GUIShop.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
Can u help me with this? -
[Oxide] 7:06 PM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
there is no solution, or have no one else using the plugin? -
and again:
use this: GUI Shop | Page 14 | Oxide
or wait until reneb uploaded the fix -
Code:{ "Message - Bought": "You've successfully bought {0}x {1}", "Message - Error - Item Doesnt Exist": "WARNING: The item you are trying tobuy doesn't seem to exist", "Message - Error - Item Not Set Properly": "WARNING: The admin didn't setthis item properly! (item)", "Message - Error - Item Not Valid": "WARNING: It seems like it's not avalid item", "Message - Error - No Action In Shop": "You are not allowed to {0} in thisshop", "Message - Error - No Action Item": "You are not allowed to {0} this itemhere", "Message - Error - No Buy Price": "WARNING: No buy price was given by theadmin, you can't buy this item", "Message - Error - No Chat Shop": "You may not use the chat shop. You mightneed to find the NPC Shops.", "Message - Error - No Econonomics": "Couldn't get informations out ofEconomics. Is it installed?", "Message - Error - No NPC": "The NPC owning this shop was not found aroundyou", "Message - Error - No Sell Price": "WARNING: No sell price was given by theadmin, 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 thisitem.", "Message - Error - Not Enough Money": "You need {0} coins to buy {1} of{2}", "Message - Error - Redeem Kit": "WARNING: There was an error while givingyou this kit", "Message - Sold": "You've successfully sold {0}x {1}", "Shop - Shop Categories": { "Apple": { "buy": "2", "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640", "item": "apple", "sell": "1" }, "BlueBerries": { "buy": "2", "img": "http://vignette1.wikia.nocookie.net/play-rust/images/f/f8/Blueberries_icon.png/revision/latest/scale-to-width-down/100?cb=20150405111338", "item": "blueberries", "sell": "1" }, "Shop - Shop List": { "1007326697": { "buy": [ "Apple", "BlueBerries" ], "description": "You currently have {0} coins to spend in thisRestaurant shop", "name": "Restaurant", "sell": [ "Apple", "BlueBerries" ] } }
-
Nogrod - Working here, thank you!
-
it is working now but only with /shop command but it wont let me add sell items, NPC shop wont work also...
[DOUBLEPOST=1448244763][/DOUBLEPOST]
[DOUBLEPOST=1448244807][/DOUBLEPOST] -
Updated version work for me with NPC.
-
Hi, please if somebody already have a Json with all items, it could be nice to share, it could spare me a lot of time ^^'
Maybe on the description of the plugin there can be a second exemple json file with all current rust items so we just have to set up price and shops ( or whatever we want to change like names or images of items ) ?? -
Blastar - Look here a few pages ago has the file searches...
-
Till today i get some errors:
[Oxide] 7:06 PM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.3' (NullReferenceException: Object reference not set to an instance of an object)
[Oxide] 7:06 PM [Debug] at Oxide.Plugins.GUIShop.CreateShopOverlay (System.String shopname) [0x00000] in <filename unknown>:0
at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Int32 from, Boolean fullRefresh) [0x00000] in <filename unknown>:0
at Oxide.Plugins.GUIShop.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 -
Hello I come now to install the mod. when I hit / shop nothing happens and here are the logs :
[11/23/2015 7:59:53 PM] [Oxide] 7:59 PM [Debug] at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Int32 from, Boolean fullRefresh) [0x00000] in ‹filename unknown›:0
at Oxide.Plugins.GUIShop.cmdShop (.BasePlayer player, System.String command, System.String[] args) [0x00000] in ‹filename unknown›:0
at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in ‹filename unknown›:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in ‹filename unknown›:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in ‹filename unknown›:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in ‹filename unknown›:0
[DOUBLEPOST=1448306109][/DOUBLEPOST]I just use the one on page 14 and / shop works -
Hi again,
can someone tell me what i am doing wrong here, i keep getting error message with JSONLint (i am using NPC's for shop):
Code:{ "Message - Bought": "You've successfully bought {0}x {1}", "Message - Error - Item Doesnt Exist": "WARNING: The item you are trying tobuy doesn't seem to exist", "Message - Error - Item Not Set Properly": "WARNING: The admin didn't set thisitem properly! (item)", "Message - Error - Item Not Valid": "WARNING: It seems like it's not a validitem", "Message - Error - No Action In Shop": "You are not allowed to {0} in thisshop", "Message - Error - No Action Item": "You are not allowed to {0} this itemhere", "Message - Error - No Buy Price": "WARNING: No buy price was given by theadmin, you can't buy this item", "Message - Error - No Chat Shop": "You may not use the chat shop. You mightneed to find the NPC Shops.", "Message - Error - No Econonomics": "Couldn't get informations out ofEconomics. Is it installed?", "Message - Error - No NPC": "The NPC owning this shop was not found aroundyou", "Message - Error - No Sell Price": "WARNING: No sell price was given by theadmin, 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 youthis kit", "Message - Sold": "You've successfully sold {0}x {1}", "Shop - Shop Categories": { "Apple": { "buy": "2", "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640", "item": "apple", "sell": "1" }, "Black Raspberries": { "buy": "2", "img": "http://vignette4.wikia.nocookie.net/play-rust/images/6/6f/Black_Raspberries_icon.png/revision/latest/scale-to-width-down/100?cb=20151119214047", "item": "black.raspberries", "sell": "1" }, "BlueBerries": { "buy": "2", "img": "http://vignette1.wikia.nocookie.net/play-rust/images/f/f8/Blueberries_icon.png/revision/latest/scale-to-width-down/100?cb=20150405111338", "item": "blueberries", "sell": "1" }, "Can of Tuna": { "buy": "2", "img": "http://vignette4.wikia.nocookie.net/play-rust/images/2/2d/Can_of_Tuna_icon.png/revision/latest/scale-to-width-down/100?cb=20151106061943", "item": "can.tuna", "sell": "1" }, "Cooked Chicken": { "buy": "2", "img": "http://vignette3.wikia.nocookie.net/play-rust/images/6/6f/Cooked_Chicken_icon.png/revision/latest/scale-to-width-down/100?cb=20151108000759", "item": "chicken.cooked", "sell": "1" }, "Cooked Pork": { "buy": "2", "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Cooked_Pork_icon.png/revision/latest/scale-to-width-down/100?cb=20151106231440", "item": "pork.cooked", "sell": "1" }, "Torch": { "buy": "5", "img": "http://vignette1.wikia.nocookie.net/play-rust/images/4/48/Torch_icon.png/revision/latest/scale-to-width-down/100?cb=20151106061512", "item": "torch", "sell": "1" }, "Camera": { "buy": "100", "img": "http://vignette3.wikia.nocookie.net/play-rust/images/0/0e/Camera_icon.png/revision/latest/scale-to-width-down/100?cb=20151106060755", "item": "tool.camera", "sell": "50" }, "Hatchet": { "buy": "50", "img": "http://vignette1.wikia.nocookie.net/play-rust/images/0/06/Hatchet_icon.png/revision/latest/scale-to-width-down/100?cb=20151106061743", "item": "hatchet", "sell": "10" }, "Pick Axe": { "buy": "50", "img": "http://vignette4.wikia.nocookie.net/play-rust/images/8/86/Pick_Axe_icon.png/revision/latest/scale-to-width-down/100?cb=20151106061323", "item": "pickaxe", "sell": "10" }, "Salvaged Axe": { "buy": "80", "img": "http://vignette1.wikia.nocookie.net/play-rust/images/c/c9/Salvaged_Axe_icon.png/revision/latest/scale-to-width-down/100?cb=20151106060750", "item": "axe.salvaged", "sell": "20" }, "Salvaged Icepick": { "buy": "80", "img": "http://vignette1.wikia.nocookie.net/play-rust/images/e/e1/Salvaged_Icepick_icon.png/revision/latest/scale-to-width-down/100?cb=20151106061453", "item": "icepick.salvaged", "sell": "20" }, "Salvaged Hammer": { "buy": "80", "img": "http://vignette2.wikia.nocookie.net/play-rust/images/f/f8/Salvaged_Hammer_icon.png/revision/latest/scale-to-width-down/100?cb=20151106060804", "item": "hammer.salvaged", "sell": "20" }, "Survey Charge": { "buy": "150", "img": "http://vignette2.wikia.nocookie.net/play-rust/images/9/9a/Survey_Charge_icon.png/revision/latest/scale-to-width-down/100?cb=20151106061517", "item": "surveycharge", "sell": "75" }, "Timed Explosive Charge": { "buy": "750", "img": "http://vignette1.wikia.nocookie.net/play-rust/images/6/6c/Timed_Explosive_Charge_icon.png/revision/latest/scale-to-width-down/100?cb=20151106061610", "item": "explosive.timed", "sell": "300" }, "Supply Signal": { "buy": "1500", "img": "http://vignette3.wikia.nocookie.net/play-rust/images/2/24/Supply_Signal_icon.png/revision/latest/scale-to-width-down/100?cb=20151106071621", "item": "supply.signal", "sell": "1000" }, "Shop - Shop List": { "1007326697": { "buy": [ "Apple", "BlueBerries", "Black Raspberries", "Cooked Pork", "Can of Tuna", "Cooked Chicken" ], "description": "You currently have {0} coins to spend in Food shop", "name": "Food Shop", "sell": [ "Apple", "BlueBerries", "Black Raspberries", "Cooked Pork", "Can of Tuna", "Cooked Chicken" ] }, "Shop - Shop List": { "2040629953": { "buy": [ "Torch", "Camera", "Hatchet", "Pick Axe", "Salvaged Axe", "Salvaged Icepick", "Salvaged Hammer", "Survey Charge", "Timed Explosive Charge", "Supply Signal" ], "description": "You currently have {0} coins to spend in Tool shop", "name": "Tool Shop", "sell": [ "Torch", "Camera", "Hatchet", "Pick Axe", "Salvaged Axe", "Salvaged Icepick", "Salvaged Hammer", "Survey Charge", "Timed Explosive Charge", "Supply Signal" ] } } }
Code:Parse error on line 3: ...Item Doesnt Exist": "WARNING: The item y -----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['
-
How i can fix it ??
Code:(15:05:47) | [Oxide] 11:08 AM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.3' (KeyNotFoundException: The given key was not present in the dictionary.)