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.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/npc/guild2/schg_cas01.txt b/npc/guild2/schg_cas01.txt
index 352981ab1..8492b78e9 100644
--- a/npc/guild2/schg_cas01.txt
+++ b/npc/guild2/schg_cas01.txt
@@ -54,6 +54,7 @@ OnAgitEnd:
if (GetCastleData("schg_cas01",1)) {
KillMonster "schg_cas01","Steward#sch01::OnStartArena";
donpcevent "Manager#sch01_02::Onreset";
+ donpcevent "Steward#sch01::Onstop";
}
end;
@@ -104,7 +105,11 @@ Onchange:
OnClock0001:
if (!GetCastleData("schg_cas01",1)) end;
- killmonster "schg_cas01","Manager#sch01_02::OnMyTreasureDied";
+ killmonster "schg_cas01","Manager#sch01_02::OnTreasureDied";
+
+ setcastledata "schg_cas01",4,0;
+ setcastledata "schg_cas01",5,0;
+
set .@Treasure,GetCastleData("schg_cas01",2)/5+4;
if (.@Treasure) {
monster "schg_cas01",388,388,"Treasure Chest",1938,1,"Manager#sch01_02::OnTreasureDied";
@@ -152,8 +157,6 @@ 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: