From cabca69675f0166b1d361ff72e2b79d06fc8e506 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Sep 2021 13:12:02 -0300 Subject: Initial, untested version of Boss Raid --- npc/commands/event.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'npc/commands') diff --git a/npc/commands/event.txt b/npc/commands/event.txt index 31fd527f2..ba81ca96c 100644 --- a/npc/commands/event.txt +++ b/npc/commands/event.txt @@ -535,11 +535,23 @@ OnEffect: message strcharinfo(0), l("You are now at the Christmas Workshop."); end; } - // FIXME: Dream Tower Warp if ($EVENT$ == "Tower" && countitem(EventDreamTicket)) { doevent "sDreamTower::OnWarpTo"; end; } + if ($EVENT$ == "Raid") { + .@id = array_find($FYRAID_OWNER, getcharid(3)); + if (.@id >= 0) { + if ($FYRAID_TIME[.@id] > gettimetick(2) && + $FYRAID_HP[.@id] > 0) { + teleporthome(); + dispbottom l("Talk to Soul Menhir to start."); + end; + } + // Boss expired or already defeated - ignore + } + // Have not yet taken part on boss raid - ignore + } } // Block here -- cgit v1.2.3-60-g2f50