summaryrefslogtreecommitdiff
path: root/npc/guild2/schg_cas05.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild2/schg_cas05.txt')
-rw-r--r--npc/guild2/schg_cas05.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/npc/guild2/schg_cas05.txt b/npc/guild2/schg_cas05.txt
index 725cabe1d..8bc0b6aea 100644
--- a/npc/guild2/schg_cas05.txt
+++ b/npc/guild2/schg_cas05.txt
@@ -52,6 +52,7 @@ OnAgitEnd:
if (GetCastleData("schg_cas05",1)) {
KillMonster "schg_cas05","Steward#sch05::OnStartArena";
donpcevent "Manager#sch05_02::Onreset";
+ donpcevent "Steward#sch05::Onstop";
}
end;
@@ -102,7 +103,11 @@ Onchange:
OnClock0001:
if (!GetCastleData("schg_cas05",1)) end;
- killmonster "schg_cas05","Manager#sch05_02::OnMyTreasureDied";
+ killmonster "schg_cas05","Manager#sch05_02::OnTreasureDied";
+
+ setcastledata "schg_cas05",4,0;
+ setcastledata "schg_cas05",5,0;
+
set .@Treasure,GetCastleData("schg_cas05",2)/5+4;
if (.@Treasure) {
monster "schg_cas05",388,388,"Treasure Chest",1942,1,"Manager#sch05_02::OnTreasureDied";
@@ -150,8 +155,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "schg_cas05",386,386,"Treasure Chest",1324,1,"Manager#sch05_02::OnTreasureDied";
}
- setcastledata "schg_cas05",4,0;
- setcastledata "schg_cas05",5,0;
end;
OnTreasureDied: