diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-09-24 13:12:02 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-09-24 13:12:02 -0300 |
commit | cabca69675f0166b1d361ff72e2b79d06fc8e506 (patch) | |
tree | 21ac5adef4d6abd4dbc3e10ce8d756ba656f2e6e /npc/commands | |
parent | 6656999ab4c701327f6934f52b0305710d448cae (diff) | |
download | serverdata-cabca69675f0166b1d361ff72e2b79d06fc8e506.tar.gz serverdata-cabca69675f0166b1d361ff72e2b79d06fc8e506.tar.bz2 serverdata-cabca69675f0166b1d361ff72e2b79d06fc8e506.tar.xz serverdata-cabca69675f0166b1d361ff72e2b79d06fc8e506.zip |
Initial, untested version of Boss Raid
Diffstat (limited to 'npc/commands')
-rw-r--r-- | npc/commands/event.txt | 14 |
1 files changed, 13 insertions, 1 deletions
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 |