GUI Shop

GUI Shop based on Economics. Supports NPC

Total Downloads: 11,482 - First Release: Aug 29, 2015 - Last Update: May 3, 2018

5/5, 38 likes
  1. Hi, im having an issue getting the /shop command to work. would anyone be able to lend a hand as i just cant seem to figure it out?
     
  2. We need to revive this thread as it seems the new shop isn't working or is incompatible in some way
     
  3. I'm having some issues, whenever I use /shop in game I get this error message in Rusty console and shop doesn't work.

    [Oxide] 10:48 AM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 10:48 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
    [Oxide] 10:48 AM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 10:48 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


    I have an economy plugin, I am using the config provided in the plugin for GUIShop, and it still won't work. I feel like it was something stupid I missed. Thanks!
    [DOUBLEPOST=1455562385][/DOUBLEPOST]
    This is my config:

    {
    "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"
    },
    "Airdrop": {
    "buy": "1000",
    "img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
    "cmd": ["airdrop.toplayer $player.id", "say $player.name bought an airdrop. Kill him!!!"],
    "sell": "1000"
    },
    "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"
    }
    }
    }
     
  4. Hi, i put your config file into my config folder and it just throws up the one item that is build kit removing all the items you put in there? any ideas?
    [DOUBLEPOST=1455568517][/DOUBLEPOST]can anyone tell me what is wrong with this jason file? its a copy as i already have an unedited on on my drive. When i start the server all the shops dissapear and it leaves the last one for some reason?
     

    Attached Files:

  5. Anyone know how to get /shop to work?
     
  6. The /shop is still not working even with new configs..
    Anyone? Several people having this problem
     
  7. /shop works only half the stuff in shops tho trying a fix now and if it works will upload config and cs file for you guys
     
  8. Sounds good man
     
  9. Hi Guys, As far as im aware most of things are now in shop. Feel free to just add them to the locations and you should be good to go. All works on my server
     

    Attached Files:

  10. I'm not sure if I can make NPC's have this but I'll try. How the hell did you get it to work though?
     
  11. I got one of the old copies from this post. only had one thing working in it, found someones config file and more worked. Then managed to add all the things to the one that worked and now all in the shop. I think the plugin is a bit corrupt at the minute because as soon as you go to add something it just removes itself from the file and you are back to where you started.
     
  12. so BEAST 4 you are telling us the files you tried don't fully work?
     
  13. The files you download from here do not work. i followed it exact to how he showed and it just resets itself
     
  14. Maybe it's on read-only?
     
  15. No as i edited it on the Control panel through gaming deluxe which saves it.
    something is corrupting the file as it wont load/save it properly and just creates a new one. I used the json tester to see if its valid and it comes up valid, so i am unsure as to why its not working
     
  16. And we will never get a fix :(
     
  17. I have a fully working shop.
    I'll upload files when at PC..
    But I do not use NPC's
     
  18. I just need to get GUI Shop working to make a stabilized economy were players trading is no longer the only option
     
  19. Cheers Jake! ill see if i can do some config with npc's and let you know whats going on!
    [DOUBLEPOST=1455660595,1455593913][/DOUBLEPOST]@OfficerJAKE got those files ready? keen to check them out and see what i can config
     
  20. i have used the config of Beast 4 and everything work !