summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/023-3/logic.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/023-3/logic.txt b/npc/023-3/logic.txt
index 5c38bff77..35f403464 100644
--- a/npc/023-3/logic.txt
+++ b/npc/023-3/logic.txt
@@ -125,5 +125,21 @@ OnTouch:
}
// A not-so-simple treasure chest from Sagratha's Dungeon
+023-3,0,0,0 script #0233ChestCtrl NPC_HIDDEN,{
+ end;
+
+OnDelay:
+ initnpctimer;
+ end;
+
+OnTimer180000:
+ stopnpctimer;
+OnInit:
+ setarray .@x, 189, 191, 193, 186;
+ setarray .@y, 44, 42, 43, 45;
+ .@r=rand2(getarraysize(.@x));
+ monster "023-3", .@x[.@r], .@y[.@r], "Treasure Chest", any(BronzeChest,BronzeMimic,SilverChest,SilverMimic,GoldenChest,GoldenMimic), 1, "#0233ChestCtrl::OnDelay";
+ end;
+}