GUI Shop

GUI Shop based on Economics. Supports NPC

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

5/5, 38 likes
  1. Thats the thing though i used the validation tool before i saved it so the config is fine
     
  2. I see this: OxideMod/Oxide · GitHub

    But that doesnt look like normal Oxide files.
     
  3. i have no idea why buy i downloaded this put in my plugin file and like all other plugins should work but nope nothing spent around 4-6 hours trying to figure this out and i have no idea is does the plugin not work anymore?
     
  4. "You may not use the chat shop. You might need to find the NPC Shops."

    Hello, I wonder how to get this error? GUIShop put the plug in my server but does not work, I did not put the NPC's plugin on my server and still is giving this error. help me pls :(
     
  5. can someone tell me why mine isnt working all im trying to do is get the default code to work and nothing happens no overlay, but yet the server seems to agree that /shop is a command buy wont shot anything
     
  6. Im trying to add Salvage Shelves to my shop and i know i used the right shortname from Oxide API for Rust but its not showing up in the shop even after i reload the plugin plz help, And for those of you having issues getting the shop to work here is my config feel free to use it.



    Sorry about this post i think i know what i did wrong and that config is a non_npc shop.
     

    Attached Files:

  7. Hello, I would like to know how to create a store on my server because it's been a long time I try and I'm not getting: /.

    I am giving this error when adciono an NPC and try to press "E" in it:

    [ERROR] Failed to call hook 'OnUseNPC' on plugin GUIShop v1.1.2 '(InvalidCastException: Can not cast from source type to destination type.)

    And if the NPC shot plugin does not work when I type / shop, it appears that:

    "You may not use the shop chat. You might need to find the NPC Shops."

    Help me guys :(
     
  8. Wulf

    Wulf Community Admin

    For GUIShop, you'll need to wait for a fix.

    For HumanNPC, please post in that plugin's support thread.

    In the future, please post plugin specific issues in each plugin's thread.
     
  9. Here is my rewrite of GUIShop, this is a few days worth of work over probably like a month of back and forth. There's probably a lot of bugs but I completely changed pretty much everything. This will auto generate npcs, shops and scrape icons from the internet. I'm posting it here to coincide with the post of a gamemode http://oxidemod.org/plugins/exodus.1536/

    This won't work with economics by default, you'll need to edit it. It's for Exodus.

    Commands:
    /shop

    Console:
    shop.callnpcs
    shop.save
     

    Attached Files:

  10. when i enter the /shop command nothing happens can someone please help me out thankyou :)
     
  11. Have the same problem :/ If i type /shop in chat > Console output:
    Code:
    [Oxide] 5:15 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 5:15 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, 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
     
    Last edited by a moderator: Dec 30, 2015
  12. I wiped and installed a new map but my NPCs who are still in-game are not opening the store. the GUISHOP still has the correct NPC ID.
    I did an oxide.reload
     
  13. I have a Problem with GUIShop i cant can open the shop
    If i type /shop in chat > Console Output:

    Code:
    [12/26/2015 1:25:40 AM] [Oxide] 1:25 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 
    And that´s my config

    Code:
    {
        "Message - Bought": "You've successfully bought {0}x {1}",
        "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": {
            "Apple": {
                "buy": "1",
                "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640",
                "item": "apple",
                "sell": "1"
            },
            "Assault Rifle": {
                "buy": "10",
                "img": "http://vignette3.wikia.nocookie.net/play-rust/images/d/d1/Assault_Rifle_icon.png/revision/latest/scale-to-width-down/100?cb=20150405105940",
                "item": "assault rifle",
                "sell": "8"
            },
            "BlueBerries": {
                "buy": "1",
                "img": "http://vignette1.wikia.nocookie.net/play-rust/images/f/f8/Blueberries_icon.png/revision/latest/scale-to-width-down/100?cb=20150405111338",
                "item": "blueberries",
                "sell": "1"
            },
            "Bolt Action Rifle": {
                "buy": "10",
                "img": "http://vignette1.wikia.nocookie.net/play-rust/images/5/55/Bolt_Action_Rifle_icon.png/revision/latest/scale-to-width-down/100?cb=20150405111457",
                "item": "bolt action rifle",
                "sell": "8"
            },
            "Build Kit": {
                "buy": "10",
                "img": "http://oxidemod.org/data/resource_icons/0/715.jpg?1425682952",
                "item": "kitbuild",
                "sell": "8"
            },
            "Wood": {
                "buy": "1",
                "img": "http://vignette4.wikia.nocookie.net/play-rust/images/f/f2/Wood_icon.png/revision/latest/scale-to-width-down/50?cb=20151106061551",
                "item": "wood",
                "sell": "2"
            }
        },
        "Shop - Shop List": {
            "chat": {
                "buy": [
                    "Wood"
                ],
                "description": "You currently have {0} coins to spend in this builders shop",
                "name": "Build"
            }
        }
    }
     
  14. No Body Fixed ?
     
  15. I would really appreciate some help. I own and run a role play server. My players love the shop with HumanNPC. For some reason I can not get them to work together. I updated my server, oxide, All other plugins have been updated. Deleted HumanNPC, GuiShop, reinstalled path and economics to the latest versions. I validated the Json file for the configs in both the NPC and Store. This is my error code I am getting. Any input would be great. I also tried to install the NPC 0.123 version as well. I am running all current updated plugins.
    Code:
    [Oxide] 3:02 PM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 3:02 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
    Saved 34,501 ents, serialization(0.00), write(0.07), disk(0.01) totalstall(0.09).
    Saving completeI have also posted this question in the HumanNPC help as well. Thanks so much.
     
    Last edited by a moderator: Dec 30, 2015
  16. I am using your rewrite, got it working, but how do you set up to sell items? I can buy just fine, sell wont work.

    NVM I figured it out. Will take some time lol.
     
    Last edited by a moderator: Dec 30, 2015
  17. Fixed version by me ;)
     

    Attached Files:

  18. [Oxide] 9:50 PM [Info] GUIShop was compiled successfully in 6215ms
    [Oxide] 9:50 PM [Error] Unable to find main plugin class: GUIShop
    [Oxide] 9:50 PM [Info] No previous version to rollback plugin: GUIShop

    Same happens with 5 other plugins, none of them have been modified or renamed. What is causing this?
     
  19. Wulf

    Wulf Community Admin

    That happens when the filename doesn't match the main class. What is the filename of the version you have?
     
  20. Good evening to you Is it possible to store more ? For example, I 5 NPC and each one I 'd like to shop , is that possible ? Thank you for the answer.