GUI Shop

GUI Shop based on Economics. Supports NPC

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

5/5, 38 likes
  1. Nope just changed the configto what u said only 2 npc's are working and the npc's list number is corrent
     
  2. Umm, I cant seem to get the shop working with the NPC's.... I have the ID added into the config file, but i do not know how to access it through the npc... When i do /shop command it says to visit an npc, which is what i want, but can't seem to access it. Also, when i set it to chat, i type in /shop and nothing shows up.... I am using the default config and think it should work...
     
  3. is there a way to set a cooldown?
    [DOUBLEPOST=1453965417][/DOUBLEPOST]when i use /shop the background is not black but relay hazy looking
     
  4. Could i see your config file? And ill take a look at it.
    Have you double checked your code to make sure its all correct, with no missing "," "]" ":" and the wrap(tp) location is valid?
    [DOUBLEPOST=1453973191][/DOUBLEPOST]
    Cooldown on what? And the Shop background should be transparent by default, so if yours is not black, its working like its supposed to.. Unless you changed something in the GUIShop.cs file and wanted its bg to be black...
    [DOUBLEPOST=1453973497][/DOUBLEPOST]
    You access the shop by visiting the NPC you connected it with and pressing the USE key (Default: "E"). Make sure the code is valid and no typos in it etc..
    If you want, you can attach your config, and ill take a look at it.
     
    Last edited by a moderator: Jan 28, 2016
  5. Dear Developer, thank you for your time and crafting this Mod, however I am looking for a simple NPC shop I can set up. Each shop can be separate but works off the same market system. The market system I want is for a player to bring in wood stone ammo and those items have a trade value for other items the player wants. By default the traded for item will cost more than the items the player is trading, and the value of the items traded should go down in value as more and more of the same items are traded for. IE wood could be worth say 100 wood could be tradeded for 10 Low Grade fuel, but as more and more wood comes in to be traded the less valuable wood becomes.

    I would like to see it work as a stock market system, Please if you can creat a system like this I would be VERY interested.
    Thanks
    Llathrum
    HAX CLAN Server
    look for HAX under modded
     
  6. Pawleman you have been an incredible help to the server, thank you! (reversetv queries)
    Would you possibly be able to come onto the server and have a look yourself it's a lot to ask i know but we are up against it with a deadline...
    and your help would be very very much appreciated if you could :)
    reversetv's community server on rust
     
  7. "Shop Warp": {
    "buy": "100",
    "cmd": [
    "/tp 0 15 0"
    ],
    "img": "http://3.bp.blogspot.com/-NaXy0CAqjwA/U1xdi3nuI9I/AAAAAAAADAA/JAomvLKGVz4/s1600/teleport.png",
    "sell": "1"
    },
    First try i did but i forgot the [] on the cmd part so ill try again with zones.

    EDIT: teleport.topos $player.id X X X worked i just forgot the [] (slams face into desk) TY!!!
     
  8. Now that i am testing different things with it, the default config file doesn't work at all... I have reinstalled, used different version found here on the posts, and none seem to work. I type in /shop, nothing happens. Nothing pops up in chat, and the GUI doesn't pop up. Same with NPCs. So, are there permissions i need to grant myself and others? Or do i have incompatible mods? I don't think any of mine go against the GUIShop...
     
  9. cool down on the buy. say i sell airdrop and they spam the heck out of it lol?
     
  10. What to do here?

    "
    [Oxide] 1:36 AM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 1:36 AM [Debug] at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Int32 from, Boolean fullRefresh) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.GUIShop.cmdShop (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0

    "
    Edit: Somewhat fixed this myself but i did not know how exacly...
     
    Last edited by a moderator: Jan 29, 2016
  11. can anyone help please?

    [1/30/2016 5:04:02 PM] [Oxide] 5:04 PM [Debug] at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Int32 from, Boolean fullRefresh) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.GUIShop.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
  12. Error also when typing "/shop" in chat.
    [Oxide] 10:26 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2
    ' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 10:26 PM [Debug] at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player
    , System.String shopid, Int32 from, Boolean fullRefresh) [0x00000] in <filename
    unknown>:0
    at Oxide.Plugins.GUIShop.cmdShop (.BasePlayer player, System.String command, S
    ystem.String[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.GUIShop.DirectCallHook (System.String name, System.Object& re
    t, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo metho
    d, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[]
    args) [0x00000] in <filename unknown>:0
    at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[]
     
  13. Is there a Mod that trades items in the game as coin for other items? Like 1000 wood for 300 stone 1 low grade fuel for 1 food etc

    That is the kind of market game I am looking for, with its own kind of AI that reduces the value of more traded items. Like wood would be worth less as more and more wood is traded and it becomes an over stock, while items people are demanding to trade for that are not being used for trade becomes worth more.

    Thanks
    Llathrum
     
  14. I am having the same problem as "Rage Quit" and Kalledyret.
     
  15. Hi Wingman2442,
    Try this version of the plugin:
     

    Attached Files:

  16. I put in the NPC ID in the config file, but when i press E in game on the NPC the shop doesnt pull up. On my server screen I get a red error message that says "Failed to call hook 'OnUseNPC' <InvalidCastException: Cannot cast from source type to Destination type."

    Anyone know what im doing wrong?
     
    Last edited by a moderator: Feb 1, 2016
  17. I got that too at first. Here's a copy of my json file from the /config folder. Above I posted my cs plugin file as well. Once I dropped these, I typed "oxide.reload *" to reload all of the plugins and that seemed to fix that issue.

    Disclaimer: Yes. We have a Rust Dildo shop on Bloodtribes. This was a joke when they introduced the syringe.
     

    Attached Files:

  18. Naz

    Naz

    when i type /shop console shows output msg:

    [Oxide] 5:08 AM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1
    (InvalidCastException: Cannot cast from source type to destination type.)

    what to do?

    thanks
     
  19. Hey all,

    I thought i would share this with everyone.

    This file contains all 256 items already compiled with images and all as well as the ability to sell all the blue prints for all craftable items.

    It also contains many example of NPC setups including selling BPs to players.

    Edit according to the instrustions at GUI Shop for Rust | Oxide

    This took many hours to create so enjoy!
     

    Attached Files:

    Last edited by a moderator: Feb 2, 2016