GUI Shop

GUI Shop based on Economics. Supports NPC

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

5/5, 38 likes
  1. yes, if you need more help. I'm willing to help. just send me a message.
     
  2. Thank u ! Will try those things later ! Thank u !
     
  3. im having a problem if an item in the shop costs 5000 and the player only has 5000 coins it throws out the error MessageShowNoEconomics but it still gives the item to the person so people can just spam free items
     
  4. very fun
     
    Last edited by a moderator: Mar 10, 2018
  5. Hi guys, can you please tell me how to sell cmd commands, for exapmle i wanna sell /bgrade command or i wanna sell the /sil command. i m not sure what to do about that :D would you spare some time and direct me to point please thx anyway :D
     
  6. you can use this cmd for sil command "cmd": ["o.grant user $player.id signartist.url "],
     
  7. Sorry if someone has asked before. There are 3 shops by default named Fruit Market, Weaponsmith Shop and Build. Typing /shop in chat can only open the Build shop. How to open the other shops? Thanks for anyone's help.
     
  8. you need to have npc's running the shop to have multiple shops
     
  9. I Cant Get My Npc To Work With The Shop
     
  10. Is there a method where I can activate a COMMAND after x seconds.
    For example, someone buys permission to use a mod (this bit is fine, and it works), but how do I revoke the permission after x seconds?

    "cmd": ["o.grant user $player.id coolmod.vip"],

    I would like to add

    "o.revoke user $player.id coolmod.vip" after 60mins
     
  11. use timed permission plugin and the command would be "cmd": ["grantperm $player.id coolmod.vip 60m"],

    also you would need to grant default timedpermissions.use

    hope this helps you
     
  12. Tried it, and thank you for the suggestion, as I didn't know that plugin was around. I did have problems but I'll post those in the TimedPermission page.
     
  13. Can I and if yes, how do I properly use a command (shop.buy or shop.sell maybe?) to shop outside this plugins UI?
     
  14. what are you trying to do??
     
  15. I want to integrate shop in the UniversalUI plugins page. To call the shop.buy or .sell command on button press.
    Code:
            [ConsoleCommand("shop.buy")]
            private void ccmdShopBuy(ConsoleSystem.Arg arg)
            {
                if (!arg.HasArgs(3)) return;
                var player = arg.Player();
                if (player == null) return;
                object success = Interface.Oxide.CallHook("canShop", player);
                if(success != null)
                {
                    SendReply(player, success as string ?? "You are not allowed to shop at the moment");
                    return;
                }            string shop = arg.Args[0].Replace("'", "");
                string item = arg.Args[1].Replace("'", "");
                int amount = arg.Args[2].Equals("all") ? GetAmountBuy(player, item) : Convert.ToInt32(arg.Args[2]);
                success = TryShopBuy(player, shop, item, amount);
                if(success is string)
                {
                    SendReply(player, (string)success);
                    return;
                }
                SendReply(player, string.Format(MessageBought, amount, item));
                ShowShop(player, shop, shopPage[player.userID], false, true);
            }
    It is a bit hard to decifer how the command ends up readable. I am just guessing... I don't even knwo if it can work outside the plugins script.
     
  16. Can anyone help me write a json for this or give me theirs if possible? Thanks
     
  17. Server didn't create one for you?
     
  18. Hello, gotta say great plugin. Been using it for years now. Players just noticed that items in hotbar will now sell, as before anything in hotbar was protected from selling. Take a look at it if you can. Thanks
     
  19. got it
     
    Last edited by a moderator: Apr 12, 2018
  20. Might be asking a lot but I'm trying to use this for the first time and I am completely loss how I set it up. The config did load on its own however doesn't show in the game. Is it possible for a better video or better example script of how it should look when set up?