diff options
Diffstat (limited to 'npc/guild2/arug_cas01.txt')
-rw-r--r-- | npc/guild2/arug_cas01.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/npc/guild2/arug_cas01.txt b/npc/guild2/arug_cas01.txt index b8712e521..8aff1c173 100644 --- a/npc/guild2/arug_cas01.txt +++ b/npc/guild2/arug_cas01.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= L0ne_W0lf //===== Current Version: ===================================== -//= 1.3 +//= 1.4 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= @@ -14,6 +14,9 @@ //= Fixed improper label used in guaridan stone. //= 1.2 Fixed double message in defense investing. [L0ne_W0lf] //= 1.3 Fixed a guardian spawning NPCs. [L0ne_W0lf] +//= 1.4 Fixed investment period not resetting. [L0ne_W0lf] +//= Made it so treasure won't spawn if castle is empty. +//= Treasure will now be killed before spawning. //============================================================ arug_cas01,1,1,0 script Manager#aru01_02 111,{ @@ -98,12 +101,13 @@ Onchange: end; OnClock0001: + if (!GetCastleData("arug_cas01",1)) end; + killmonster "arug_cas01","Manager#aru01_02::OnMyTreasureDied"; + // Reset daily investment limit. set .@Treasure,GetCastleData("arug_cas01",2)/5+4; if (.@Treasure) { monster "arug_cas01",251,369,"Treasure Chest",1943,1,"Manager#aru01_02::OnTreasureDied"; - if (.@Treasure < 2) end; monster "arug_cas01",251,369,"Treasure Chest",1324,1,"Manager#aru01_02::OnTreasureDied"; - if (.@Treasure < 3) end; monster "arug_cas01",253,369,"Treasure Chest",1943,1,"Manager#aru01_02::OnTreasureDied"; if (.@Treasure < 4) end; monster "arug_cas01",254,369,"Treasure Chest",1324,1,"Manager#aru01_02::OnTreasureDied"; @@ -148,6 +152,8 @@ OnClock0001: if (.@Treasure < 24) end; monster "arug_cas01",258,364,"Treasure Chest",1324,1,"Manager#aru01_02::OnTreasureDied"; } + setcastledata "arug_cas01",4,0; + setcastledata "arug_cas01",5,0; end; OnTreasureDied: |