summaryrefslogtreecommitdiff
path: root/npc/guild2/schg_cas01.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild2/schg_cas01.txt')
-rw-r--r--npc/guild2/schg_cas01.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/npc/guild2/schg_cas01.txt b/npc/guild2/schg_cas01.txt
index 789801535..9c33bc02e 100644
--- a/npc/guild2/schg_cas01.txt
+++ b/npc/guild2/schg_cas01.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= L0ne_W0lf
//===== Current Version: =====================================
-//= 1.4
+//= 1.5
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
@@ -15,6 +15,9 @@
//= 1.3 Fixed double message in defense investing. [L0ne_W0lf]
//= Corrected a minor typo in the guild steward.
//= 1.4 Fixed a guardian spawning NPCs. [L0ne_W0lf]
+//= 1.5 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.
//============================================================
schg_cas01,1,1,0 script Manager#sch01_02 111,{
@@ -99,14 +102,13 @@ Onchange:
end;
OnClock0001:
+ if (!GetCastleData("schg_cas01",1)) end;
+ killmonster "aschg_cas01","Manager#sch01_02::OnMyTreasureDied";
set .@Treasure,GetCastleData("schg_cas01",2)/5+4;
if (.@Treasure) {
monster "schg_cas01",388,388,"Treasure Chest",1938,1,"Manager#sch01_02::OnTreasureDied";
- if (.@Treasure < 2) end;
monster "schg_cas01",388,389,"Treasure Chest",1324,1,"Manager#sch01_02::OnTreasureDied";
- if (.@Treasure < 3) end;
monster "schg_cas01",388,390,"Treasure Chest",1938,1,"Manager#sch01_02::OnTreasureDied";
- if (.@Treasure < 4) end;
monster "schg_cas01",387,390,"Treasure Chest",1324,1,"Manager#sch01_02::OnTreasureDied";
if (.@Treasure < 5) end;
monster "schg_cas01",386,390,"Treasure Chest",1938,1,"Manager#sch01_02::OnTreasureDied";
@@ -149,6 +151,8 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "schg_cas01",386,386,"Treasure Chest",1324,1,"Manager#sch01_02::OnTreasureDied";
}
+ setcastledata "schg_cas01",4,0;
+ setcastledata "schg_cas01",5,0;
end;
OnTreasureDied: