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
  1. },
    "chat": {
    "buy": [
    "Assault Rifle"
    The cs plugin file allready have a function for "chat" command
     
  2. So if it already has a function that is set to chat should it not allow /shop command right off the bat?
     
  3. 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.
     
  4. 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
    No hope trying EVERYTHING including retyping the WHOLE config by hand and setting EVERYTHING back to default. Please help @Wulf @GRIM|G4L|21Bravo
     
    Last edited by a moderator: Mar 23, 2016
  5. All images no longer work in the store?
     
  6. Bat was just a figure of speech sorry, But I did get it to work thanks for your help.
     
  7. Not really sure what issue your having as I too have just started using this plugin, How ever I downloaded the plugin from page 27 and its been working ever since without any issues.
     

    Attached Files:

  8. 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???
     
  9. Ya.. Here:
    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"
     
  10. Thanks alot, now I have the issue that is isnt warping me to that location even after I have given them the perm.
    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
     
  11. The group doesn't need permissions to warp the player. On my server I require them to be purchased and by removing the permissions from the groups the warps still work and the warp list is empty for the players.

    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]
     
  12. So in the mod you cant use " as it breaks the config, but when you do player.name it types [god] [skyrim] Alphawar and warp takes is as player [god] warp [skyrim] so I need to change $player.name to "$player.name" so when it changes it the thing will look like: "[god] [skyrim] Alphawar"
    But I dont know if this mod allows that.
     
  13. On gui shop I just added this for BP's for GIVE as you recommended and it worked like a charm!

    "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"
    },
     
  14. 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!
     
  15. Just copy and paste the section and change the NPC id number. The first shop should end in }, and the next should begin just after. Does this make sense?

    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.
     
  16. Hello I enter the game / shop and it passirt nix pure garnix what can that be please help
     
  17. cant spell normal language? why you write german mixed with english? search for my cs and json above or some pages before.
     
  18. 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"
    ]
     
  19. 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?