summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-11-16 01:25:17 -0300
committerJesusaves <cpntb1@ymail.com>2022-11-16 01:25:17 -0300
commitd7ca2cf5085cb5e916256868c5ca70bc5156dfdd (patch)
tree95dbb9187916391456b2a2e6da0b54bf8885d5bb /npc/003-1
parent80535c041fe72f737fa2424826a501ec86e8c0f3 (diff)
downloadserverdata-d7ca2cf5085cb5e916256868c5ca70bc5156dfdd.tar.gz
serverdata-d7ca2cf5085cb5e916256868c5ca70bc5156dfdd.tar.bz2
serverdata-d7ca2cf5085cb5e916256868c5ca70bc5156dfdd.tar.xz
serverdata-d7ca2cf5085cb5e916256868c5ca70bc5156dfdd.zip
Sarah quest can now be repeated daily.
She'll pay you 50gp profit if you buy from shop, or 175gp if you don't
Diffstat (limited to 'npc/003-1')
-rw-r--r--npc/003-1/sarah.txt30
1 files changed, 25 insertions, 5 deletions
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,