Hello. Is there any way to execute command after killing npc (from HumanNPC plugin)? It can be made by killing player by name or something? :d
Rust Execute command after kill NPC (HumanNPC)
Discussion in 'Plugin Requests' started by Kuba85, Aug 2, 2018.
-
You should install plugin : Npctp.
after adding existing HumanNPC to it,
It will add this possibilities (thru file ./data/NpcTP_Data.json) :
this example runs command to add RP to player who killed NPC :
Code:"EnableDead": true, "DeadOnPlayer": true, "DeadCmd": "sr add ", "DeadArgs": "500",
DeadCmd -> is the console command to launch
dead args -> arguments/options to command
deadonplayer -> if true the command will be launch like "DeadCmd (player) DeadArgs"
in this case command is "sr add (player) 500"
if false the command launched will be like "DeadCmd DeadArgs"
(player) is replaced by the player who killed npc.
I remember it took some time for me to understand, thats why i tried to be as clear as possible. -
Omg! Thanks a lot!
-
Is there any way to execute that command 30 seconds after kill?
i have small dungeon with boss ant i wanna to do seems like:
- Kill Boss
- You have 30 secs to take loot
- Teleport to townLast edited by a moderator: Aug 3, 2018