diff options
author | gumi <git@gumi.ca> | 2019-08-20 23:14:12 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-03-08 16:07:59 -0400 |
commit | d8c9ff3ba3ece0973d313847f43fc9a866868d3b (patch) | |
tree | 6e284b3fa574beb6b67acb5bf6473209cde21ac3 /world/map/npc/025-4/battlecaves.txt | |
parent | 71f5ceed044d3908b971f5f5f6457086e0ebaa30 (diff) | |
download | serverdata-d8c9ff3ba3ece0973d313847f43fc9a866868d3b.tar.gz serverdata-d8c9ff3ba3ece0973d313847f43fc9a866868d3b.tar.bz2 serverdata-d8c9ff3ba3ece0973d313847f43fc9a866868d3b.tar.xz serverdata-d8c9ff3ba3ece0973d313847f43fc9a866868d3b.zip |
avoid killing players in quest NPCshardcore
Diffstat (limited to 'world/map/npc/025-4/battlecaves.txt')
-rw-r--r-- | world/map/npc/025-4/battlecaves.txt | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/world/map/npc/025-4/battlecaves.txt b/world/map/npc/025-4/battlecaves.txt index ffab9a05..808e0440 100644 --- a/world/map/npc/025-4/battlecaves.txt +++ b/world/map/npc/025-4/battlecaves.txt @@ -16,7 +16,8 @@ L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -108,7 +109,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -198,7 +200,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -289,7 +292,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -383,7 +387,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -477,7 +482,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -571,7 +577,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -667,7 +674,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -763,7 +771,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -854,7 +863,8 @@ L_Done: if ($@battlecave10 == 1 && cavefights & BATTLE_CAVE1 && cavefights & BATTLE_CAVE2 && cavefights & BATTLE_CAVE3 && cavefights & BATTLE_CAVE4 && cavefights & BATTLE_CAVE5 && cavefights & BATTLE_CAVE6 && cavefights & BATTLE_CAVE7 && cavefights & BATTLE_CAVE8 && cavefights & BATTLE_CAVE9 && Rossy_Quest == 15) goto L_Start; message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Start: @@ -981,7 +991,7 @@ L_Out: if (Rossy_Quest > 15) goto L_Done; message strcharinfo(0), "As you try to walk through, you bump into a strong magical barrier."; - heal ((MaxHp/100) * -10), 0; + set Hp, max(1, Hp - 100); end; L_Done: @@ -1003,7 +1013,8 @@ L_Done: L_Cheat: message strcharinfo(0), "You shouldn't be here, you cheater."; - heal -Hp, 0; + set Hp, 1; + warp getsavepoint(0), getsavepoint(1), getsavepoint(2); end; L_Done: @@ -1015,4 +1026,3 @@ L_Save: message strcharinfo(0), "You can't leave Julia here, all alone!"; end; } - |