summaryrefslogtreecommitdiff
path: root/npc/023-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-17 00:08:39 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-17 00:08:39 -0300
commit38ae45a2616bde7307df670308352c5c063f215e (patch)
tree2aafbbd292bb5f3e2e778a1ce89b2996619cf20d /npc/023-3
parent4f9c163c41c96ceb9dc909f62422f0a0a7290320 (diff)
downloadserverdata-38ae45a2616bde7307df670308352c5c063f215e.tar.gz
serverdata-38ae45a2616bde7307df670308352c5c063f215e.tar.bz2
serverdata-38ae45a2616bde7307df670308352c5c063f215e.tar.xz
serverdata-38ae45a2616bde7307df670308352c5c063f215e.zip
Random treasure chest on 023-3
Diffstat (limited to 'npc/023-3')
-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;
+}