From c31da02d5c1803a1d285767110c20e7555e60de5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 14 Dec 2018 16:44:55 -0200 Subject: Blood Donor quest. --- npc/001-8/hub.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'npc/001-8') diff --git a/npc/001-8/hub.txt b/npc/001-8/hub.txt index a0dd07303..145723e1c 100644 --- a/npc/001-8/hub.txt +++ b/npc/001-8/hub.txt @@ -379,6 +379,7 @@ OnPCLogoutEvent: } // TODO: Checks which doesn't belong here shouldn't be here! + // Died on Terranite Cave where exp penalty is lower if (.@mapa$ == "015-6" && @qhub_died) { if (readparam(BaseExp) < readparam(BaseExp)*2/100) end; @@ -386,6 +387,7 @@ OnPCLogoutEvent: getexp readparam(BaseExp)*2/100, 0; warp "Save", 0, 0; } + // Vanished on Cindy Cave if (.@mapa$ == "021-4" && strcharinfo(0) == $@CINDY_HERO$) { recovery(getcharid(3)); warp any("010-1", "010-2"), 0, 0; @@ -398,6 +400,12 @@ OnPCLogoutEvent: recovery(getcharid(3)); warp "Save", 0, 0; } + // Logout while donating blood + if (getq(HurnscaldQuest_BloodDonor) == 2) { + slide 35, 28; + setpcblock(PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_ITEM|PCBLOCK_MOVE, false); + setq HurnscaldQuest_BloodDonor, 0, gettimetick(2)+3600; // one hour penalty + } @qhub_victor=0; @qhub_died=0; -- cgit v1.2.3-70-g09d2