diff options
Diffstat (limited to 'npc/guild2/arug_cas04.txt')
-rw-r--r-- | npc/guild2/arug_cas04.txt | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/npc/guild2/arug_cas04.txt b/npc/guild2/arug_cas04.txt index ba75931a6..7a7ad1b0f 100644 --- a/npc/guild2/arug_cas04.txt +++ b/npc/guild2/arug_cas04.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 2.2 +//= 2.3 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= @@ -26,6 +26,7 @@ //= Can no longer gain eco/def higher than 100. //= 2.1 Fixed setcell extending more than it should on 3rd barricade. (bugreport:4323) [L0ne_W0lf] //= 2.2 Corrected exterior flag positions. (bugreport:4436) [L0ne_W0lf] +//= 2.3 Fixed a possible exploit in guild castle investment. [Brian] //============================================================ arug_cas04,1,1,0 script Manager#aru04_02 111,{ @@ -2371,7 +2372,7 @@ arug_cas04,328,98,3 script Steward#aru04 55,{ mes "any further than that."; close; } - if (GetCastleData("arug_cas04",4) == 2) { + if (GetCastleData("arug_cas04",4) >= 2) { mes "[ Steward ]"; mes "You've already made two"; mes "investments today, so you'll"; @@ -2397,6 +2398,14 @@ arug_cas04,328,98,3 script Steward#aru04 55,{ next; switch(select("Invest in Commercial Growth:Cancel")) { case 1: + if (GetCastleData("arug_cas04",4) >= 2) { + mes "[ Steward ]"; + mes "You've already made two"; + mes "investments today, so you'll"; + mes "have to wait until tomorrow"; + mes "to make another investment."; + close; + } if (Zeny < .@eco_invest) { mes "[ Steward ]"; mes "I'm sorry, Master, but"; @@ -2465,7 +2474,7 @@ arug_cas04,328,98,3 script Steward#aru04 55,{ mes "cannot be increased further."; close; } - if (GetCastleData("arug_cas04",5) == 2) { + if (GetCastleData("arug_cas04",5) >= 2) { mes "Master, you've already"; mes "invested in Defense twice"; mes "today. You'll need to wait"; @@ -2489,6 +2498,15 @@ arug_cas04,328,98,3 script Steward#aru04 55,{ next; switch(select("Invest in Defense:Cancel")) { case 1: + if (GetCastleData("arug_cas04",5) >= 2) { + mes "[ Steward ]"; + mes "Master, you've already"; + mes "invested in Defense twice"; + mes "today. You'll need to wait"; + mes "until tomorrow if you really"; + mes "want to increase our defenses."; + close; + } if (Zeny < .@def_invest) { mes "[ Steward ]"; mes "I'm sorry, Master, but"; |