I'm having a hard time getting NPCs to work. With "chat" as the shop name, I get invalid command server responses, with NPC ID's in the shops, i get "find an NPC to use the shop" when doing /shop, and when I press E on the NPCs I only get the response of the NPC turning my direction. I am fairly sure the json is fine, I copy pasted it from my other server, which is working fine, and only changed the NPC numbers, which I quadruple checked to confirm they were correct. No, I have no rebound my use key. Yes, I have run the json through lint. Yes, I have gotten the plugin working on my other server. The setup here is nearly identical, just on a new host.

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
-
Attached Files:
-
-
"buy": [
"Water Plant Teleport", ~
..
~ "Rusty Island"
],
"description": "You currently have {0} coins to spend.",
"name": "Rad Town Teleport"
},
I have tried instead id NPC change id zone. Nothing happens.Last edited by a moderator: Feb 10, 2016 -
That ID must match the NPC id you created.
you can get the NPC id by doing an /npc_list or looking at the json.
All the NPC numbers in my list are unique to my NPCs on my server. Yours will be different ids.
[DOUBLEPOST=1455129779][/DOUBLEPOST] -
-
when I use / shop, an error
please help, I do not work plugin, an error in the console that can be wrong?
[Oxide] 12:51 PM [Error] Failed to call hook 'cmdShop' on plugin 'GUIShop v1.1.2' (InvalidCastException: Cannot cast from source type to destination type.) -
-
I have added all items and have some weapon shops, how do I access them in game considering I am using Kits & Economy, but no NPC?
-
I suddenly have no items in my shops! Valid json file, worked a little while ago and now it just... doesn't ! ack! The shop gui opens, but they have nothing inside, although the file I created and was using is intact, still. Help!
-
Question time :/
[ChatCommand("shop")]
If i change this command to "bpshop" in the .cs file, reinstall. Will that be all I need to do??
From there, I want to install the same mod twice, and have the second "itemshop"
I dont like the page transitions in a shop and many dont even know there are more items...
So I want two chat shops...
2 .cs files and 2 config files..
Will the second GUIshop2.cs file, generate GUIshop2.json ??
If it will, then I should be ok to go ahead..
If not, can this be edited to have different chat commands to show different chat shops??
[DOUBLEPOST=1455423844][/DOUBLEPOST]
A: Not a valid file.. one wrong ";" and it wont work..
B: You added the items where you add images etc, but didn't place them in the shops below...
eg:
"Large Chest BP": {
"buy": "100000",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20160211200336",
"item": "large chest bp",
"sell": "10"
},
The item is added with that. But wont show in the shop without this...
"Shop - Shop List": {
"NPC_ID_HERE": {
"buy": [
"Large Chest BP"
],
"description": "You currently have {0} coins to spend in this builders shop",
"name": "SHOP_NAME_HERE"
}, -
I thank you for your reply, but I've had that problem too, and learned the hard way that it not only won't work, but will be set back to default, thanks to my host I think; I won't even get the npc to bring up the shops at all if it's a misplaced or missing comma, etc. I'm thinking it may be a mod interference, and am looking into it- the oddest thing was that it began with ONE npc not bringing up the shop at all, then to all the rest showing empty shops a few hours later. So I'm figuring with that unpredictability, it must be conflict with another mod. I stuck a few in there yesterday, and am looking into it- if I find out what it was I'll post so others know what mod might have issues with this. It's certainly a large part of my server and I've worked SO hard to get all the items in there, I'm NOT going to just say it doesn't work and ditch it! When it's working, it's freaking perfect!
--and yes, I have been checking and double-checking everything through the json file editor/checker!! Invaluable, that.
-
I keep getting a bug with my server, i have configured it up all to work but when i go to the npc and tap e on them it just makes them spin around, and when i do /shop nothing shows up in chat, any ideas to fix?
-
Show me your config file. Its most likely something small -
Attached Files:
Last edited by a moderator: Feb 14, 2016 -
-
Can you help me? the icons are images with a brightness / contrast too high, and this is ugly, has a way to fix?
PRINT: Screenshot -
[DOUBLEPOST=1455499521][/DOUBLEPOST]Attached Files:
-
-
Can Anyone Help Me? I cant access the shops when i go up to a npc and press e they just spin around and when i do /shop it comes up with nothing in chat. Here are my files Officer JAKE, you might know whats going on
Attached Files:
-
-
You have one NPC set as......
"1234567": {
"buy": [
"Apple",
"BlueBerries",
"Assault Rifle",
"Bolt Action Rifle"
I imagine that's a test or doesn't work, as that's an unlikely NPC ID...
Otherwise. Im not sure I can help you. Unless its purely GUIshop based..
I don't use NPC / Waypoints / Pathfinding.. So I know nothing about them....
If your NPC is spinning. I would think perhaps it's HumanNPC or waypoints creating this...
Your shop seems ok assuming the NPC ID is correct
[DOUBLEPOST=1455519663][/DOUBLEPOST]
Its the only thing in the chat shop, so im not sure... -
I guess i will just play around with it thenthanks for the help ! Maybe its my zone manager plugin that conflicts with the npc's
-
Start from the begining.. Add a NPC... Test, give it a kit, test, add the shop, test...
Should be easy from there -
ok if you have read the threads before this will sound similar but my problem is weather i try /shop or program it for an NPC and go to him nothing happends has anyone figured out how to fix this issue?