summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/event.txt14
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