GUI Shop

GUI Shop based on Economics. Supports NPC

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

5/5, 38 likes
  1. This is a bug, you can buy without money when you buy in shops
     
  2. how can you buy without money?
     
  3. is there any way to ad a skin id to items? The kits plugin has it wasnt sure if you could add it in to the GUIShop
     
  4. hey this is a great mod just have 2 questions
    1) can u have fraction prices (example $.1 for stone)
    2) cand u have free prices (example $0 for wood)
     
  5. The item is rocket bolt action c4 is a digger and so these items do not need just money made it possible to purchase and the money comes in several times
    [DOUBLEPOST=1444881928][/DOUBLEPOST]
    Silencer Bolt Action Rifle Rocket Launcher Supply Signal Timed Explosive Charge Mining Quarry Pump Jack <<Within the server players were able to buy without money, I have seen the damage
    [DOUBLEPOST=1444881995][/DOUBLEPOST]I have been to a Korean translator do not know English
     
  6. most likely it's that you didnt config it well. there are no reasons for it to bug.
    1) no you can't, but you can just x10 all the prices ;)
    2) it should work yes.
     
  7. ok thanks
     
  8. started using this plugin with my HumanNPCs in Rust Town (check us out at #1 US Texas) anyway great work Reneb! some questions...

    1. Does anyone have a master list of all shop items so I can just cut/past from? with images, ids, etc.
    2. Fractions would be great. on a server with 5x gather selling wood at 1 for 1 is not good.
    3. if you have large prices like $1,000,000 for a supply signal the formatting seems off (spacing?)

    thanks!
     
  9. Is it possible to build a building with a npc where you can acces the shop only? I want my players to go to the shop to buy and not by command.
     
  10. EDIT: Nevermind...
     
    Last edited by a moderator: Oct 16, 2015
  11. Why I have set everything up correctly, when people try to sell them the recipe says you can not sell the prescription?
    [DOUBLEPOST=1445017648][/DOUBLEPOST]
    I made a shop so people could earn only by selling "BP" when I try to sell Explosive BP writes to me that I can't sell Explosive Blueprints
     
  12. Of course it is it seem you don't read tutorial page informations and eventually all post treads :/...
     
  13. Code:
            static Dictionary<string, object> DefaultShops()
            {            var shops = new Dictionary<string, object> { };
                var buy = new List<object> { };
                var sell = new List<object> { };
                var ItemsDefinition = ItemManager.itemList;
                string name = "chat";
                foreach (var itemdef in ItemsDefinition)
                {
                    buy.Add(itemdef.displayName.english.ToString());
                    sell.Add(itemdef.displayName.english.ToString());
                }
                var shop = new Dictionary<string, object>
                {
                    {"description", "You currently have {0} coins to spend."},
                    {"name", name},
                    {"buy", buy},
                    {"sell", sell}
                };
                shops.Add(name, shop);
                return shops;
            }
            public static Dictionary<string, object> DefaultShopCategories()
            {            var dsc = new Dictionary<string, object> { };
                var ItemsDefinition = ItemManager.itemList;
                foreach (var itemdef in ItemsDefinition)
                {
                    var category = new Dictionary<string, object> {
                            { "item", itemdef.shortname},
                            {"buy", "10"},
                            {"sell", "8"},
                            {"img", "http://pokit.org/get/img/2758d4cb778bfcfa9e215a0a3531dd38.jpg"}
                    };                dsc.Add(itemdef.displayName.english.ToString(), category);
                }
                return dsc;
            }
    
    Enjoy
     
  14. I've added this and the economics plugin, When I sell an item it doesn't give any coins.
    Is there something else you need to do to link them together?
     
  15. How to fix thet?? Thet show when im write /shop in game!

    Code:
    [Oxide] 1:57 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.0.8' (OverflowException: Value is greater than Int32.MaxValue or less than Int32.MinValue)
    [Oxide] 1:57 PM [Debug]   at System.Convert.ToInt32 (Double value) [0x00000] in <filename unknown>:0
      at System.Double.System.IConvertible.ToInt32 (IFormatProvider provider) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.Object value, IFormatProvider provider) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.Object value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Double from, Boolean fullRefresh) [0x00000] in <filename unknown>:0 
     
    Last edited by a moderator: Oct 19, 2015
  16. Here you go, this is every item in rust. With the icon image set correctly. All you need to do is configure the prices.

    By default the "/shop" command will have every item in it.

    Norn's Item List - Pastebin.com
     
  17. If you guys can locate me to a voice recorded tutorial or really good one (not the one on the front page) or guide me on skype or something so i can make a good tutorial that would be greatly appreciated and i have a problem when i sell stuff it doesnt give me any coins? but ppls respond to this great plugin:)
     
  18. Ok everyone I made a GUI SHOP WORKSHEET It has nearly all items in the game the only ones i didnt add are the ones that I thought would be rediculus to sell or buy like spoiled meat and brunt meat and such.. All you have to do is place your buy values in the green columns and change your sell percentage and it will give you the price to sell items for.. Hope this helps some people!

    Use the config that Norn posted here Norn's Item List then change the buy and sell values to the one that my worksheet outputs!
     

    Attached Files:

  19. Shop won't show up for me?
     
  20. Now when i NPC got this:
    [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.0' (KeyNotFoundException: The given key was not present in the dictionary.)

    what i'm wrong? (back to a version)