Wulf updated Npctp with a new update entry:
2.4.2
Npctp
Create an NPC that will TP a player to anywhere, run commands, or open a door
Total Downloads: 1,052 - First Release: Nov 27, 2016 - Last Update: May 10, 2018
- 5/5, 5 likes
-
Wulf Community Admin
-
sorry i was away back now... Thanks Wulf
-
anyone want to pm me there server to see how your using your npc's to give me some ideas.
-
The commands aren't working and i get this error everytime i try spawning something with the npc
Code:Failed to call hook 'cmdRun' on plugin 'Npctp v2.4.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Npctp.cmdRun (.Arg arg) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Npctp.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
-
i will look into this is it just the commands not working?
-
Hi, can I use items from the game as payment, such as food or SCRAP?
-
Currently no but give me some time i see if i can add this in.
-
I am getting this error and the odd thing is it only happens when i enable economics i believe it to be the same error as Beaver Zombie
Failed to call hook 'cmdRun' on plugin 'Npctp v2.4.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.Npctp.cmdRun (.Arg arg) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Npctp.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod 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 hook, System.Object[] args) [0x00000] in <filename unknown>:0 -
ok let me check into this can you send your npc config/data files so i can see it for the npc in question
-
Hope this is what you are wanting. Still very new to all of this Thanks for the help though.
Attached Files:
-
-
Works like a charm thank you!
-
-
hi How to program the command "spawn Sedan "
"UseCommand": true,
"CommandOnPlayer": true,
"Command": "spawn sedan",
spawned sedantest.entity[22625] at (0.0, 0.0, 0.0)
spawned sedantest.entity[22625] at (0.0, 0.0, 0.0)
Invalid Position: sedantest.entity[22625] (0.0, -502.0, 0.0) (destroying) -
spawnsedan 727.4265 0.3007777 -1580.33
you need the location in the command to spawn it -
"CommandOnPlayer": true,
"Command": "spawn sedan -219.6 0.5 528.9",
it doesn't work -
set the CommandOnPlayer to false
and im not to sure on the sintax for the spawn in the counsel let me do some testing.
[DOUBLEPOST=1526255818][/DOUBLEPOST]try this in the command "spawn sedan \"7-219.6 0.5 528.9\"" -
-
Hi I would want to know what is the command so that the npc me tp in my corpse thank you
-
Hello how is that the npc teleporte the player in his body thank you
Npctp