summaryrefslogtreecommitdiff
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
parent5bc819860ee9763eda4f2db47433c4f0d9eb5820 (diff)
downloadserverdata-4f31f8c4c86153a20b87fca57fdad6a3e950e763.tar.gz
serverdata-4f31f8c4c86153a20b87fca57fdad6a3e950e763.tar.bz2
serverdata-4f31f8c4c86153a20b87fca57fdad6a3e950e763.tar.xz
serverdata-4f31f8c4c86153a20b87fca57fdad6a3e950e763.zip
Yeti Lookout at 021-1
-rw-r--r--db/constants.conf1
-rw-r--r--db/quest_db.conf4
-rw-r--r--maps/re/021-1.mcachebin3193 -> 3192 bytes
-rw-r--r--npc/021-1/_import.txt1
-rw-r--r--npc/021-1/yeti.txt114
5 files changed, 120 insertions, 0 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 7c1048fe3..516e7e5f2 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -4052,6 +4052,7 @@ constants_db: {
NPC_YETI_KING: 454
NPC_LOF_FURNACE: 455
NPC_PET_TAMER: 456
+ NPC_YETI: 457
NPC_SOUL_NORMAL: 700
NPC_SOUL_DESERT: 701
diff --git a/db/quest_db.conf b/db/quest_db.conf
index 1d7d6acb5..f46b137af 100644
--- a/db/quest_db.conf
+++ b/db/quest_db.conf
@@ -252,6 +252,10 @@ quest_db: (
Id: 111
Name: "NivalisQuest_Well"
},
+{
+ Id: 112
+ Name: "NivalisQuest_Cindy"
+},
// ID 131 to 150: Frostia Quests
{
Id: 131
diff --git a/maps/re/021-1.mcache b/maps/re/021-1.mcache
index 4a509e832..814ce576c 100644
--- a/maps/re/021-1.mcache
+++ b/maps/re/021-1.mcache
Binary files differ
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
+