From 59180c94e7f5859fc5b5b60d678030d30c1fb7fd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 17 Aug 2019 17:24:31 -0300 Subject: Fix bugs, and add Blossom Quest for Enchanted Herb Bag. Even sounds silly given how bad Thorn is rewarding you. --- npc/014-4/thorn.txt | 1 + npc/014-5/blossom.txt | 31 ++++++++++++++++++++++++++++++- npc/functions/util.txt | 8 ++++++-- 3 files changed, 37 insertions(+), 3 deletions(-) (limited to 'npc') diff --git a/npc/014-4/thorn.txt b/npc/014-4/thorn.txt index 2547ddd88..e14b13956 100644 --- a/npc/014-4/thorn.txt +++ b/npc/014-4/thorn.txt @@ -45,6 +45,7 @@ L_Main: mesn; mesq l("Thanks for helping me out. I know this is nothing, but please accept these herbs I've collected."); setq HurnscaldQuest_Thorn, 1; + next; } } closeclientdialog; diff --git a/npc/014-5/blossom.txt b/npc/014-5/blossom.txt index b8bf502b3..e5a359cf0 100644 --- a/npc/014-5/blossom.txt +++ b/npc/014-5/blossom.txt @@ -19,7 +19,36 @@ goto L_SpringQuest; L_Main: - close; + next; + .@q=getq(HurnscaldQuest_Blossom); + if (.@q == 0) { + mesn; + mesq l("Anyway, I got this really nice @@ from Audsbel. He said I could collect herbs more efficiently with it.", getitemlink(EnchantedHerbBag)); + next; + mesn; + mesq l("I am willing to give it to you, if help me out. I promise it won't be a bother, and it'll really be useful for you, I swear."); + next; + mesn; + mesq l("I would like @@ @@, @@ @@ and @@ @@!", 30, getitemlink(HalfEggshell), 7, getitemlink(RedApple), 1, getitemlink(Orange)); + mesc l("@@ drolls without realizing.", .name$); + next; + mesc l("Give her the materials she asked for?"); + if (askyesno() == ASK_YES) { + inventoryplace EnchantedHerbBag, 1; + if (!transcheck(HalfEggshell, 30, RedApple, 7, Orange, 1)) + close; + getitem HalfEggshell, 1; + getexp 600, 120; // Reference: Level 20 + mesn; + mesq l("Thanks for helping me out! Here, take this bag. Now if you excuse me..."); + mesc l("*drolls*"); + setq HurnscaldQuest_Blossom, 1; + next; + } + } + closeclientdialog; + goodbye; + end; L_OutOfSeason: mesn; diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 31789ee92..7a47a8cae 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -270,11 +270,15 @@ function script reputation { .@nr=.@nr+1; // Thorn Quest (+1 rep) - if (getq(HurnscaldQuest_Thorn) >= 11) + if (getq(HurnscaldQuest_Thorn) >= 1) + .@nr=.@nr+1; + + // Blossom Quest (+1 rep) + if (getq(HurnscaldQuest_Blossom) >= 1) .@nr=.@nr+1; // HURNSCALD Magical Forumula - .@nr=.@nr*100/10; + .@nr=.@nr*100/11; -- cgit v1.2.3-60-g2f50