diff options
author | gumi <git@gumi.ca> | 2018-01-09 13:30:58 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-01-09 13:30:58 -0500 |
commit | 834c94d33795450ee488d224fa072c7572d3cf6c (patch) | |
tree | b27b26559b6cbf70a50ec64a48c49db13dbbc8b5 /world | |
parent | 489e0bcd6c59e29b4ede2ca962a47458a817bf89 (diff) | |
download | serverdata-834c94d33795450ee488d224fa072c7572d3cf6c.tar.gz serverdata-834c94d33795450ee488d224fa072c7572d3cf6c.tar.bz2 serverdata-834c94d33795450ee488d224fa072c7572d3cf6c.tar.xz serverdata-834c94d33795450ee488d224fa072c7572d3cf6c.zip |
make the banker give CashiersShade when reaching 10kk in bank
Diffstat (limited to 'world')
-rw-r--r-- | world/map/db/const-quest.txt | 1 | ||||
-rw-r--r-- | world/map/npc/functions/banker.txt | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/world/map/db/const-quest.txt b/world/map/db/const-quest.txt index 76407b2a..78136c00 100644 --- a/world/map/db/const-quest.txt +++ b/world/map/db/const-quest.txt @@ -142,6 +142,7 @@ BATTLE_CAVE9 256 // Storage Options OPT_STORAGE_CLOSE 1 OPT_BANK_CLOSE 2 +OPT_BANK_GOTSHADE 4 // Currently used by the fluffy hunt (033-1). // starts counting with 0 diff --git a/world/map/npc/functions/banker.txt b/world/map/npc/functions/banker.txt index 5650c5ed..65c0343e 100644 --- a/world/map/npc/functions/banker.txt +++ b/world/map/npc/functions/banker.txt @@ -213,9 +213,26 @@ L_Balance: mes "[" + @npcname$ + "]"; mes "\"Your current bank balance is:"; mes #BankAccount + " GP\""; + if (!(#BankOptions & OPT_BANK_CLOSE) || (#BankAccount >= 10000000 && + !(#BankOptions & OPT_BANK_GOTSHADE))) next; + if (#BankAccount >= 10000000 && !(#BankOptions & OPT_BANK_GOTSHADE)) + goto L_GiveShade; if (#BankOptions & OPT_BANK_CLOSE) goto L_Return; goto L_Start; +L_GiveShade: + mes "\"Oh\""; + next; + mes "\"It seems you managed to amass quite a fortune!\""; + next; + mes "\"Thank you for using our services. Please accept this little gift.\""; + set #BankOptions, #BankOptions | OPT_BANK_GOTSHADE; + getitem "CashiersShade", 1; + if (#BankOptions & OPT_BANK_CLOSE) goto L_Return; + next; + npcaction 9; // clear npc dialog + goto L_Start; + L_Nev: mes "[" + @npcname$ + "]"; mes "\"Goodbye then.\""; |