diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-02-28 14:25:24 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-02-28 14:25:24 -0300 |
commit | 2c0a718d6940d4e515e427eb30a916778e34505f (patch) | |
tree | e25a87cc97c460b55a4aab546aa7aad5942a15c7 /npc/026-1/_config.txt | |
parent | 888748a84d7b7a8f7ed9410ebaa7ced667e0e46a (diff) | |
download | serverdata-2c0a718d6940d4e515e427eb30a916778e34505f.tar.gz serverdata-2c0a718d6940d4e515e427eb30a916778e34505f.tar.bz2 serverdata-2c0a718d6940d4e515e427eb30a916778e34505f.tar.xz serverdata-2c0a718d6940d4e515e427eb30a916778e34505f.zip |
Reset 026-1 state every 15 minutes
Diffstat (limited to 'npc/026-1/_config.txt')
-rw-r--r-- | npc/026-1/_config.txt | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/npc/026-1/_config.txt b/npc/026-1/_config.txt index 937f8ea49..bad3748a4 100644 --- a/npc/026-1/_config.txt +++ b/npc/026-1/_config.txt @@ -38,21 +38,30 @@ OnInit: .distance=2; } -026-1,30,28,0 script #026-1_30_28 NPC_SWITCH_ONLINE,{ +026-1,62,28,0 script #026-1_62_28 NPC_SWITCH_ONLINE,{ if (getnpcclass() == NPC_SWITCH_OFFLINE) end; doevent "#026-1_25_32::OnDisable"; - setnpcdisplay "#026-1_30_28", NPC_SWITCH_OFFLINE; + setnpcdisplay "#026-1_62_28", NPC_SWITCH_OFFLINE; end; OnInit: .distance=2; } -026-1,62,28,0 script #026-1_62_28 NPC_SWITCH_ONLINE,{ +026-1,30,28,0 script #026-1_30_28 NPC_CHEST,{ + TreasureBox(); + specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing + close; +OnInit: + .distance=2; + end; +} + +026-1,26,28,0 script #026-1_26_28 NPC_SWITCH_ONLINE,{ if (getnpcclass() == NPC_SWITCH_OFFLINE) end; doevent "#026-1_58_76::OnDisable"; - setnpcdisplay "#026-1_62_28", NPC_SWITCH_OFFLINE; + setnpcdisplay "#026-1_26_28", NPC_SWITCH_OFFLINE; end; OnInit: .distance=2; |