From d8f5ebf6d3c2550291a957382f4759399fd8a8a9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 6 Mar 2019 14:10:01 -0300 Subject: 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. --- npc/018-2-2/main.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'npc') 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: -- cgit v1.2.3-60-g2f50