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. Hey @CrazyMonkeySteve

    Where do i put the data for the shops/item info?

    Also the default GUI i downloaded doesn't blacken the background
     
  2. did figure out aswell, thx anyways^^
     
  3. [Oxide] 00:06 [Error] Failed to call hook 'ccmdShopBuy' on plugin 'GUIShop v1.3.0' (FormatException: Invalid format.)
     
  4. Hello,

    Does reload GUIShop, reload the json? Im adding new shops to existing NPCs but it wont update and requires a server restart?


    --------------

    Actually i think its because my other shops arent working.


    Code:
            "2070164562": {
                "buy": [
                    "Apple",
                    "Blueberries",
                    "Bed",
                    "Leather",
                    "Cloth",
                    "Wood",
                    "Stone",
                    "Rock",
                    "Torch"
                ],
                "description": "You currently have {0} coins to spend in this General shop",
                "name": "General Shop",
                "sell": [
                    "Leather",
                    "Cloth",
                    "Wood",
                    "Stone"            ]
            },
            "593838620": {
                "buy": [
                    "Bear Meat Cooked",
                    "Raw Chicken Breast",
                    "Cooked Pork Meat",
                    "Cooked Wolf Meat"
                ],
                "description": "You currently have {0} coins to spend in this Restaurant",
                "name": "Restaurant 101",
                "sell": [
                    "Bear Meat",
                    "Raw Chicken Breast",
                    "Pork",
                    "Raw Wolf Meat"
                ]
            },
    Can anyone see whats wrong with my second shop?


    ------------------------------------------

    Fixed
     
    Last edited by a moderator: Apr 24, 2016
  5. Items

    I hope you mean that.
    [DOUBLEPOST=1461520216][/DOUBLEPOST]klick on the word "Items"
     
  6. I have added Economics and the Shop as well as Kit plugins. This is the config I am using

    {
    "Message - Bought": "You've successfully bought {0}x {1}",
    "Message - Error - Cooldown": "This item has a cooldown of {0} seconds.",
    "Message - Error - Cooldown Amount": "This item has a cooldown and amount is limited to 1.",
    "Message - Error - Invetory Full": "Your inventory is full.",
    "Message - Error - Invetory Slots": "Your inventory needs {0} free slots.",
    "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": {
    "Airdrop": {
    "buy": "1000",
    "cmd": [
    "airdrop.toplayer $player.id",
    "say $player.name bought an airdrop. Kill him!!!"
    ],
    "img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
    "sell": "1000"
    },
    "Apple": {
    "buy": "1",
    "img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
    "item": "apple",
    "sell": "1"
    },
    "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"
    }
    }
    }




    Which is default but only thing pops up in the ship is airdrop and build kit. But when trying to redeem/buy them they don't appear in my inventory. Something wrong here?
     
  7. Is it possible to have a Randomizer thrown in? For example buy "Mystery Box" for 500 and get 1 of any item from a prespecified list?
     
  8. Can someone please explain why this code doesnt work for the NPC shop? Thank you.

    "Shop - Shop Categories": {
    "Bolt Action Rifle": {
    "buy": "1000",
    "img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
    "item": "Bolt Action Rifle",
    "sell": "150"
    },
    "C4": {
    "buy": "50000",
    "img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
    "item": "Timed Explosive Charge",
    "sell": "25000"
    },
    "Deadly Grenade": {
    "buy": "500",
    "img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
    "item": "F1 Grenade",
    "sell": "100"
    },
    "Hunting Spear": {
    "buy": "50",
    "img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
    "item": "Stone Spear",
    "sell": "25"
    },
    "Revolver": {
    "buy": "399",
    "img": "http://vignette2.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103640",
    "item": "Revolver",
    "sell": "150"
    }
    },
    "Shop - Shop List": {
    "NPC 1657744932": {
    "buy": [
    "Bolt Action Rifle",
    "Revolver",
    "Timed Explosive Charge",
    "F1 Grenade"
    ],
    "description": "You currently have {0} coins to spend in this farmers market",
    "name": "Fruit Market",
    "sell": [
    "Bolt Action Rifle",
    "Revolver",
    "Timed Explosive Charge",
    "F1 Grenade"
    ]
    }
    }
    }
     
  9. please someone help me... I'm banging my head against the desk trying to figure out WHY this doesn't work... This is my GUIShop.json file and in game the /shop pulls up the default "Build Kit" item and the NPC whos entity ID i've triple checked doesn't do anything.. what am I missing?

    I'm not getting any error's it's just acting like the plugin isn't reading the json file. Is it something I'm doing or is there something I need to modify in the GUIShop.cs to make it read from the json file?
     

    Attached Files:

    Last edited by a moderator: Apr 27, 2016
  10. I tried finding the commands/config text for it but couldn't. What are the commands/config for:
    Placing a kit in the shop,
    Making an item to buy only 5 times in a time period Ex (5 c4 daily or every 8 hours),
    Making a warp in the /shop to the npc shop (/warp to shop is the warp)
    [DOUBLEPOST=1461796887][/DOUBLEPOST]
    Take out "NPC" for the npc shop and look at " file:///C:/Users/eliturkette/Desktop/rust-items-liste.pdf " fpr items ID, for instance the c4 id is "explosive.timed" not "Timed Explosive Charge"
    [DOUBLEPOST=1461796979][/DOUBLEPOST]
    Your ID's are wrong use "file:///C:/Users/eliturkette/Desktop/rust-items-liste.pdf"
     
  11. I'm so confused everyone keeps posting with item id's like "assault rifle" .. so thats wrong? I should be using the shortname "rifle.ak" or Item ID"-1461508848"? I've only been seeing GUIShop.json's posted with the name not the shortname or Item id...
     
  12. I'm currently using the short name and it's working, the bolt and ak seem to work with "assault rifle" and "bolt action rifle" but things like c4, m249, etc seem to run off the short name, yeah confused me for a bit too. bout an hour of research before got it working XD
     
  13. awesome thanks I'll try that. We also found out just now that part of the issue I think is that "Admin Spawn" plugin was installed and broke the use of our F1 menu for all admins which likely caused the plugin for GUIShop to not function right either.
    [DOUBLEPOST=1461810721,1461798957][/DOUBLEPOST]So I was wrong even after fixing the issue with what i thought was a conflicting plugin I uploaded a new config with fixed Item ID's and it loads GUIShop but still just shows ONLY the default shop with the "Build Kit" no other items... here is my JSON is this an issue with my JSON or is there something I'm missing?
     

    Attached Files:

  14. oxide.reload GUIShop
    ??
    Also, try to change last shop to "chat" instead numbers..
     
    Last edited by a moderator: Apr 28, 2016
  15. the numbers are the NPC ID from /npc_list. and I've ran oxide.reload GUIShop a few times now :/ I would think even if the npc shop doesn't work the first shop "chat" should work as that is the /shop one correct? yet it just opens the normal default shop as if I have no JSON file.
     
  16. How do I make it buy multiple items? Like two items for the price of one?
     
  17. I managed to make it work with NPC's only if I have NPC shops and no "chat" shop and oposite.Try to delete Resource Vendor shop list in your config and try with NPC only or delete NPC shop and try with "chat" shop.
    What happens to me is if i have them both in config, i can enter "chat" shop but i see empty GUI.
     
  18. I think you can include the qty after the item but I've not tested this.
    An alternative would be to set it up as a kit and add the kit to the shop instead.
    To add kits, just replace the item name with the name of the kit

    E.g.
    "BP Frags Kit (300 Frags)": {
    "buy": "500",
    "img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151106061217",
    "item": "bpfrags",
    "sell": "100"
    }
     
  19. Hello, i need some help, in my shop when i try to buy ak rifle i ve this message "You're not allowed to buy this item here", what's my problem? i don't use npc for shop. I join my config file.
     

    Attached Files:

  20. So just reloaded the server with this JSON to try it with only NPC and it failed to start said wrong format someone in the string... I've looked and looked and looked... any idea what's messed up I'm dying over this dang plugin haha. I thought it was bad price numbers cause I noticed some were like "1.50" which you can't do, So i fixed them however apparently that wasn't the only issue >.<

    I keep getting told different things for what to use as the Item ID. Tried item ID, Item Name, Item Shortname.. I'm officially at a loss here.
     

    Attached Files:

    Last edited by a moderator: Apr 30, 2016