summaryrefslogtreecommitdiff
path: root/npc/021-1/yeti.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/021-1/yeti.txt')
-rw-r--r--npc/021-1/yeti.txt114
1 files changed, 114 insertions, 0 deletions
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
+