diff options
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; |