},
"chat": {
"buy": [
"Assault Rifle"
The cs plugin file allready have a function for "chat" command

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
-
So if it already has a function that is set to chat should it not allow /shop command right off the bat?
-
wich bat? there is an ".cs" format for plugin. if config is setted to "chat" instead of any NPC id, then it should work if you write in chat /shop.
-
Copied and edited your code for my shop, but left the majority of it EXACTLY the same @xcode and still get this;
Code:[Oxide] 7:22 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 7:22 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
Last edited by a moderator: Mar 23, 2016 -
All images no longer work in the store?
-
-
How????? @GRIM|G4L|21Bravo
-
Attached Files:
-
-
Hey all.
I need help, I am trying to set up the shop to warp or tp someone on purchase of an item, does anyone know how to do that since the mods page with the instructions are gone??? -
This is the merchant:
"1359347565": {
"buy": [
"Midgard Gate",
"City of Hope"
],
"description": "You currently have {0} coins to spend on TeleWarps",
"name": "Midgard Warps",
"sell": []
},
This is the item (City of Hope i.e. warp)
"City of Hope": {
"buy": "10",
"cmd": [
"warp.playerto $player.name 1"
],
"img": "http://static1.wikia.nocookie.net/__cb20131212215455/leagueoflegends/images/e/e8/Teleport.png",
"sell": "0"
},
[DOUBLEPOST=1458991852][/DOUBLEPOST]Anyone know how to sell BluePrints? I can't figure out the item "name" -
And the solution to you will be the give mod that allows you to give BP and then use cmd to give to player
Also is there a way to add " to the script as the space between clan and playername seems 2 break it -
Try warp.playerto "yourself" and a warp ID number from within Console. If that works it must be the GUIShop having a typo?
I dont know what you mean about including " to seperate clan name. Warp should work on short names for example I do abs for my name instead of absolut. However, I think you can escape " with \"clan name\" but I haven't tested it on this plugin.
[DOUBLEPOST=1458996101][/DOUBLEPOST] -
But I dont know if this mod allows that. -
"C4 BP": {
"buy": "10000",
"cmd": [
"inv.giveplayer $player.name \"explosive.timed BP\" 1"
],
"img": "http://vignette1.wikia.nocookie.net...test/scale-to-width-down/50?cb=20151106061610",
"sell": "0"
},
You should be able to \"$player.name\" ??
[DOUBLEPOST=1458998794][/DOUBLEPOST]So.. I am trying to sell stacks of wood and stone. I have configured the price at .2 and .5 respectively and that works fine. The issue is I am using the GIVE plugin and although I have it configured at qty 1 costs .2 if you buy 100 it deducts that cost but only give "1" because it doesnt know any better. I figure I need to call the quantity purchased and have that be the "given" amount. Does this make sense?
Any idea how to execute?
Would it be something like this?
"Wood": {
"buy": ".1",
"cmd": [
"inv.giveplayer $player.name wood 'qty' "
],
"http://vignette4.wikia.nocookie.net...test/scale-to-width-down/50?cb=20151106061551",
"sell": "0"
}, -
Hello can you help me? I want to build a second shop with npc,i can make one npc to work but i dont know what to copy in config to make second npc with diferent items for him.pls help!
-
I'm on a mobile so it is difficult to copy/paste but if you look up a few comments I pasted an entire shop. If you copy and paste that section you should be good pending the items exist and the NPC id is correct. -
Hello I enter the game / shop and it passirt nix pure garnix what can that be please help
-
-
is ther a way to ad more than one ip to the same shop ?
like this :
"518700117" "518700118" : {
"buy": [
"xX"
],
"description": "You currently have {0} coins to spend in this Melee Weapon Shop",
"name": "Melee Weapon Merchant",
"sell": [
"XXX"
] -
What's Happening to GUI Shop? Will It Still be working? /Shop Works fine. but NPC Shop is having trouble. It's Just Weird. Did they stop Supporting this Plugin?