From d7ca2cf5085cb5e916256868c5ca70bc5156dfdd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 16 Nov 2022 01:25:17 -0300 Subject: Sarah quest can now be repeated daily. She'll pay you 50gp profit if you buy from shop, or 175gp if you don't --- npc/003-1/sarah.txt | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'npc') diff --git a/npc/003-1/sarah.txt b/npc/003-1/sarah.txt index 60383895b..1d431f2b8 100644 --- a/npc/003-1/sarah.txt +++ b/npc/003-1/sarah.txt @@ -4,8 +4,9 @@ // Jesusalva // DangerDuck // Description: -// Random NPC without any purpose but to give SerfHat. Uh. -// TODO: Could be repeatable quest (eg. 60 GP for a cake every day, so you can have a 10 GP profit selling cakes) +// "Random" NPC without "any purpose" but to give a Serf Hat. +// Secretly a pirate lord. Uh. +// Also repeatable daily (60 GP for a cake every day, so you can have a 10 GP profit selling cakes) 003-1,90,144,0 script Sarah NPC_FEMALE_TONORI,{ function quest_completed; @@ -36,8 +37,27 @@ // Quest completed function quest_completed { - speech S_FIRST_BLANK_LINE | S_LAST_NEXT, - l("It was so tasty, I can't eat anything more... Thank you."); + if (getq2(TulimsharQuest_Sarah) != gettimeparam(GETTIME_DAYOFMONTH)) { + .@price = getiteminfo(CherryCake, ITEMINFO_SELLPRICE) * 3; + mesn; + mesq l("Hey, I remember you! You brought me cake the other day!"); + next; + mesn; + mesq l("I am coordinating some pirat... uhm... actually nevermind, but the problem is that I can't leave here! So if you can bring me %d %s, I'll pay you %s GP!", 5, getitemlink(CherryCake), fnum(.@price*5)); + next; + if (countitem(CherryCake) >= 5) { + mesc "["+l("Deliver the cake to Sarah?")+"]", 1; + if (askyesno() == ASK_YES) { + delitem CherryCake, 5; + Zeny += .@price * 5; + setq2 TulimsharQuest_Sarah, gettimeparam(GETTIME_DAYOFMONTH); + } + } + } else { + mesn; + mesq l("It was so tasty, I can't eat anything more... Thank you."); + next; + } AssignGHQ(); return; } @@ -76,7 +96,7 @@ function quest_open { delitem CherryCake,5; getitem SerfHat,1; getexp 80, 2; - setq TulimsharQuest_Sarah, 1; + setq TulimsharQuest_Sarah, 1, gettimeparam(GETTIME_DAYOFMONTH); close; } else { speech S_FIRST_BLANK_LINE, -- cgit v1.2.3-60-g2f50