summaryrefslogtreecommitdiff
path: root/npc/021-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-16 22:36:45 -0300
committerJesusaves <cpntb1@ymail.com>2018-10-16 22:36:45 -0300
commit4f31f8c4c86153a20b87fca57fdad6a3e950e763 (patch)
treef48a45376b407d06c7547cb50b04d26af8edbec3 /npc/021-1
parent5bc819860ee9763eda4f2db47433c4f0d9eb5820 (diff)
downloadserverdata-4f31f8c4c86153a20b87fca57fdad6a3e950e763.tar.gz
serverdata-4f31f8c4c86153a20b87fca57fdad6a3e950e763.tar.bz2
serverdata-4f31f8c4c86153a20b87fca57fdad6a3e950e763.tar.xz
serverdata-4f31f8c4c86153a20b87fca57fdad6a3e950e763.zip
Yeti Lookout at 021-1
Diffstat (limited to 'npc/021-1')
-rw-r--r--npc/021-1/_import.txt1
-rw-r--r--npc/021-1/yeti.txt114
2 files changed, 115 insertions, 0 deletions
diff --git a/npc/021-1/_import.txt b/npc/021-1/_import.txt
index 292821262..dc1f365cf 100644
--- a/npc/021-1/_import.txt
+++ b/npc/021-1/_import.txt
@@ -1,3 +1,4 @@
// Map 021-1: Ice Labyrinth
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/021-1/_warps.txt",
+"npc/021-1/yeti.txt",
diff --git a/npc/021-1/yeti.txt b/npc/021-1/yeti.txt
new file mode 100644
index 000000000..881924269
--- /dev/null
+++ b/npc/021-1/yeti.txt
@@ -0,0 +1,114 @@
+// TMW2 script.
+// Authors:
+// Jesusalva
+// Description:
+// Controls the Cindy Gateway quest node.
+// Also controls Watch Spot Yetis.
+
+021-1,246,206,0 script Yeti#0211Cindy NPC_YETI,{
+ // Is this the right Yeti?
+ .@n=getq(NivalisQuest_Well);
+
+ if (.@n < 2)
+ goto L_NoQuest;
+
+ // Alright, now we need to cycle Cindy quest to decide if this NPC will have
+ // a special behavior or not.
+ .@q=getq(NivalisQuest_Cindy);
+
+ // if (.@q == 999) goto L_Cindy;
+
+ mesn;
+ mesq l("Hey, thanks for saving me. You know, from the well.");
+ next;
+ mesn strcharinfo(0);
+ mesq l("You're wel-- Wait, it was you who was trapped on the well near Miler's house?!");
+ next;
+ mesn;
+ mesq l("Yes, exactly. Thanks for the rescue. I must guard this area from the caves, if you need, just call me.");
+ close;
+
+L_NoQuest:
+ @yetiagro=@yetiagro+1;
+ if (@yetiagro > 5) goto L_Hit;
+ if (@yetiagro > 3) goto L_Warning;
+ if (@yetiagro > 1) goto L_Disrupt;
+ goto L_Walking;
+
+L_Walking:
+ mesn;
+ mesq l("Grr, where's Mercury... He was supposed to keep watch over this spot... It was meant to be my free time!");
+ next;
+ mesn;
+ mesq l("And you, @@... You better get walking. Soon.", $@allraces$[Class]);
+ close;
+
+L_Disrupt:
+ mesn;
+ mesq l("Grrr... Why are @@ on this cave?! What Mercury was doing?!", $@allraces$[Class]);
+ close;
+
+L_Warning:
+ mesn;
+ mesq l("Stupid @@, get out of this cave before I lose my patience!", $@allraces$[Class]);
+ close;
+
+L_Hit:
+ mesn;
+ mesq l("DIE, SCUM!");
+ percentheal -100, -100;
+ @yetiagro=0;
+ close;
+
+OnInit:
+ .sex=G_OTHER;
+ .distance=20;
+ end;
+}
+
+
+
+
+
+
+/////////////////////////////////////////////////////// Random Lookout Yetis
+021-1,144,203,0 script Yeti#0211Guard NPC_YETI,{
+ @yetiagro=@yetiagro+1;
+ if (@yetiagro > 5) goto L_Hit;
+ if (@yetiagro > 3) goto L_Warning;
+ if (@yetiagro > 1) goto L_Disrupt;
+ goto L_Walking;
+
+L_Walking:
+ mesn;
+ mesq l("You, @@... You better get walking. Soon.", $@allraces$[Class]);
+ close;
+
+L_Disrupt:
+ mesn;
+ mesq l("Grrr... Why are @@ on this cave?! Begone, before I lose my patience!", $@allraces$[Class]);
+ close;
+
+L_Warning:
+ mesn;
+ mesq l("Stupid @@, get out of this cave before I lose my patience!", $@allraces$[Class]);
+ close;
+
+L_Hit:
+ mesn;
+ mesq l("DIE, SCUM!");
+ percentheal -100, -100;
+ @yetiagro=0;
+ close;
+
+OnInit:
+ .sex=G_OTHER;
+ .distance=20;
+ end;
+}
+
+
+
+
+//021-1,25,298,0 duplicate(Yeti#0211Guard) Yeti#0211G2 NPC_YETI
+