summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-05-11 22:39:55 -0300
committerJesusaves <cpntb1@ymail.com>2022-05-11 22:39:55 -0300
commit85edd8bd0ef4236809be8cc77f4d17c835d81491 (patch)
treee0710770d8b5a654a3ea2ad7da278b49158bd856
parentf0f8d2242c273d563b6003720ef054444188d4ce (diff)
downloadserverdata-85edd8bd0ef4236809be8cc77f4d17c835d81491.tar.gz
serverdata-85edd8bd0ef4236809be8cc77f4d17c835d81491.tar.bz2
serverdata-85edd8bd0ef4236809be8cc77f4d17c835d81491.tar.xz
serverdata-85edd8bd0ef4236809be8cc77f4d17c835d81491.zip
This isn't a bank, this is a thief!
-rw-r--r--db/constants.conf2
-rw-r--r--npc/032-1/episode.txt110
2 files changed, 110 insertions, 2 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 0023a537c..7968252f8 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -1810,6 +1810,7 @@ constants_db: {
NPC_LEGACY_GUARD_B: 217
NPC_LEGACY_GUARD_C: 218
NPC_SITTED_NINJA: 219
+ NPC_SCAMMER: 220
NPC_CRUSADER: 221
NPC_LEGACY_GUARD_A: 222
NPC_LOF_RICH: 223
@@ -1819,6 +1820,7 @@ constants_db: {
NPC_SWORDS_SIGN2: 230
NPC_TOMBOY: 231
NPC_LOF_BARKEEPER: 232
+ NPC_LOF_TRAVMERC: 233
NPC_LOF_STRANGER: 234
NPC_LOF_NOBLEMAN: 235
NPC_SHEILA: 236
diff --git a/npc/032-1/episode.txt b/npc/032-1/episode.txt
index 3199948fd..0655d5e0a 100644
--- a/npc/032-1/episode.txt
+++ b/npc/032-1/episode.txt
@@ -491,9 +491,115 @@ OnInit:
end;
}
-// NPC_LEGACY_GUARD_B NPC_LEGACY_GUARD_C NPC_LEGACY_GUARD_D NPC_LEGACY_LIEUTENANT
+032-1,65,223,0 script Townhall Guard#EP NPC_LEGACY_GUARD_D,{
+ mesn;
+ mesq l("Sorry, but no entry to Townhall under orders of the council head, Benjamin L.");
+ close;
+
+OnInit:
+ .distance=5;
+ end;
+}
+
+032-1,138,126,0 script Market Guard#EP NPC_LEGACY_GUARD_C,{
+ mesn;
+ mesq l("With the wages I receive, you can use this market at your own risk.");
+ close;
+
+OnInit:
+ .distance=5;
+ end;
+}
+
+032-1,40,146,0 script Academy Guard#EP NPC_LEGACY_GUARD_B,{
+ mesn;
+ mesq l("I'm actually paid by the Academy, or there would be no security here.");
+ close;
+
+OnInit:
+ .distance=5;
+ end;
+}
+
+032-1,152,183,0 script Lt. Longburn#EP NPC_LEGACY_LIEUTENANT,{
+ mesn;
+ mesq l("If you have trouble with guards, just bribe them and they'll leave you alone. I asked a few to be fired three years ago, but the council haven't reviewed it yet.");
+ close;
+
+OnInit:
+ .distance=5;
+ end;
+}
+
+032-1,138,152,0 script Begger#EP NPC_SCAMMER,{
+ mesn;
+ mesq l("I was kicked out of home for not paying rent. But I had no choice, it was either to eat or to have a roof...");
+ close;
+
+OnInit:
+ .distance=5;
+ end;
+}
+
+032-1,114,194,0 script Imec#EP NPC_LOF_TRAVMERC,{
+ .@q = (getq(LoFQuest_EPISODE) == 15 ? getq2(LoFQuest_EPISODE) : 99);
+ .@x = getq3(LoFQuest_EPISODE);
+ .@met_banu = (.@x & 1);
+ .@ask_apple = (.@x & 2);
+ .@got_apple = (.@x & 4);
+ .@banu_priz = (.@x & 8);
+ .@warez = (!.@q && (.@ask_apple && !.@got_apple));
+ .@apple = 12-countitem(RedApple);
+ mesn;
+ mesq l("Warez?");
+ next;
+ select
+ l("No but thanks."),
+ l("No, loans."),
+ rif(.@warez && .@apple > 0, l("Yes, I need %d apples.", .@apple));
+ mes "";
+ switch (@menu) {
+ case 1:
+ closeclientdialog; break;
+ case 2:
+ mesn;
+ mesc l("To pay in the specified date, we'll charge you %s over the loaned amount. So, how much?", "25%");
+ next;
+ menuint
+ l("I'm sure the Doctor has a trick... No loans, thanks."), 0,
+ rif(BankVault > 1250, l("1,000 GP")), 1000,
+ rif(BankVault > 3125, l("2,500 GP")), 2500,
+ rif(BankVault > 6250, l("5,000 GP")), 5000,
+ rif(BankVault > 12500, l("10,000 GP")), 10000,
+ rif(BankVault > 62500, l("50,000 GP")), 50000,
+ rif(BankVault > 312500, l("250,000 GP")), 250000;
+ mes "";
+ BankVault -= @menuret * 125 / 100;
+ Zeny += @menuret;
+ mesn;
+ mesq l("...As you wish.");
+ break;
+ case 3:
+ // Inflation: 400%
+ // Plus a discount for buying many at once
+ .@price = .@apple * getiteminfo(RedApple, ITEMINFO_BUYPRICE) * 4 + (120 - (.@apple*10));
+ mesn;
+ mesq l("That'll be %s GP.", fnum(.@price));
+ if (Zeny < .@price) break;
+ next;
+ if (askyesno() == ASK_NO) break;
+ Zeny -= .@price;
+ getitem RedApple, .@apple;
+ mesn;
+ mesq l("My pleasure.");
+ }
+ close;
+
+OnInit:
+ .distance=5;
+ end;
+}
// NPC_OMAR NPC_KADIYA NPC_SASHA
-// FIXME: A bank is urgently needed
// Omatt (NPC_OMAR) swears to make a large donation to the Academy
// shall Kadiya ever be cured. He is a trader of rare gems.