From c3e75a2ea91803ce25ed10ceb8affae5aca59901 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 29 Jun 2018 09:28:02 -0300 Subject: Multi-char banks now have a discount %%0 --- npc/003-3/malindou.txt | 3 +++ npc/functions/bank.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index 9ee4409cb..d1679b7cf 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -28,6 +28,9 @@ OnInit: // Current UPDATE value: Dom Jun 17 21:32:45 -03 2018 if ($UPDATE < 1529281965) { $UPDATE=1529281965; + debugmes ""; + debugmes "* Please set #BankP for bankers"; + debugmes ""; //$HASAN_GP=rand(3,12)+rand(3,12)+rand(3,12); // Already initialized on the main server } diff --git a/npc/functions/bank.txt b/npc/functions/bank.txt index bb5d8ff34..ebaee6070 100644 --- a/npc/functions/bank.txt +++ b/npc/functions/bank.txt @@ -128,13 +128,13 @@ function script Banking { // name, city, price (defaults to 10k) function script Banker { - mesn getarg(0); mesq l("Welcome! My name is @@, I am a representative of the Merchant Guild on @@.", getarg(0), getarg(1)); next; L_Menu: .@price = getarg(2, 10000); + .@price=min(2000, .@price-#BankP); if (getq(General_Banker) == 0) { mesn getarg(0); mesq l("Register fee is @@.", .@price); @@ -148,6 +148,7 @@ L_Menu: case 1: Zeny=Zeny-.@price; setq General_Banker, 1; + #BankP=#BankP+rand(100,400); mesn getarg(0); mesq l("Registered! You can now use any banking service, of any town!"); break; -- cgit v1.2.3-70-g09d2