GUI Shop

GUI Shop based on Economics. Supports NPC

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

5/5, 38 likes
  1. G'day

    I tried my luck to see what would happen and got it working great with the NPCs, I have since expanded on what is on offer but I am missing something at the end of the Config file.... No doubt it is something simple but I can not see it even after a google search.

    Anyone care to tell me what I am missing without laughing at me? :p

    cheers Dean.
     

    Attached Files:

  2. What would be the easiest way to add a shop that sells all with no NPC involved? i do not want multiple shops just the one if thats possible.. and the chat option to be able to view the shop. Sorry i'm quite new to all this owning a server id just like to get a shop set up as iv had many suggestions, any help would be great! thanks.

    Update -
    Its okay now i think iv gotten my head around it :) JSONlint came in handy!
     
    Last edited by a moderator: May 30, 2016
  3. Can you provide your config file pls
     
  4. It is attached, thanks.

     

    Attached Files:

  5. Here you go, you was missing this at the end :

    Code:
            ]
            }
        }
        }
     

    Attached Files:

  6. Thank you again, it is people like yourself that give people like me the courage to try for myself and then ask questions if I get stuck. You are a credit to the community.

    Dean.

     
  7. Np, i am helping when i can :)

    Take my config and it will be great for you :)
     

    Attached Files:

  8. thank you very much :) appreciate it!saves me so much time i love you haha
     
  9. Just some new item are missing like flametrower and possible other
     
  10. That is not a problem i will add them in the future if needed :) thanks again!
     
  11. Rak

    Rak

    Could you please add quantity buy support with custom quantity button options?

    i.e 10000 wood = $1

    or [10k] button to purchase 10k of wood

    Thank you.
     
  12. here you go :)
     

    Attached Files:

  13. I've tried many times but in shop only shows "Build Kit" , i've added other lines with some items but doesnt work for me...
     
  14. Rak

    Rak

    you need to make sure you are editing the correct "shop"
    [DOUBLEPOST=1464630351][/DOUBLEPOST]
    thank you for the button :) i'm still trying to have it buy in bulk only; so that when you sell you can only sell 10k or higher and pricing is per 10k of an item.
     
  15. Maybe it's not hard to do, add a bulk (1 or 0 to get it easier) option in config file and get it in plugin.
    Next step is to check if bulk is or not active and do something like

    Actual code is something like
    Code:
    item.amount * price
    It should be
    Code:
    if(bulk){
    Price
    }else{
    Item.amount * price
    }
    I am on my phone so i can't give you the finished code but if you follow what I said, you should successful do it.
    If not just told me and I will do it. But try before call help ^^
     
  16. can you add a line: When the plugin dont find an items in the list he pass to the next items because all my shop is bugged
     
  17. i have problem...
    [Oxide] 12:00 [Error] GUIShop plugin failed to compile!
    [Oxide] 12:00 [Error] 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?
     
  18. U Can try playing with the following I got generated through excel, they work on my server, (Woodland plain can be ignored)
    My full Data/Kits.json
    Code:
    {
      "Kits": {
        "woodland": {
          "name": "Woodland",
          "description": null,
          "max": 0,
          "cooldown": 0.0,
          "authlevel": 0,
          "hide": false,
          "npconly": false,
          "permission": null,
          "image": null,
          "items": [
            {
              "itemid": 2107229499,
              "bp": false,
              "container": "main",
              "amount": 1,
              "skinid": 10023,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -864578046,
              "bp": false,
              "container": "main",
              "amount": 1,
              "skinid": 14181,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 115739308,
              "bp": false,
              "container": "main",
              "amount": 1,
              "skinid": 10128,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 106433500,
              "bp": false,
              "container": "main",
              "amount": 1,
              "skinid": 10019,
              "weapon": false,
              "mods": []
            }
          ]
        },
        "woodlandworn": {
          "name": "WoodlandWorn",
          "description": null,
          "max": 0,
          "cooldown": 0.0,
          "authlevel": 0,
          "hide": false,
          "npconly": false,
          "permission": null,
          "image": null,
          "items": [
            {
              "itemid": 106433500,
              "bp": false,
              "container": "wear",
              "amount": 1,
              "skinid": 10019,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 115739308,
              "bp": false,
              "container": "wear",
              "amount": 1,
              "skinid": 10128,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": -864578046,
              "bp": false,
              "container": "wear",
              "amount": 1,
              "skinid": 14181,
              "weapon": false,
              "mods": []
            },
            {
              "itemid": 2107229499,
              "bp": false,
              "container": "wear",
              "amount": 1,
              "skinid": 10023,
              "weapon": false,
              "mods": []
            }
          ]
        }
      }
    }
    and the config/GUIShop.json
    Code:
    {
      "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": {
        "Woodland": {
          "buy": "10",
          "img": "http://itxsc.com/Rust/Icons/Skins/Forest_Camo_Tshirt_icon.png",
          "item": "woodland",
          "sell": "8"
        },
        "Woodland Worn": {
          "buy": "10",
          "img": "http://itxsc.com/Rust/Icons/Skins/Forest_Camo_Tshirt_icon.png",
          "item": "woodlandworn",
          "sell": "8"
        }
      },
      "Shop - Shop List": {
        "110235903": {
          "buy": [
            "Woodland Worn",
            "Woodland"
          ],
          "description": "You currently have {0} coins to spend in this builders shop",
          "name": "Test"
        }
      }
    }
    this is for:
    Army_Boots_icon.png Boxer's_Bandages_icon.png Forest_Camo_Pants_icon.png Forest_Camo_Tshirt_icon.png

    I'm trying to make a dress-up mannequin via NPC,
    any pointers on what command I cuild use to change the NPC'scurrent shirt / Change kit contents & apply?
     
    Last edited by a moderator: May 31, 2016
  19. I need change the green button "1" "10" "100" for a text "Buy" becouse i seel individual packs

    thnx!
     
  20. Just to share with you what we did with GuiShop ( and at then end the Zone we created )