summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-24 12:06:38 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-24 12:06:38 -0200
commit7e4bdc1b13101fb2ef043f70573d55efafea7719 (patch)
tree556575e0676bd2bf9aed71bb8817e186f9c0be50 /npc
parentd8e361905743817862807fe316d855ff8886c729 (diff)
downloadserverdata-7e4bdc1b13101fb2ef043f70573d55efafea7719.tar.gz
serverdata-7e4bdc1b13101fb2ef043f70573d55efafea7719.tar.bz2
serverdata-7e4bdc1b13101fb2ef043f70573d55efafea7719.tar.xz
serverdata-7e4bdc1b13101fb2ef043f70573d55efafea7719.zip
Serge, NPC to handle Winter Quest
Diffstat (limited to 'npc')
-rw-r--r--npc/020-1/_import.txt1
-rw-r--r--npc/020-1/serge.txt52
2 files changed, 53 insertions, 0 deletions
diff --git a/npc/020-1/_import.txt b/npc/020-1/_import.txt
index 26462c45f..22f64f3d1 100644
--- a/npc/020-1/_import.txt
+++ b/npc/020-1/_import.txt
@@ -2,4 +2,5 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/020-1/_mobs.txt",
"npc/020-1/_warps.txt",
+"npc/020-1/serge.txt",
"npc/020-1/siege.txt",
diff --git a/npc/020-1/serge.txt b/npc/020-1/serge.txt
new file mode 100644
index 000000000..09101a206
--- /dev/null
+++ b/npc/020-1/serge.txt
@@ -0,0 +1,52 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// Description:
+// Hunt Fluffies, and Winter Quest, based on Luffyx. Disabled during Christmas.
+//
+// SQuest_Winter
+// SergeQuest;
+
+020-1,77,78,0 script Serge NPC_ELF_M,{
+ if (season() != WINTER)
+ goto L_OutOfSeason;
+ if ($EVENT$ == "Christmas")
+ goto L_QuestDisabled;
+
+ .@q=getq(SQuest_Winter);
+ mesn;
+ mesq l("Brrrr... I'm freezing! The winter at Nivalis is so harsh!!");
+ if (.@q < 1)
+ goto L_WinterQuest;
+
+L_Main:
+ //if (GHQUEST)
+ // GHQ_Assign(Fluffy, "Nivalis", "150.000 GP, 60 "+getitemlink(StrangeCoin));
+ close;
+
+L_OutOfSeason:
+ mesn;
+ mesq l("Hmm, Nivalis is a wonderful place to live in! Although it is a tad too cold on Winter...");
+ close;
+
+L_QuestDisabled:
+ mesn;
+ mesq l("Merry Christmas!");
+ mesc l("The @@ quest is disabled during Christmas event.", getitemlink(KnitHat));
+ close;
+
+OnInit:
+ .@npcId = getnpcid(.name$);
+ setunitdata(.@npcId, UDT_HEADTOP, CommunityShirt);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, JeansChaps);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, DeepBlackBoots);
+ setunitdata(.@npcId, UDT_WEAPON, KnitHat);
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 13);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 7);
+
+ .distance=4;
+ .sex=G_MALE;
+ npcsit;
+ end;
+
+}