GUI Shop

GUI Shop based on Economics. Supports NPC

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

5/5, 38 likes
  1. Is this aimed at me?
     
  2. Anybody really! If I have a kit that is named "good" and people type /kit good normally, but I want to move it into a GUIShop NPC character. Do I just put "goods Kit" and does it have to be in the "CHAT" section or can it be in the vendor section?
     
  3. If you want an NPC to sell the kit, when editing the KIT you </kit hide true>,</kit npconly true> for it not to show up in kit list and be retrieved via NPC only. Next, you get the NPC's ID that will be your shop vendor, and place it in your GUIshop.json file, like so:

    "Shop - Shop List": {
    "1248011985": {
    "buy": [

    "Kit Display Name",
    "Building Plan",
    "Code Lock"
    ],
    "description": "You currently have {0} coins to spend in this builder's kiosk",
    "name": "The Edifice Complex",
    "sell": [
    "Wood",
    "Metal Fragments"
    ]



    Be sure to have it in your "Shop - Shop Categories" list so shops can grab the correct kit, above your shops lists--

    },
    "Jacket": {
    "buy": "600",
    "img": "http://vignette2.wikia.nocookie.net...test/scale-to-width-down/50?cb=20160129014304",
    "item": "jacket",
    "sell": "70"
    },

    "Kit Display Name": {
    "buy": "10000",
    "img": "http://web.url.for.pic",
    "item": "kitname",
    "sell": "0"
    },

    "Land Mine": {
    "buy": "1500",
    "img": "http://vignette3.wikia.nocookie.net...test/scale-to-width-down/50?cb=20150702222020",
    "item": "trap.landmine",
    "sell": "250"
    },
     
  4. DB114 Oxide build 2031 .... (don't ask my why it says v1.3.0 and not v1.3.1 but its the latest version on oxide)
    Code:
    (01:10:51) | [Oxide] 00:10 [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.3.0' (KeyNotFoundException: The given key was not present in the dictionary.)
    (01:10:51) | [Oxide] 00:10 [Debug]   at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Int32 from, Boolean fullPaint, Boolean refreshMoney) [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 (HookMethod 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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (01:10:51) | [Oxide] 00:10 [Info] [Better Chat]   [FFH] aarddi7: nope
     
  5. i cant get this to work can i get a little help please dont know where to add item
     
  6. [06/17/2016 10:12:28] [Oxide] 10:12 [Error] Error while compiling GUIShop.cs(132,58): error CS0234: The type or namespace name `unixTimestamp' does not exist in the namespace `Facepunch.Math'. Are you missing an assembly reference?
     
  7. I dont know if someone has already done this and posted it if so delete my post. Here is a full GUIShop.json of items and pricing based on the materials that go into each item took about 2 days of work so i hope everyone enjoys it
     

    Attached Files:

  8. hey guys, im back again with noob questions. A friend and I have been trying to get this here to work. however, it is not. We are using darkhero's json for pricing and everything seems fine with it. the gui pops up when you type /shop. but no item appears in the shop. any ideas where we are off track?
     
  9. My shops are only set up for NPC you'll have to go in and change them to chat, it will say something like
    },
    "1198322661": {
    "buy": [

    switch the numbers to say chat then shop will work i believe
     
  10. that is what i was think. i changed one and none of the items appeared still. i am slowly tweaking everything. thank you for the reply sir
    [DOUBLEPOST=1466659061][/DOUBLEPOST]I fixed it with Sami37 post on i believe page 39. THANK YOU everyone that helps out on this site. big big help
     
  11. How to change the ransparence of the background ?
     
  12. do you put the GUIShop.json in the server oxide pluging ? with the GUIShop.cs ?
     

  13. No you add it in the config folder \server\my_server_identity\oxide\config\ then added it there
     
  14. how to fix it? can someone help me?
     

    Attached Files:

  15. Its possiable to have more then one chat shop?If yes how?
     
  16. This right here.
    I'd actually like to have multiple shops with NPCs that only sell certain items. Carpenter sells wood, Mason sells stone, Blacksmith sells metal items etc.
    Could one write multiple config files that point to specific NPCs? I would imagine it would point to a player or NPC ID. Is that even possible? hmm...
     
  17. For some reason this that lets you sell 10k turns the background a blinking white
     
  18. Its doing all my screen White
    [DOUBLEPOST=1467818765][/DOUBLEPOST]
    its doing whenever i press e on the npc its bugging all white
     
  19. Guys i have a prob. Everytime i reload the plugin it tells me that it wont work cause there is no Economics plugin. Though i installed it. From the link on the shop side. [Oxide] 20:05 [Warning] [GUIShop] Economics plugin not found. GUIShopwill not function! How can i tell the shop that i have one ?
     
  20. Could it be possible add a limit to how much 'money' people can have at any one time?

    I'm having an issue of people gathering resources and selling them to the shop (even though its a massive % cut) to prevent people from raiding them.

    -edit-

    posted this in the economics thread too. sorry.