diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-11-21 16:21:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-11-21 16:21:58 -0300 |
commit | 6a941671dd609b9aa0b60698c439f8a4657fd905 (patch) | |
tree | 4349cad2df04b9abaee7285e114393dcfa3f4f44 /npc/081-3 | |
parent | 9ed449f62e151c955240810397111c2f4c8e5221 (diff) | |
download | serverdata-6a941671dd609b9aa0b60698c439f8a4657fd905.tar.gz serverdata-6a941671dd609b9aa0b60698c439f8a4657fd905.tar.bz2 serverdata-6a941671dd609b9aa0b60698c439f8a4657fd905.tar.xz serverdata-6a941671dd609b9aa0b60698c439f8a4657fd905.zip |
Add the necessary scripts so the Existence Frontier can be tested.
Diffstat (limited to 'npc/081-3')
-rw-r--r-- | npc/081-3/logic.txt | 31 |
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; } |