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. I'm having a hard time getting NPCs to work. With "chat" as the shop name, I get invalid command server responses, with NPC ID's in the shops, i get "find an NPC to use the shop" when doing /shop, and when I press E on the NPCs I only get the response of the NPC turning my direction. I am fairly sure the json is fine, I copy pasted it from my other server, which is working fine, and only changed the NPC numbers, which I quadruple checked to confirm they were correct. No, I have no rebound my use key. Yes, I have run the json through lint. Yes, I have gotten the plugin working on my other server. The setup here is nearly identical, just on a new host.
     

    Attached Files:

  2. "79363678": { -----> is the id NPC or Zone ID ? Id is too short.
    "buy": [
    "Water Plant Teleport", ~
    ..
    ~ "Rusty Island"
    ],
    "description": "You currently have {0} coins to spend.",
    "name": "Rad Town Teleport"
    },
    I have tried instead id NPC change id zone. Nothing happens.
     
    Last edited by a moderator: Feb 10, 2016
  3. That ID must match the NPC id you created.

    you can get the NPC id by doing an /npc_list or looking at the json.

    All the NPC numbers in my list are unique to my NPCs on my server. Yours will be different ids.
    [DOUBLEPOST=1455129779][/DOUBLEPOST]
    The issue is with your HumanNPC json. That is where the Object Reference issue is occurring.
     
  4. Доброго времени суток! Подскажи пожалуйста что я делаю не так, установил NPC, установил экономику, установил шоп. Вбил в id магазина id NPC. К NPC подхожу жму Е он на меня поворачивается и все... Что я делаю не так?? На команды\id магазина также не отвечает сервер. При вводе в чат /shop вообще никакой реакции, молчание в ответ.
     
  5. when I use / shop, an error
    please help, I do not work plugin, an error in the console that can be wrong?

    [Oxide] 12:51 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
     
  6. Hello! I've the same problem..
     
  7. I have added all items and have some weapon shops, how do I access them in game considering I am using Kits & Economy, but no NPC?
     
  8. I suddenly have no items in my shops! Valid json file, worked a little while ago and now it just... doesn't ! ack! The shop gui opens, but they have nothing inside, although the file I created and was using is intact, still. Help!
     
  9. Question time :/

    [ChatCommand("shop")]
    If i change this command to "bpshop" in the .cs file, reinstall. Will that be all I need to do??

    From there, I want to install the same mod twice, and have the second "itemshop"
    I dont like the page transitions in a shop and many dont even know there are more items...

    So I want two chat shops...
    2 .cs files and 2 config files..

    Will the second GUIshop2.cs file, generate GUIshop2.json ??
    If it will, then I should be ok to go ahead..
    If not, can this be edited to have different chat commands to show different chat shops??
    [DOUBLEPOST=1455423844][/DOUBLEPOST]
    Chances are, if you just edited the config file you done one of two things...
    A: Not a valid file.. one wrong ";" and it wont work..
    B: You added the items where you add images etc, but didn't place them in the shops below...

    eg:
    "Large Chest BP": {
    "buy": "100000",
    "img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211200336",
    "item": "large chest bp",
    "sell": "10"
    },
    The item is added with that. But wont show in the shop without this...
    "Shop - Shop List": {
    "NPC_ID_HERE": {
    "buy": [
    "Large Chest BP"
    ],
    "description": "You currently have {0} coins to spend in this builders shop",
    "name": "SHOP_NAME_HERE"
    },
     
  10. I thank you for your reply, but I've had that problem too, and learned the hard way that it not only won't work, but will be set back to default, thanks to my host I think; I won't even get the npc to bring up the shops at all if it's a misplaced or missing comma, etc. I'm thinking it may be a mod interference, and am looking into it- the oddest thing was that it began with ONE npc not bringing up the shop at all, then to all the rest showing empty shops a few hours later. So I'm figuring with that unpredictability, it must be conflict with another mod. I stuck a few in there yesterday, and am looking into it- if I find out what it was I'll post so others know what mod might have issues with this. It's certainly a large part of my server and I've worked SO hard to get all the items in there, I'm NOT going to just say it doesn't work and ditch it! When it's working, it's freaking perfect! :)--and yes, I have been checking and double-checking everything through the json file editor/checker!! Invaluable, that.
     
  11. I keep getting a bug with my server, i have configured it up all to work but when i go to the npc and tap e on them it just makes them spin around, and when i do /shop nothing shows up in chat, any ideas to fix?
     

  12. Show me your config file. Its most likely something small
     
  13. It's over 1500 lines long, and it's still validating in the JSONLint validator... but sure, have a peek! BTW, the shop OPENS, but EMPTY on all my NPC but one, which doesn't open at all when he worked just fine a couple days ago. I took off the mod (airdrop controller) that I'd added since then but it hasn't affected the shops. (edited to include CORRECT file and specify empty shops and mod removal)
     

    Attached Files:

    Last edited by a moderator: Feb 14, 2016
  14. Can you help me? the icons are images with a brightness / contrast too high, and this is ugly, has a way to fix?
    PRINT: Screenshot
     
  15. Try this
    [DOUBLEPOST=1455499521][/DOUBLEPOST]
    It all depends where you get the images from. rust wiki is best place.
     

    Attached Files:

  16. Can Anyone Help Me? I cant access the shops when i go up to a npc and press e they just spin around and when i do /shop it comes up with nothing in chat. Here are my files Officer JAKE, you might know whats going on :)
     

    Attached Files:

  17. If 5498734 is the ID of your NPC then I don't see any problem in your GUIShop.json file...
    You have one NPC set as......

    "1234567": {
    "buy": [
    "Apple",
    "BlueBerries",
    "Assault Rifle",
    "Bolt Action Rifle"
    I imagine that's a test or doesn't work, as that's an unlikely NPC ID...

    Otherwise. Im not sure I can help you. Unless its purely GUIshop based..
    I don't use NPC / Waypoints / Pathfinding.. So I know nothing about them....

    If your NPC is spinning. I would think perhaps it's HumanNPC or waypoints creating this...
    Your shop seems ok assuming the NPC ID is correct
    [DOUBLEPOST=1455519663][/DOUBLEPOST]
    PS... Your chat shop might be conflicting kits... I'm not sure...
    Its the only thing in the chat shop, so im not sure...
     
  18. But then if i get rid of kits doesnt that mean the npc's will have no clothes?

    I guess i will just play around with it then :) thanks for the help ! Maybe its my zone manager plugin that conflicts with the npc's
     
  19. Anytime you have multiple mods working together, it becomes complicated..

    Start from the begining.. Add a NPC... Test, give it a kit, test, add the shop, test...
    Should be easy from there
     
  20. ok if you have read the threads before this will sound similar but my problem is weather i try /shop or program it for an NPC and go to him nothing happends has anyone figured out how to fix this issue?