This may sound weird, but a player told me he played on a server where the GUI Shop was setup to sell "NPCs", not from NPCs but that you could actually buy NPCs in the shop and use them as guards. Is this even remotely possible? I don't see how.

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
-
-
So I'm not the only one having issues?
-
If anyone could help me get this sorted will be great thanks
Code:[Oxide] 2:36 PM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 2:36 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
Last edited by a moderator: Dec 6, 2015 -
we need update its not working anymore at my server with npc or command
-
Yeah same here Nephilim
-
same here ...
-
Just starting with basic config. I'll add items when I start seeing an overlay menu.
I also saw the post where someone mentioned "" Parent "" ""Overlay"" should change to HUD/Overlay, but that is not in your new versions. I don't want to start editing your plugins. For me this is just a test server. There seems to be a lot of strife between people in here. A lot of problems, yet no solutions. People saying its easy to set up if you read the overview. Well that is simply false. Read it over and over, watched your video, read 17 pages of useless arguing, and there is no solution that works for simply getting /shop to show the shop overlay.
An example is in your non NPC config you have the sell part below the store name and description. After watching your video I see you have it above.
Anyway no menu comes up and I am not using NPC, warp, or zones. Just basic "chat".
I'd love to ask, so what am I doing wrong, but I'm doing everything all these coding wizards say to do.
I did upgrade to Oxide 1599 today. Should I go back to 1598? According to the owner of the server I play on 1599 worked and 16xx didn't work. Menu works on his server, but no items because he has all NPC shops, and NPC's are hosed.
I suppose if he changes all his npc Id's to "chat", we can actually use his store.
If I do ever get this to work, what if I wanted to have separate stores for category's? How would you select between stores by typing /shop?
Thats really a question for later though. I can't even get one store menu to come up.
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" } }, "Shop - Shop List": { "chat": { "buy": [ "Apple", "BlueBerries", "Bolt Action Rifle", "Assault Rifle" ], "sell": [ "Apple", "BlueBerries" ], "description": "You currently have {0} coins to spend in this shop", "name": "Shop", } } }
Without you it was impossible to set up.
Is the original writer of this plugin burnt out on it? Why no official listing on the front page for this version 1.1.3?Last edited by a moderator: Dec 15, 2015 -
-
Seems that way
-
Some servers are working with this plugin maybe you could ask for there old cs not sure it will work but maybe worth a go
-
Doesn't work.
Code:(14:04:40) | [Oxide] 11:05 AM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
-
No, the plugin works now if you go to Nogrods post on page 14 and DL his version. I can confirm it works on my server but I'm not using NPC. I can also confirm that it works on Uprising (TheDoc's server) with NPC, but you need oxide 2.0.16xx. Officially Oxide is only up to 1598, but you can DL the newer versions on github.
Last edited by a moderator: Dec 9, 2015 -
Last edited by a moderator: Dec 15, 2015
-
i set it up successfully, economics 2.0.2 guishop 1.1.2 and this guishop.cs file (in the attatchment of Nogrod)
-
Code:
[Oxide] 11:30 AM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 11:30 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
-
@Dreke Try 1.1.3
-
Attached Files:
-
-
We just need to face it plugin is dead untill he updates it
-
You need to use the .json validation tool to make sure your .json is formatted correctly.
This is the site: JSONLint - The JSON Validator.
Here is a .json for a non NPC store. It works, and has all items for buy and sell. you can remove the rotten food if you want. Just use Nogrod's 1.13, and if you make changes to the .json, use the validation tool.Attached Files:
Last edited by a moderator: Dec 9, 2015 -