I don't understand, when I replace the "chat" by a NPC ID, nothing appen when I press E. But if I write /shop in the chat a GUI open with only construction plan, but in the json I don't have any shop with only this items... I don't understand how we can use NPC to open a shop...

GUI Shop
GUI Shop based on Economics. Supports NPC
Total Downloads: 11,479 - First Release: Aug 29, 2015 - Last Update: May 3, 2018
- 5/5, 38 likes
-
to copy an existing npc:
"/npc_list" to get the list of NPC's and their relevant ID's.
"/npc_add "id"
"/npc_end to finish editing the copied NPC
Go to GUI Shop - copy and paste the structure of any NPC you want and change the id number to the newly created npc_id.
reload the shop - Job done. -
looks like latest Economics breaks GUIShop
Code:[Oxide] 10:18 AM [Info] [Notifier v2.16.7] You are playing on: #1 Texas Rust - 5x|TP|Kits|Stacks|HalfCraft|NoDecay|Wiped 11/05 [Oxide] 10:18 AM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 10:18 AM [Debug] at System.Collections.Generic.Dictionary`2[System.String,NLua.LuaFunction].get_Item (System.String key) [0x00000] in <filename unknown>:0 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 [Oxide] 10:18 AM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 10:18 AM [Debug] at System.Collections.Generic.Dictionary`2[System.String,NLua.LuaFunction].get_Item (System.String key) [0x00000] in <filename unknown>:0 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 [Oxide] 10:18 AM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 10:18 AM [Debug] at System.Collections.Generic.Dictionary`2[System.String,NLua.LuaFunction].get_Item (System.String key) [0x00000] in <filename unknown>:0 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 [Oxide] 10:18 AM [Info] [Better Chat] FlamingBullet: That makes me sad ),: > say interesting, I see the bug on my screen - guishop has a bug - let me look at it [Oxide] 10:18 AM [Info] [Death Notes] hotwheels1830 killed a Boar with a Hunting Bow from 39m. [Oxide] 10:18 AM [Info] [Better Chat] FlamingBullet: Ok [Oxide] 10:18 AM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (KeyNotFoundException: The given key was not present in the dictionary.) [Oxide] 10:18 AM [Debug] at System.Collections.Generic.Dictionary`2[System.String,NLua.LuaFunction].get_Item (System.String key) [0x00000] in <filename unknown>:0 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
[DOUBLEPOST=1447435395][/DOUBLEPOST]Not sure if this is GUIShop or HumanNPC bug but latest update to GUIShop with current HumanNPC has a bug:
1. interaction with the Vendor/NPC shows the store
2. trying to purchase says "The NPC owning this show was not found around you"
doing oxide.reload for guishop or humannpc does not fix. I also checked that the npc ID is correct. -
as above getting the same error now after updating. "The NPC owning this shop was not found around you"
-
try the latest HumanNPC plugin i've posted in the plugins thread
-
ok. Nogrod, I tried the latest HumanNPC posted in the HumanNPC plugin thread on page 48 1.0.22. and now I don't even get a GUIShop UI to show up
also while standing directly in front of my NPCs typing /npc_edit no longer seems to work -
Hello! Tell as to make figures exactly?
Attached Files:
-
-
Bonjour/Hello
I have a problem:
In command chat: (22:13:07) | [Oxide] 10:13 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
And with an NPC:
(22:11:29) | [Oxide] 10:11 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
Economics, NPChuman and GuiShop is updated on my server
(Sorry for my bad english, i am French)
-
For Economics v2.0.2:
Attached Files:
-
-
Thanks for all Nogrod
It's working ! You are my rescuer
-
thanks for the fix
-
Hello,
I have problems with my file, someone could take a look?
thank you in advance
Code:12:42 PM [Info] Unloaded plugin GUIShop v1.1.2 by Reneb 12:42 PM [Info] Loaded plugin GUIShop v1.1.2 by Reneb 12:42 PM [Error] GUIShop v1.1.2: Failed to load config file (is the config file corrupt?) (Additional text encountered after finished reading JSON content: ,. Path '', line 666, position 4.)
Attached Files:
Last edited by a moderator: Nov 16, 2015 -
-
the items are not appearing in the list when I open the /shop
[DOUBLEPOST=1447795528,1447785776][/DOUBLEPOST]works, so I could not add _bp ...Attached Files:
-
-
it's " bp" not "_bp"
so: "bolt action rifle bp" -
[Oxide] 12:14 PM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.)
[Oxide] 12:15 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.) -
how to fix ??
Attached Files:
-
-
Same as Zeker, shop stopped work.
-
-
Can you update the main plugin for us Nogrod?