summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-23 23:23:02 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-23 23:23:02 -0300
commit171b99caa2956cf8d80441ffbf1698e93d978605 (patch)
tree0f05819d590d3192e6c033063400a65bc690f6a3
parente309281ceeaac1dc796b9e774dfd6ebd34f7446d (diff)
downloadserverdata-171b99caa2956cf8d80441ffbf1698e93d978605.tar.gz
serverdata-171b99caa2956cf8d80441ffbf1698e93d978605.tar.bz2
serverdata-171b99caa2956cf8d80441ffbf1698e93d978605.tar.xz
serverdata-171b99caa2956cf8d80441ffbf1698e93d978605.zip
Joaquim's quest is complete. We could add a NPC to recycle old weapon.
So you could give, say, the Bug Slayer, get some Iron Ingots back, and use it to make the Short Gladius.
-rw-r--r--npc/009-4/_import.txt1
-rw-r--r--npc/009-4/yumi.txt59
-rw-r--r--npc/009-5/joaquim.txt8
3 files changed, 66 insertions, 2 deletions
diff --git a/npc/009-4/_import.txt b/npc/009-4/_import.txt
index ed610d24b..25d6ae1cf 100644
--- a/npc/009-4/_import.txt
+++ b/npc/009-4/_import.txt
@@ -2,3 +2,4 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/009-4/_warps.txt",
"npc/009-4/nurse.txt",
+"npc/009-4/yumi.txt",
diff --git a/npc/009-4/yumi.txt b/npc/009-4/yumi.txt
new file mode 100644
index 000000000..4ee996626
--- /dev/null
+++ b/npc/009-4/yumi.txt
@@ -0,0 +1,59 @@
+// TMW2 Script
+// Author: Jesusalva
+// Description:
+// Joaquim's wife
+
+009-4,36,33,4 script Yumi NPC_FEMALE,{
+ .@q=getq(HalinarzoQuest_SickWife);
+ if (.@q > 3) goto L_PostAid;
+ if (.@q == 3) goto L_DoIt;
+ if (BaseLevel > 36) goto L_PreAid;
+
+ mesn;
+ mesq l("Hello. Take care with the Mountain Snakes, they're highly poisonous!");
+ close;
+
+L_PreAid:
+ mesn;
+ mesq l("Please... Speak low... I am dying........");
+ next;
+ mesn;
+ mesq l("The nurse... The nurse is... Doing all she can... To help me, though.");
+ close;
+
+L_PostAid:
+ mesn;
+ mesq l("Ah, I am lively again. I wish I could just raise from this bed and do some exercise, but the Nurse refuses to let me go.");
+ // There could be another quest stage her
+ close;
+
+L_DoIt:
+ if (countitem(ElixirOfLife) < 1)
+ goto L_PreAid;
+
+ inventoryplace ElixirOfLife, 1;
+ delitem ElixirOfLife, 1;
+ getexp 17288, 0; // 15% from needed experience to level up
+ setq HalinarzoQuest_SickWife, 4;
+ mesc l("*gulp* *gulp* *gulp*");
+ next;
+ mesn;
+ mesq l("AAAAAAAHHHHH, Thanks, I am lively again!");
+ next;
+ mesn;
+ mesq l("In fact, I am cured! Hooray!!");
+ close;
+
+OnInit:
+ .@npcId = getnpcid(0, .name$);
+ setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, VneckJumper);
+ setunitdata(.@npcId, UDT_HEADBOTTOM, RaidTrousers);
+ setunitdata(.@npcId, UDT_WEAPON, LousyMoccasins); // Boots
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 10);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 15);
+
+ .sex = G_FEMALE;
+ .distance = 5;
+ end;
+}
diff --git a/npc/009-5/joaquim.txt b/npc/009-5/joaquim.txt
index 3569149c5..1ed38b778 100644
--- a/npc/009-5/joaquim.txt
+++ b/npc/009-5/joaquim.txt
@@ -54,12 +54,15 @@ L_Finish:
mesn;
mesq l("Thanks for helping my wife! May the Mouboo watch over you! o.o");
next;
- inventoryplace ElixirOfLife, 1;
+ inventoryplace ElixirOfLife, 1, IronIngot, 1;
geitem ElixirOfLife, 1;
- getexp 17288, 0; // 15% from needed experience to level up
+ geitem IronIngot, 1;
setq HalinarzoQuest_SickWife, 5;
mesn;
mesq l("Take this spare @@ I did. It heals fully and instantly, so don't hesit to use it if you're about to die.", getitemlink(ElixirOfLife));
+ next;
+ mesn;
+ mesq l("This costed years of work... But you deserve it. Here is, an @@. Use it wisely, many armor can be forged with it.", getitemlink(IronIngot));
close;
L_DoIt:
@@ -168,6 +171,7 @@ OnInit:
setunitdata(.@npcId, UDT_WEAPON, LousyMoccasins); // Boots
setunitdata(.@npcId, UDT_HAIRSTYLE, 3);
setunitdata(.@npcId, UDT_HAIRCOLOR, 5);
+ npcsit;
.sex = G_MALE;
.distance = 5;