diff options
Diffstat (limited to 'npc/guild2/arug_cas05.txt')
-rw-r--r-- | npc/guild2/arug_cas05.txt | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/npc/guild2/arug_cas05.txt b/npc/guild2/arug_cas05.txt index fffda5ff2..f739c6d17 100644 --- a/npc/guild2/arug_cas05.txt +++ b/npc/guild2/arug_cas05.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 1.9 +//= 2.0 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= @@ -22,6 +22,8 @@ //= 1.7 Replaced effect numerics with constants. [L0ne_W0lf] //= 1.8 Fixed wrong event call for stones. (bugreport:2386) [L0ne_W0lf] //= 1.9 Applied updated eco/def systems. [L0ne_W0lf] +//= 2.0 Fixed eco/def not actually incrementing. [L0ne_W0lf] +//= Can no longer gain eco/def higher than 100. //============================================================ arug_cas05,1,1,0 script Manager#aru05_02 111,{ @@ -109,6 +111,20 @@ Onchange: OnClock0001: if (!GetCastleData("arug_cas05",1)) end; killmonster "arug_cas05","Manager#aru05_02::OnTreasureDied"; + + if (GetCastleData("arug_cas05",4)) { + set .@Economy,GetCastleData("arug_cas05",2); + SetCastleData "arug_cas05",2,.@Economy + GetCastleData("arug_cas05",4) + (rand(2) && getgdskilllv(.@GID,10014)); + if (GetCastleData("arug_cas05",2) > 100) SetCastleData "arug_cas05",2,100; + setcastledata "arug_cas05",4,0; + } + if (GetCastleData("arug_cas05",5)) { + set .@Defence,GetCastleData("arug_cas05",3); + SetCastleData "arug_cas05",3,.@Defence + GetCastleData("arug_cas05",5); + if (GetCastleData("arug_cas05",3) > 100) SetCastleData "arug_cas05",3,100; + setcastledata "arug_cas05",5,0; + } + set .@Treasure,GetCastleData("arug_cas05",2)/5+4; if (.@Treasure) { monster "arug_cas05",291,276,"Treasure Chest",1945,1,"Manager#aru05_02::OnTreasureDied"; @@ -156,16 +172,6 @@ OnClock0001: if (.@Treasure < 24) end; monster "arug_cas05",298,269,"Treasure Chest",1324,1,"Manager#aru05_02::OnTreasureDied"; } - if (GetCastleData("arug_cas05",4)) { - set .@Economy,GetCastleData("arug_cas05",2); - SetCastleData "arug_cas05",2,.@Economy + GetCastleData("arug_cas05",4) + (.@Economy<99 && rand(2) && getgdskilllv(.@GID,10014)); - setcastledata "arug_cas05",4,0; - } - if (GetCastleData("arug_cas05",5)) { - set .@Defence,GetCastleData("arug_cas05",3); - SetCastleData "arug_cas05",3,.@Defence + GetCastleData("arug_cas05",5); - setcastledata "arug_cas05",5,0; - } end; OnTreasureDied: |