summaryrefslogtreecommitdiff
path: root/npc/081-3/logic.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/081-3/logic.txt')
-rw-r--r--npc/081-3/logic.txt31
1 files changed, 24 insertions, 7 deletions
diff --git a/npc/081-3/logic.txt b/npc/081-3/logic.txt
index b2fe131b..6d98fddc 100644
--- a/npc/081-3/logic.txt
+++ b/npc/081-3/logic.txt
@@ -3,7 +3,6 @@
// Jesusalva
// Notes:
// Christmas 2021 - Boss Chamber #1
-// FIXME: Cleanup
081-3,44,36,0 script Pentagram#Xmas21A NPC424,{
.@id = X21ID();
@@ -26,6 +25,7 @@
close;
}
+ .BC1ME = getcharid(3);
.@mg = monster(getmap(), 44, 36, "Existential Crisis", Santaboo, 1, .@n$+"::OnFin"); // FIXME Santaboo => SnowBallMan
// Prepare the difficulty settings
@@ -60,10 +60,16 @@
close;
OnFin:
- // FIXME: Memorize who broke the seal
- // and attach the seal broker
- // FIXME: Mark quest as complete
- // FIXME: Give experience to the MVP as well
+ if (playerattached())
+ getexp 10000, 0;
+ // Attach whoever broke the seal
+ if (attachrid(.BC1ME)) {
+ if (!X21BC1_CLEAR()) {
+ dispbottom l("Whatever that guardian was, the path is now clear, and the gate, open.");
+ X21BC1_DOCLEAR();
+ getexp 5000, 0;
+ }
+ }
stopnpctimer;
end;
@@ -118,15 +124,21 @@ OnTimer30000:
initnpctimer;
end;
+OnClean:
+ enablenpc(.name$);
+ killmonsterall(getmapinfo(MAPINFO_NAME));
OnInit:
.distance=2;
.BC1ID = 0;
.CYCLE = 0;
+ .BC1ME = 0;
end;
}
081-3,44,22,0 script #0813Nexit NPC_HIDDEN,0,0,{
+ end;
+OnTouch:
if (!X21BC1_CLEAR()) {
dispbottom l("A strong magic barrier prevents me from using this exit.");
end;
@@ -144,8 +156,13 @@ OnInit:
close;
}
end;
-OnInit:
- .distance=2;
+}
+
+081-3,44,50,0 script #0813Sexit NPC_HIDDEN,0,0,{
+ end;
+OnTouch:
+ if ($@XMAS21_BC1[.@id] == X21BC1_ON) end;
+ warp "081-2", 90, 21;
end;
}