From 5c3c32b51d3254ee2e16e1f0394e84078d1937d9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 Jun 2018 14:32:16 -0300 Subject: Now I only need the reward stage, and Anwar quest is complete! B-) --- npc/003-1/eomie.txt | 28 ++++++++++++++++++++++++++++ npc/004-1/anwar.txt | 15 +++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/npc/003-1/eomie.txt b/npc/003-1/eomie.txt index cd38c5b10..58aa07d5c 100644 --- a/npc/003-1/eomie.txt +++ b/npc/003-1/eomie.txt @@ -8,6 +8,7 @@ 003-1,68,24,0 script Eomie NPC_ELF_F,{ .@q=getq(TulimsharQuest_AnwarField); + if (.@q == 7) goto L_FirstAid; if (.@q == 1) goto L_NotMe; hello; @@ -28,6 +29,33 @@ L_NotMe: setq TulimsharQuest_AnwarField, 2; close; +L_FirstAid: + mesn; + mesq l("The crops are under attack? That's terrible!"); + next; + mesn; + mesq l("I can do a bug bomb right away, but I still need a few things for it!"); + next; + mesn; + mesq l("Do you, perchance, have 2 @@ and 3 @@?", getitemlink(ScorpionClaw), getitemlink(Moss)); + if (askyesno() != ASK_YES) + close; + mes ""; + + if (countitem(ScorpionClaw) < 2 || + countitem(Moss) < 3) { + mesn; + mesq l("The situation is too serious to you be lying... Please, go fetch the items..."); + } + + delitem ScorpionClaw, 2; + delitem Moss, 3; + setq TulimsharQuest_AnwarField, 8; + + mesn; + mesq l("Quick, deliver this to Anwar!"); + close; + OnInit: .@npcId = getnpcid(0, .name$); //setunitdata(.@npcId, UDT_HEADTOP, PinkieHat); diff --git a/npc/004-1/anwar.txt b/npc/004-1/anwar.txt index eb6f1ed91..d89a8d166 100644 --- a/npc/004-1/anwar.txt +++ b/npc/004-1/anwar.txt @@ -14,6 +14,7 @@ if (.@q >= 11) goto L_GiveTinris; if (.@q == 10) goto L_GiftMaterial; */ + if (.@q == 8) goto L_SecondTry; if (.@q >= 6) goto L_FirstTry; if (.@q == 5) goto L_TryIt; if (.@q >= 1) goto L_FirstTry; @@ -69,6 +70,20 @@ L_TryIt: close; +L_SecondTry: + mesn strcharinfo(0); + mesq l("Here is the bug bomb! Eomie just gave me. Hurry up!"); + next; + getexp 20, 0; + specialeffect(51); + setq TulimsharQuest_AnwarField, 9; + mesn; + mesq l("Thanks God... The crops are safe. Not only that, but the fertilizer works!"); + next; + mesn; + mesq l("Ah, that was tiresome... I'll go make a reward for them, talk to me again later."); + close; + L_Weak: hello; end; -- cgit v1.2.3-70-g09d2