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. Welcome to the wonderful world of GUIShop :D

    Ok as far as I can see you are doing a good job.
    There isn't much left you have to do.

    Take one of the config files that were posted above somewhere, here is mine for example:
    (There are some parts missing, the new Fish, Hemp seed and so on - but I explained how to add new things some pages before.

    The kit is the
    Code:
    "Build Kit": {
          "buy": "0",
          "img": "http://oxidemod.org/data/resource_icons/0/715.jpg?1425682952",
          "item": "kitbuild",
          "sell": "0"
        }
    (missing in my config, just add it - don't forget to put a "," after the previous item)

    If you create a Kit with the plugin just name it kitbuild and people will be able to buy this Kit at the shop.

    If you have any questions just ask ;)
     
  2. Thx a lot for your answer.

    Yes I have questions :

    I took the file of the guy page .

    I suppose I can move lines under the shop list to create a list I want with item I want right ?

    Then just modify the price and the number of the npc and all selected items will be in that npc shop right ?
    To summarize, may I reorganize the shop list with what I want into this list, the number of npcs I want if I use different NPCs with the number I have to select with the npc_list and to change the price from the list as well ( buy and sell ) ?

    For exemple :

    In the file I see :
    Code:
     "Shop - Shop List": {
        "1200482639": {
          "buy": [
            "Metal Fragments",
            "Pistol Bullet",
            "Gunpowder",
            "Charcol",
            "24 Hr Cooldown Turret Package",
            "24 Hr Cooldown BP Frags"
          ],
          "description": "You currently have {0} coins to spend in this shop",
          "name": "Hostage Trader",
          "sell": [
            "Stones",
            "Sulfur Ore",
            "Metal Ore",
            "High Quality Metal Ore"
    I suppose I can remove one line in buy and sell ( for exemple stones), and add other things if I want to (like sulfur) ?

    I am using economics and money time ( to get money while playing ) and be able to use that money to buy things. I can already see it is not so easy to make a good balance... players on my server will get 200+50$ when connecting for the first time and then will get 10$ every 20minutes of playing time.
    So I suppose prices must not be as high as in the file I Downloaded ^^
     
    Last edited by a moderator: May 17, 2016
  3. They will make money really quick, trust me ;)
    OK about your shop:
    If you do it like that it will look strange.
    You should fill the same in buy in sell, otherwise it will look 'interesting' if you don't want to but/sell anything just leave it blank.
    And if you want to sell similar things with different npc then just copy the whole shop and change the NPC ID.

    This is how your shop should look like:
    Code:
    Shop - Shop List": {
        "1200482639": {
          "buy": [
            "Metal Fragments",
            "Pistol Bullet",
            "Gunpowder",
            "Charcol",
            "24 Hr Cooldown Turret Package",
            "24 Hr Cooldown BP Frags"
          ],
          "description": "You currently have {0} coins to spend in this shop",
          "name": "Hostage Trader",
          "sell": [
            "Metal Fragments",
            "Pistol Bullet",
            "Gunpowder",
            "Charcol"
    
    I erased the kits, because you can't sell them ;)
    ("Sell" is what you can sell him)
     
    Last edited by a moderator: May 17, 2016
  4. Is it possible to add so that we're able to sell i.e wood 10k at a time, instead of 1k?
     
  5. Is it possible to make a physical currency ?
     
  6. Can you help me.

    How to add a skin item ? What is the code to use please ? For exemple for military assault rifle :
    Oxide API for Rust

    Code:
    "Military Camo AK47": {
          "buy": "15000",
          "img": "http://vignette4.wikia.nocookie.net/play-rust/images/9/9f/Military_Camo_AK47_icon.png/revision/latest/scale-to-width-down/100?cb=20160211225144",
          "item": "?????",
          "sell": "500"
    What to put instead of ????

    Thx

    ps : I went to page 24 and maybe it is possible by using the plugin give
    Give for Rust | Oxide
    + plugin kit + gui shop and npc like this example ?


    Code:
    For the Russian server ... Added shackled things need GIVE plug and replace (or add a plug)-DATA / kits.json health colleagues
    Skins and all items in the store, you can rename the desired language.
    IN KITS
    "10124": { -> skin id
    "name": "10124", -> SKIN id
    "description": null,
    "max"~
    ~ems": [
    {
    "itemid": 271534758,
    "bp": false,
    "skinid": 10124,
    "container": "belt",
    "amount": 1
    in GUIShop
    "Большой деревянный ящик(патроны)": { ->name shop "Ammo Wooden Box"
    "buy": "300",
    "cmd": [
    "inv.giveplayer $player.name kit 10124" -> kit 10124 = kit name in kits.json
    ],
    "img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151218003427",
    "sell": "1"
    }, 
     
    Last edited by a moderator: May 19, 2016
  7. You mean removing items (like paper?) instead of using economics?

    You must have to modify this line from .cs
    Code:
            private readonly int[] steps = { 1, 10, 100, 1000 };
    
    Exemple :

    Code:
            private readonly int[] steps = { 10, 100, 1000, 10000 };
    
    Now sell cap are 10/100/1 000/10 000
     
  8. I tried what was written in the code ( see my post above ) to get a skin item in the shop using the give and kit plugin.

    Here is the message I can read in the console :


    (18:10:30) | [Oxide] 18:10 [Info] [Give] GIVE: /give [admin] Xtadeus kit 10124 was used

    (18:10:30) | [Oxide] 18:10 [Info] [GUIShop] Player: [admin] Xtadeus Buyed command: Caisse Militaire

    But there is nothing in my inventory... ( on the server, message telling I bought the item )
     
  9. Load kits and set up the skin ID in the kits' Json,
    ie.
    Code:
    {
              "itemid": "997973965",
              "bp": "False",
              "skinid": "10054",
              "container": "wear",
              "amount": "1"
            },
    You can get the IDs from Oxide API for Rust

    997973965 Improvised Balaclava mask.balaclava
    10054 Rorschach Skull Skin
    Rorschach_Skull_icon.png
     
  10. Of course I did that Canan.

    I can redeem the kit if I want to.
    I can see the item in the shop sold by the NPC, I can buy it, but the item never comes on my inventory. I am following the procedure.

    Can you confirm it is working for you ?
     
  11. Did you create a kit with this mask in it and let it sell your npc??
     
  12. I did create a kit with the army box and I also tried with a black hoodie.

    I was following this exemple and as I said : the kit is working perfectly ( can get it with the defined skin in the game by using /kit 10124 ) :
    The configuration in guishop seems fine too : I can the skin object in the shop when interracting with the npc. I can click on buy item, I can see the message in the corner of the screen telling me I succeeded in buying the kit... and then I don't receive it in my inventory. ( I tried to change belt by main and my inventory was not full of course to make the test )

    Code:
    For the Russian server ... Added shackled things need GIVE plug and replace (or add a plug)-DATA / kits.json health colleagues
    Skins and all items in the store, you can rename the desired language.
    IN KITS
    "10124": { -> skin id
    "name": "10124", -> SKIN id
    "description": null,
    "max"~
    ~ems": [
    {
    "itemid": 271534758,
    "bp": false,
    "skinid": 10124,
    "container": "belt",
    "amount": 1
    in GUIShop
    "Большой деревянный ящик(патроны)": { ->name shop "Ammo Wooden Box"
    "buy": "300",
    "cmd": [
    "inv.giveplayer $player.name kit 10124" -> kit 10124 = kit name in kits.json
    ],
    "img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20151218003427",
    "sell": "1"
    }, 
    and here are the lines I could read in the console :

    Here is the message I can read in the console :

    (18:10:30) | [Oxide] 18:10 [Info] [Give] GIVE: /give [admin] Xtadeus kit 10124 was used
    (18:10:30) | [Oxide] 18:10 [Info] [GUIShop] Player: [admin] Xtadeus Buyed command: Caisse Militaire
     
  13. Hi Guys,

    I've added some kits to the shop which players can buy. This works fine when you are buying "1" of that item.
    If you buy 10 or 100 using or the "10" or "100" buttons, it takes the coins for it but only provides the kit once. Any ideas how to fix this or how to disable the "10","100","1000" buy and sell buttons for that item?
     
  14. At this time, you can only disable all 10;100;1000 steps for all items,
    Code:
    \plugins\GUIShop.csLine 19,
    Alter the
            private readonly int[] steps = { 1, 10, 100, 1000 };
    The only way I can think of would be to do so and build 10's ,100's ,1000's for each item,
    Which i would not recommend,

    If someone know a way to do it though,
    I'm also interested, specifically in disabling the 1 & 10's for certain items.

    PS. You could always put up a sign,
    Sign_1290x600_Shop_Notes.png
     
    Last edited by a moderator: May 22, 2016
  15. Bug found - Boxs, furnances (any asset you can open) when next to the NPC Shop can not be opened,

    Anyone else encountered this?
     
  16. Can I find out the easiest way if possible to have my moderator be able to set up shop items and such
     
  17. All the editing must be done via the config file, which only the server owner should have access to; so no, they cannot edit while ingame.
     
  18. shop isnt even going into config file for me so /shop dosent work plz fix or help
     
  19. Can someone explain me how i add like a kit of 300 blueprintfragments in the shop?
     
  20. Thank you for replying back but I may just put this project on hold for now in hopes you may come up with a way to distribute shop management.