summaryrefslogtreecommitdiff
path: root/npc/001-8
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-14 16:44:55 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-14 16:44:55 -0200
commitc31da02d5c1803a1d285767110c20e7555e60de5 (patch)
tree6d85d371a53df6595b7a8df549e06667b3eee6c0 /npc/001-8
parent410ac49a8424199af541a9cd262cc2e06b830fb2 (diff)
downloadserverdata-c31da02d5c1803a1d285767110c20e7555e60de5.tar.gz
serverdata-c31da02d5c1803a1d285767110c20e7555e60de5.tar.bz2
serverdata-c31da02d5c1803a1d285767110c20e7555e60de5.tar.xz
serverdata-c31da02d5c1803a1d285767110c20e7555e60de5.zip
Blood Donor quest.
Diffstat (limited to 'npc/001-8')
-rw-r--r--npc/001-8/hub.txt8
1 files changed, 8 insertions, 0 deletions
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;