summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-12-27 20:02:41 -0300
committerJesusaves <cpntb1@ymail.com>2023-12-27 20:02:41 -0300
commita3c76b991687fc500424c651200e88b636d1ea71 (patch)
treeeec8cdd745fc8c6615b15e20daa19b9d5b8c4adb /npc
parenta2e8dbb552ab698be3aa01ed0e457bc5b9a77f24 (diff)
downloadserverdata-a3c76b991687fc500424c651200e88b636d1ea71.tar.gz
serverdata-a3c76b991687fc500424c651200e88b636d1ea71.tar.bz2
serverdata-a3c76b991687fc500424c651200e88b636d1ea71.tar.xz
serverdata-a3c76b991687fc500424c651200e88b636d1ea71.zip
Converge Jhon H code with Ryan code, making it easier to be completed.
No further nerfs are planned and rate is 1:1 even if DB attributes 10:1.
Diffstat (limited to 'npc')
-rw-r--r--npc/009-2/ryan.txt1
-rw-r--r--npc/024-1/john.txt40
2 files changed, 41 insertions, 0 deletions
diff --git a/npc/009-2/ryan.txt b/npc/009-2/ryan.txt
index 7c6ea4ca7..2483c1e0c 100644
--- a/npc/009-2/ryan.txt
+++ b/npc/009-2/ryan.txt
@@ -9,6 +9,7 @@
if (BaseLevel < 17) goto L_Weak;
if (!getq(HalinarzoQuest_LifeDelight)) goto L_Prologue;
.@q=getq2(HalinarzoQuest_LifeDelight);
+ // This code is duplicated in npc/024-1/john.txt
if (.@q < 20)
.@a=(.@q**2)+18;
else if (.@q < 40)
diff --git a/npc/024-1/john.txt b/npc/024-1/john.txt
index 86f7bbcea..fc61aaad2 100644
--- a/npc/024-1/john.txt
+++ b/npc/024-1/john.txt
@@ -289,6 +289,46 @@
//mesc l("Futurely, Mylarin Dust and a Sunny Crystal will also be available."); // And a Mysterious Fruit + Platinum, just like Ryan
}
break;
+ // The Bitter Bullet: Contribute some to Ryan progress
+ // Erases partly the progress here
+ case 23:
+ // Tonori Delight is 50 gp and Coffee is 500 gp, but Coffee can
+ // be bought, so it is treated equally here
+ .@surplus = .@q2 - 500;
+ // Verify if Ryan is willing to accept or if Ryan has specials
+ .@ryan=getq2(HalinarzoQuest_LifeDelight);
+ if (.@ryan >= 99) break; // There's nothing else
+ if (.@ryan <= 20 ||
+ .@ryan == 29 ||
+ .@ryan == 39 ||
+ //.@ryan == 49 ||
+ //.@ryan == 50 ||
+ .@ryan == 59 ||
+ .@ryan == 69 ||
+ .@ryan == 79 ||
+ .@ryan == 89 ||
+ .@ryan >= 92) {
+ mesc l("I should talk to Ryan instead; no progress will be gained otherwise.");
+ next;
+ break;
+ }
+ // Calculate the amount Ryan would charge for next step
+ if (.@ryan < 40)
+ .@a=400+18*(.@ryan-24);
+ else if (.@ryan < 50)
+ .@a=670+10*(.@ryan-39);
+ else
+ .@a=780+(.@ryan*(.@ryan < 75 ? 1 : 2));
+
+ // Ryan is willing; however, we eliminate ALL THE SURPLUS
+ // Then we advance Ryan stage WITHOUT ANY REWARD.
+ if (.@surplus >= .@ryan) {
+ setq2 FrostiaQuest_JhonH, 500;
+ setq2 HalinarzoQuest_LifeDelight, .@ryan+1;
+ mesn;
+ mesq l("Oooh, thanks, thanks! I'll let my brother Ryan know how cool you are, he lives in Halinarzo and is addicted in %s!", getitemlink(TonoriDelight));
+ }
+ break;
}
// Item acquired?
if (getq3(FrostiaQuest_JhonH) != .@q3) {