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. Nice work
    [DOUBLEPOST=1451827182,1451681086][/DOUBLEPOST]I currently use Nogrod's version of this plugin, which is found on page 14.
    I'm having some problems with the shop. Whenever i type /shop, this comes up in the chat.
    Unavngivet.png
    Here's what i typed in the config.

    Code:
    {
        "Admin": {
            "MaxLevel": 2
        },
        "Dependencies": {
            "HumanNPC": true
        },
        "General": {
            "Debug": true,
            "DebugInDepth": false,
            "GenerateNPC": true,
            "InitRandom": false,
            "Protocol": 1341,
            "RandomInitSkins": true,
            "Regenerate": false,
            "RemoveDuplicateNPC": true
        },
        "Messages": {
            "Bought": "You've successfully bought {0}x {1}.",
            "IncorrectItem": "WARNING: It seems like it's not a valid item.",
            "InvalidItem": "WARNING: This item is not set correctly! (item).",
            "ItemNotEnough": "You don't have enough of this item.",
            "KitRedeemError": "WARNING: There was an error while giving you this kit.",
            "NoActionItem": "You are not allowed to {0} this item here.",
            "NoActionShop": "You are not allowed to {0} in this shop.",
            "NoBuyPrice": "WARNING: No buy price was given by the admin, you can't buy this item.",
            "NoEconomics": "Failed to pull information from Economics.",
            "NoItem": "WARNING: The item you are trying to buy doesn't seem to exist.",
            "NoNPC": "The NPC owning this shop was not found around you.",
            "NoSellPrice": "WARNING: No sell price was given by the admin, you can't sell this item",
            "NoShop": "This shop doesn't seem to exist.",
            "NotEnoughMoney": "You need {0} coins to buy {1} of {2}.",
            "NotInNPCRange": "You are not in range of a shop.",
            "Sold": "You've successfully sold {0}x {1}.",
            "Shop - Shop Categories": {            "Apple": {
                    "buy": "1",
                    "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640",
                    "item": "apple",
                    "sell": "1"
                },
                "BlueBerries": {
                    "buy": "1",
                    "img": "http://vignette1.wikia.nocookie.net/play-rust/images/f/f8/Blueberries_icon.png/revision/latest/scale-to-width-down/100?cb=20150405111338",
                    "item": "blueberries",
                    "sell": "1"
                }
            },
            "Shop - Shop List": {
                "chat": {
                    "buy": [
                        "Apple",
                        "BlueBerries"
                    ],
                    "description": "You currently have {0} coins to spend in this shop",
                    "name": "shop",
                    "sell": [
                        "Apple",
                        "BlueBerries"
                    ]
                }
            }
        }
    }
     
  2. Use mine instead, Nogrod one is still bugged at this version of oxide.
     
  3. I'll do that then.
     
  4. still doesn't work. shows allot of errors.
     
  5. Can't use /shop . i replace the number to "chat" but it's still not working
     
  6. Download lucaro's rewrite on page 18. It helped me.
     
  7. When i do /shop nothing happens and yes i got that economy plugin
     
  8. Thanks :)
     
  9. Download lucaro's rewrite on page 18.
     
  10. Ever since update npc shop isn't working
     
  11. Here's my GUIShop rewrite and an edit of Nogrod's HumanNPC. I know I posted this before but it was for my "Exodus" economy controller and not Reneb's own economy plugin. Someone requested, so here it is for Economics for Rust | Oxide

    You'll need my HumanNPC edit as well as npcs are automatically generated as well as icons.

    Commands:
    /shop (From here you can edit individual items/prices etc)

    Rcon:
    shop.callnpcs
    shop.save

    [​IMG]
    [​IMG]
    [​IMG]
     

    Attached Files:

  12. Thanks
     
  13. @Norn : Thank you very much!
     
  14. Can you please fix this Reneb /shop doesnt work anymore and the guys version on page 18 isnt easy to make a config for. Or atleast someone make a video with a voice totorial
     
  15. Understand how i use it now, but not how i can move the NPC's to the location i want and 1 by one instead of all 11 at the same time..? Anyone know how?
     
    Last edited by a moderator: Jan 10, 2016
  16. Move them with HumanNPC, look at the npc and type /npc edit

    then type /npc spawn new to move it.

    That's because data in my version isn't meant to be edited by humans

    it has a /shop command.
     
  17. Thanks alot mate.
    [DOUBLEPOST=1452601930,1452490188][/DOUBLEPOST]Is there a way to change the name showing up when pressing "Use" on the shop NPC's? Example: The one selling Food is renamed to "Name" and when pressing "Use" on him, it says "Food" in chat and in the shop GUI. Anyway to change that to my liking?
     
  18. You can change it in the data file, the generated npc's show the category name as shop name by default.

    Bare in mind this will cause issue if you re-generate the npcs as it'll not remove the npc with custom name. Not really a big deal but something I forgot to change. I'll edit.
     
  19. Alright, thanks. Ill wait for you to change it to avoid any issues showing up.
     
  20. BUG? Not sure if this is GUIShop or Economics...
    We seem to get a lag spike that comes at the same time someone is using an NPC followed by these entries

    [Oxide] 9:58 AM [Warning] CallHook 'Deposit' on plugin 'Economics v2.0.3' took: 17072ms
    [Oxide] 9:58 AM [Warning] CallHook 'ccmdShopSell' on plugin 'GUIShop v1.1.2' took: 17081ms
    [Oxide] 9:58 AM [Warning] CallHook 'ccmdShopSell' on plugin 'GUIShop v1.1.2' took average: 974ms