summaryrefslogtreecommitdiff
path: root/npc/guild2/arug_cas03.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild2/arug_cas03.txt')
-rw-r--r--npc/guild2/arug_cas03.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/npc/guild2/arug_cas03.txt b/npc/guild2/arug_cas03.txt
index 05597ce9d..40f8ec810 100644
--- a/npc/guild2/arug_cas03.txt
+++ b/npc/guild2/arug_cas03.txt
@@ -53,6 +53,7 @@ OnAgitEnd:
if (GetCastleData("arug_cas03",1)) {
KillMonster "arug_cas03","Steward#aru03::OnStartArena";
donpcevent "Manager#aru03_02::Onreset";
+ donpcevent "Steward#aru03::Onstop";
}
end;
@@ -103,7 +104,11 @@ Onchange:
OnClock0001:
if (!GetCastleData("arug_cas03",1)) end;
- killmonster "arug_cas03","Manager#aru03_02::OnMyTreasureDied";
+ killmonster "arug_cas03","Manager#aru03_02::OnTreasureDied";
+
+ setcastledata "arug_cas03",4,0;
+ setcastledata "arug_cas03",5,0;
+
set .@Treasure,GetCastleData("arug_cas03",2)/5+4;
if (.@Treasure) {
monster "arug_cas03",291,276,"Treasure Chest",1945,1,"Manager#aru03_02::OnTreasureDied";
@@ -151,8 +156,6 @@ OnClock0001:
if (.@Treasure < 24) end;
monster "arug_cas03",298,269,"Treasure Chest",1324,1,"Manager#aru03_02::OnTreasureDied";
}
- setcastledata "arug_cas03",4,0;
- setcastledata "arug_cas03",5,0;
end;
OnTreasureDied: