summaryrefslogtreecommitdiff
path: root/npc/018-6-3/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/018-6-3/main.txt')
-rw-r--r--npc/018-6-3/main.txt44
1 files changed, 44 insertions, 0 deletions
diff --git a/npc/018-6-3/main.txt b/npc/018-6-3/main.txt
index 73032ac9f..4d0553bfa 100644
--- a/npc/018-6-3/main.txt
+++ b/npc/018-6-3/main.txt
@@ -19,6 +19,11 @@ function script 01863_RelevanceCheck {
return true;
}
+// TODO: filler
+function script 01863_DisableAllWarps {
+ return;
+}
+
// Main Controller for Instanced maps
018-6-3,0,0,0 script #01863_InstCtrl NPC_HIDDEN,{
end;
@@ -172,4 +177,43 @@ OnKill256:
}
+////////// Warp System below this file
+018-6-3,0,0,0 script #01863_fromOuttoNC NPC_SUMMONING_CIRC,0,0,{
+ dispbottom l("I should be prepared before walking on this");
+ end;
+
+OnTouch:
+ .@q=getq(LoFQuest_Barbara);
+ .@q2=getq2(LoFQuest_Barbara);
+ .@q3=getq3(LoFQuest_Barbara);
+ if (.@q != 3)
+ Exception("ERROR, INVALID WARP", RB_DEFAULT|RB_ISFATAL);
+
+ // Compulsory call
+ 01863_DisableAllWarps();
+
+ // Warp you to next room coordinates
+ slide 0, 0;
+
+ // Check if a boss fight is needed or open the warps
+ // This room is 1 (rooms are 1, 2, 4, 8, 16...)
+ if (01863_RelevanceCheck(1)) {
+ // Copy here the code of OnBossNC
+ //doevent "#01863_InstCtrl::OnBossNC";
+ BossRoom(4, 77, 65, 103, 76);
+ } else {
+ // enablenpc instance_npcname("#01863_fromNCtoNW");
+ // enablenpc instance_npcname("#01863_fromNCtoNE");
+ debugmes "filler";
+ }
+ end;
+
+
+OnInit:
+ disablenpc .name$;
+ end;
+OnInstanceInit:
+ disablenpc instance_npcname(.name$);
+ end;
+}