From d8c9ff3ba3ece0973d313847f43fc9a866868d3b Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 20 Aug 2019 23:14:12 -0400 Subject: avoid killing players in quest NPCs --- world/map/npc/commands/_import.txt | 1 + world/map/npc/commands/python.txt | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'world/map/npc/commands') diff --git a/world/map/npc/commands/_import.txt b/world/map/npc/commands/_import.txt index 74fd8a1e..d57e7939 100644 --- a/world/map/npc/commands/_import.txt +++ b/world/map/npc/commands/_import.txt @@ -17,3 +17,4 @@ npc: npc/commands/python.txt npc: npc/commands/gm.txt npc: npc/commands/automod.txt npc: npc/commands/valentine.txt +npc: npc/commands/absolve.txt diff --git a/world/map/npc/commands/python.txt b/world/map/npc/commands/python.txt index 8924338c..c31cf424 100644 --- a/world/map/npc/commands/python.txt +++ b/world/map/npc/commands/python.txt @@ -14,7 +14,11 @@ OnKill: if (!(isloggedin(@python[0]))) end; gmlog "stomped " + if_then_else(@python[0] == BL_ID, "themselves", strcharinfo(0, @python[0])) + " with a giant foot!"; - set Hp, 0, @python[0]; + addtimer 0, strnpcinfo(0) + "::OnWarp", @python[0]; + end; + +OnWarp: + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; OnInit: -- cgit v1.2.3-70-g09d2