summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-06 14:10:01 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-06 14:10:01 -0300
commitd8f5ebf6d3c2550291a957382f4759399fd8a8a9 (patch)
tree08f21e1ac482ca04f4efc53aeb4565c723e1827b
parent273e67ed859533ea5d70043526eb7cbb442e5138 (diff)
downloadserverdata-d8f5ebf6d3c2550291a957382f4759399fd8a8a9.tar.gz
serverdata-d8f5ebf6d3c2550291a957382f4759399fd8a8a9.tar.bz2
serverdata-d8f5ebf6d3c2550291a957382f4759399fd8a8a9.tar.xz
serverdata-d8f5ebf6d3c2550291a957382f4759399fd8a8a9.zip
Handle correctly death at Heroes Hold, and allows players four seconds to collect drops
They can still be attack, and CANNOT ATTACK NOR USE SKILLS. They get a full recovery for that purpose.
-rw-r--r--npc/018-2-2/main.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/018-2-2/main.txt b/npc/018-2-2/main.txt
index 9782fe297..25e1c1383 100644
--- a/npc/018-2-2/main.txt
+++ b/npc/018-2-2/main.txt
@@ -15,13 +15,22 @@
}
OnFinish:
- warp "018-2-1", 0, 0;
+ if (ispcdead())
+ end;
.@g=getq2(LoFQuest_HH);
setq2 LoFQuest_HH, .@g|@HH_LEVEL;
dispbottom l("Dungeon cleared!");
getitem HeroCoin, @HH_LEVEL*3;
getexp 4800-@HH_TIMER, @HH_LEVEL*20;
deltimer("#HH_CONTROLLER01::OnPlayerCycle");
+ setpcblock(PCBLOCK_ATTACK|PCBLOCK_SKILL, true);
+ addtimer(4000, "#HH_CONTROLLER01::OnCompulsoryWarp");
+ recovery(getcharid(3));
+ end;
+
+OnCompulsoryWarp:
+ setpcblock(PCBLOCK_ATTACK|PCBLOCK_SKILL, false);
+ warp "018-2-1", 0, 0;
end;
OnNoviceBossKilled: