summaryrefslogtreecommitdiff
path: root/npc/042-10/ctrl.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-01 05:27:45 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-01 05:27:45 -0300
commiteaf3b6e4e3219f87d3a2c3bd10237b0d789c158d (patch)
tree212686b4d22d9bd38d383fe952e22935440aca10 /npc/042-10/ctrl.txt
parente98e1c9a8baf3e8f7602437405568ff5caae0a79 (diff)
downloadserverdata-eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d.tar.gz
serverdata-eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d.tar.bz2
serverdata-eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d.tar.xz
serverdata-eaf3b6e4e3219f87d3a2c3bd10237b0d789c158d.zip
Sketches for Kamelot Main Caves and Boss Chamber
The magic logic is still not here, only the warps logic
Diffstat (limited to 'npc/042-10/ctrl.txt')
-rw-r--r--npc/042-10/ctrl.txt80
1 files changed, 80 insertions, 0 deletions
diff --git a/npc/042-10/ctrl.txt b/npc/042-10/ctrl.txt
new file mode 100644
index 000000000..7b79ce21d
--- /dev/null
+++ b/npc/042-10/ctrl.txt
@@ -0,0 +1,80 @@
+// TMW 2 Script
+// Author:
+// Jesusalva
+// Micksha
+// Description:
+// Controls the great hall
+
+// None of the exits work
+042-10,86,139,0 script #KDoor04210a NPC_HIDDEN,3,0,{
+ end;
+
+OnTouch:
+ .@g=getcharid(2);
+ if (.@g < 1) percentheal -100, -100;
+ dispbottom l("OH NOES! The ceiling seems to have collapsed. I hope we got the key, or the quest is over for us!");
+ end;
+}
+
+042-10,149,136,0 duplicate(#KDoor04210a) #KDoor04210b NPC_HIDDEN,0,0
+042-10,21,139,0 duplicate(#KDoor04210a) #KDoor04210c NPC_HIDDEN,2,0
+042-10,20,80,0 duplicate(#KDoor04210a) #KDoor04210d NPC_HIDDEN,0,6
+
+
+// Boss Room control
+042-10,142,20,0 script #KDoor04210e NPC_HIDDEN,4,0,{
+ end;
+
+OnTouch:
+ .@g=getcharid(2);
+ if (.@g < 1) percentheal -100, -100;
+ if (!($KAMELOT_QUEST[.@g] & 16) || !($KAMELOT_QUEST[.@g] & 32)) goto L_NoAccess;
+ warp "042-11@"+.@g, 41, 56;
+ // TODO Fire Events
+ end;
+
+L_NoAccess:
+ dispbottom l("This door is locked, if we only had a %s...", getitemlink(KamelotKey));
+ end;
+}
+
+// Boss Room Warning
+042-10,150,25,0 script Warning#Kamelot NPC_HIDDEN,{
+ mesc ".:: "+l("DANGER!")+" ::.", 1;
+ mes "";
+ mesc l("I've sealed a massive amount of dark magic here."), 1;
+ mesc l("Do not break my seal to prevent the curse from reaching Kamelot."), 1;
+ mes "";
+ mes l("-- Merlin");
+ end;
+OnInit:
+ .distance=4;
+ end;
+}
+
+// Magic Seal Main
+042-10,135,42,0 script #KamelotSeal NPC_HIDDEN,0,4,{
+ end;
+
+OnTouch:
+ .@g=getcharid(2);
+ if (.@g < 1) percentheal -100, -100;
+ if (!($KAMELOT_QUEST[.@g] & 16)) goto L_NoAccess;
+ end;
+
+L_NoAccess:
+ slide 127, 36;
+ percentheal -10, -10;
+ dispbottom l("A powerful magic seal repeals you!");
+ end;
+}
+
+////////////////////////////////////////////////////////////////////
+// TODO: Catazuli spots
+// TODO: Door Mechanism
+// TODO: Spawn monsters
+
+
+
+
+