diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-13 00:57:23 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-13 00:57:23 -0300 |
commit | eca038e00b9937d6c177bd8cddc8b5b1a2e9c5a9 (patch) | |
tree | bd7cc4caca79d1663f3c4f1088e203bb87706a53 /npc/042-2 | |
parent | 2c73977e32827d85b99a62fcf2d4663278da74a1 (diff) | |
download | serverdata-eca038e00b9937d6c177bd8cddc8b5b1a2e9c5a9.tar.gz serverdata-eca038e00b9937d6c177bd8cddc8b5b1a2e9c5a9.tar.bz2 serverdata-eca038e00b9937d6c177bd8cddc8b5b1a2e9c5a9.tar.xz serverdata-eca038e00b9937d6c177bd8cddc8b5b1a2e9c5a9.zip |
Replace our script-induced deaths with new, custom, die() command
This will fix one of the HardCore Server bugs.
Diffstat (limited to 'npc/042-2')
-rw-r--r-- | npc/042-2/boss.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/npc/042-2/boss.txt b/npc/042-2/boss.txt index 238c5d95b..914290e59 100644 --- a/npc/042-2/boss.txt +++ b/npc/042-2/boss.txt @@ -13,7 +13,7 @@ OnTouch: .@label$=instance_npcname(.name$)+"::OnKillBoss"; .@g=getcharid(2); - if (.@g < 1) percentheal -100, -100; + if (.@g < 1) die(); if (($KAMELOT_QUEST[.@g] & 4) && !mobcount(getmap(), .@label$)) { warp "042-3@"+.@g, 58, 139; } else { @@ -28,7 +28,7 @@ OnArrival: .@m$=instance_mapname("042-2"); .@g=getcharid(2); if (.@g < 1) - percentheal -100, -100; + die(); //debugmes getmap(); if (getmap() != "042-2@"+.@g) end; @@ -153,7 +153,7 @@ OnTimer185000: OnVerifyIntent: .@g=getcharid(2); - if (.@g < 1) percentheal -100, -100; + if (.@g < 1) die(); mesq l("Who are you, and how did you manage to come down here? The sheer power of our Lord prevents anyone not under his control to go here."); select l("We are strong fighters, and we want to free the King from his obsession."), @@ -183,7 +183,7 @@ OnVerifyIntent: OnKillMob: if (!playerattached()) end; .@g=getcharid(2); - if (.@g < 1) percentheal -100, -100; + if (.@g < 1) die(); getexp $KAMELOT_MX[.@g]*5, $KAMELOT_MX[.@g]*2; end; @@ -308,7 +308,7 @@ OnTimer1015000: OnReward: .@g=getcharid(2); - if (.@g < 1) percentheal -100, -100; + if (.@g < 1) die(); setpcblock(255, true); getitem GuildCoin, min(1, $KAMELOT_MX[.@g]/25); getexp $KAMELOT_MX[.@g]*50, $KAMELOT_MX[.@g]*10; |