From 328f1b9fef0d06bc2d12648f2cf45f6a91bcfe58 Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Sat, 2 Jun 2018 16:53:03 -0300
Subject: Backup data before I get AFK

---
 npc/003-1/eomie.txt  | 19 ++++++++++++++++++-
 npc/003-1/tinris.txt | 31 +++++++++++++++++++++++++++++++
 npc/004-1/anwar.txt  | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 99 insertions(+), 3 deletions(-)

diff --git a/npc/003-1/eomie.txt b/npc/003-1/eomie.txt
index e338bbae3..720b8be0c 100644
--- a/npc/003-1/eomie.txt
+++ b/npc/003-1/eomie.txt
@@ -7,8 +7,25 @@
 // Notes: Eomie did the bug bomb at Candor
 
 003-1,68,24,0	script	Eomie	NPC_ELF_F,{
+    .@q=getq(TulimsharQuest_AnwarField);
+    if (.@q == 1) goto L_NotMe;
 
-hello;
+    hello;
+
+L_NotMe:
+    mesn strcharinfo(0);
+    mesq l("Hello Ms. Eomie, kind sir Anwar sent me to fetch some fertilizers to save Tulimshar from famine, if you may?");
+    next;
+    mesn;
+    mesq lg("Sorry kind sir @@, but no.", "Sorry kind lady @@, but no.", strcharinfo(0));
+    next;
+    mesn;
+    mesq l("Or rather, I can't. I would love to help you, just like everybody else, but I don't know how to make fertilizers.");
+    next;
+    mesn;
+    mesq l("Tinris probably could do that, he is young but very talented. He is a greedy elf, but if you help him, he'll likely help you back.");
+    setq TulimsharQuest_AnwarField, 2;
+    close;
 
 OnInit:
     .@npcId = getnpcid(0, .name$);
diff --git a/npc/003-1/tinris.txt b/npc/003-1/tinris.txt
index 012ec6518..81cbb0045 100644
--- a/npc/003-1/tinris.txt
+++ b/npc/003-1/tinris.txt
@@ -6,6 +6,11 @@
 //    Part of Anwar Field quest
 
 003-1,66,30,0	script	Tinris	NPC_ELF,{
+    .@q=getq(TulimsharQuest_AnwarField);
+
+    if (.@q == 3) goto L_Back;
+    if (.@q == 2) goto L_Start;
+    if (.@q == 1) goto L_Refuse;
 
     // Placeholder dialog
     mesn;
@@ -16,6 +21,32 @@
     mesq l("In the end, elves would have quite the age to rivalize with human wizards.");
     close;
 
+// READ THE HOLY DIALOGS!!
+L_Refuse:
+    mesn strcharinfo(0);
+    mesq l("Hello! Anwar sent me to get fertilizer to save Tulimshar from famine, could you help me?");
+    next;
+    mesn;
+    mesq l("No.");
+    close;
+
+L_Start:
+    mesn strcharinfo(0);
+    mesq l("Hello, could I help you in exchanger of fertilizer?");
+    next;
+    mesn;
+    mesq l("I like people like you, straight to the subject.");
+    next;
+    mesn;
+    mesq l("The birthday of me and my girlfriend is coming up. Bring me 12 @@ and I'll make the fertilizer for you.", getitemlink(CherryCake));
+    setq TulimsharQuest_AnwarField, 3;
+    close;
+
+L_Back:
+    mesn;
+    mesq l("Unfinished script, blame Saulc (who doesn't even knows I already got a script).");
+    close;
+
 OnInit:
     .@npcId = getnpcid(0, .name$);
     //setunitdata(.@npcId, UDT_HEADTOP, 2929); // TODO: This NPC is an Elf and therefore, CANNOT use NPCEyes.
diff --git a/npc/004-1/anwar.txt b/npc/004-1/anwar.txt
index 265ee94c5..f97e1e1e2 100644
--- a/npc/004-1/anwar.txt
+++ b/npc/004-1/anwar.txt
@@ -5,8 +5,56 @@
 // Description:
 //    Part of Anwar Field quest
 
-004-1,107,67,0	script	Anwar	NPC_PLAYER,{
+004-1,107,67,0	script	Anwar	NPC_RAIJIN,{
     .@q=getq(TulimsharQuest_AnwarField);
-    hello;
+
+    /*
+    if (.@q >= 15) goto L_Done;
+    if (.@q >= 13) goto L_GiveEomie;
+    if (.@q >= 11) goto L_GiveTinris;
+    if (.@q == 10) goto L_GiftMaterial;
+    if (.@q >= 5) goto L_SecondTry;
+    */
+    if (.@q >= 1) goto L_FirstTry;
+
+    mesn;
+    mesq l("Hi. Could you perhaps be interested in doing some small errand for me?");
+    menu
+        l("Sure!"),L_Sure,
+        l("I'm busy, sorry."),L_Close;
+
+
+L_Sure:
+    mes "";
+    mesn;
+    mesq l("Great! Eomie, the girl on Tulimshar's magic academy, is an alchemist. She makes fertilizers.");
+    next;
+    mesn;
+    mesq l("This farm is dying due constant monster attacks, and without them, Tulimshar might face a famine.");
+    next;
+    mesn;
+    mesq l("Please, talk to her. Maybe she understands the direness of the situation and help... But you know. Elves.");
+    setq TulimsharQuest_AnwarField, 1;
+    close;
+
+L_FirstTry:
+    mesn;
+    mesq l("Good luck getting the fertilizer from Eomie! Many elves simply refuse to cooperate until it affects them directly.");
+    close;
+
+L_Close:
+    close;
+
+OnInit:
+    .@npcId = getnpcid(0, .name$);
+    //setunitdata(.@npcId, UDT_HEADTOP, 2929); // TODO: This NPC is an Elf and therefore, CANNOT use NPCEyes.
+    setunitdata(.@npcId, UDT_HEADMIDDLE, ArtisTankTop);
+    setunitdata(.@npcId, UDT_HEADBOTTOM, CottonTrousers);
+    setunitdata(.@npcId, UDT_WEAPON, DeepBlackBoots); // Boots
+    setunitdata(.@npcId, UDT_HAIRSTYLE, 6);
+    setunitdata(.@npcId, UDT_HAIRCOLOR, 14);
+
+    .sex = G_MALE;
+    .distance = 4;
     end;
 }
-- 
cgit v1.2.3-70-g09d2