diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-24 00:41:52 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-24 00:41:52 -0300 |
commit | 239a789572cc8165ae65b477a1d549a4097a2b6a (patch) | |
tree | 5e1a19c14ac9c2b2e81845d7560d438fb4d3fc85 /npc/008-2/_config.txt | |
parent | 932b551de8edaed5edc0c6e416588c04c72b5643 (diff) | |
download | serverdata-239a789572cc8165ae65b477a1d549a4097a2b6a.tar.gz serverdata-239a789572cc8165ae65b477a1d549a4097a2b6a.tar.bz2 serverdata-239a789572cc8165ae65b477a1d549a4097a2b6a.tar.xz serverdata-239a789572cc8165ae65b477a1d549a4097a2b6a.zip |
Polish the Dungeon Design Example
Diffstat (limited to 'npc/008-2/_config.txt')
-rw-r--r-- | npc/008-2/_config.txt | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/npc/008-2/_config.txt b/npc/008-2/_config.txt index 1da640c7d..01efa1430 100644 --- a/npc/008-2/_config.txt +++ b/npc/008-2/_config.txt @@ -7,7 +7,7 @@ OnDisable: delcells "008-2_80_208"; end; OnEnable: OnInit: - setcells "008-2", 80, 208, 88, 208, 3, "008-2_80_208"; + setcells "008-2", 80, 208, 88, 208, 1, "008-2_80_208"; } 008-2,106,237,0 script #008-2_106_237 NPC_SWITCH_ONLINE,{ @@ -97,3 +97,31 @@ OnTouchNPC: OnTimer15000: stopnpctimer; setnpctimer 0; setnpcdisplay "#008-2_85_117", NPC_TRAP; end; } + +008-2,59,222,0 script #008-2_59_222 NPC_HIDDEN,{ + end; +OnDisable: + delcells "008-2_59_222"; end; +OnEnable: +OnInit: + setcells "008-2", 59, 222, 67, 222, 1, "008-2_59_222"; +} + +008-2,32,99,0 script #008-2_32_99 NPC_SWITCH_ONLINE,{ + if (getnpcclass() == NPC_SWITCH_OFFLINE) + end; + doevent "#008-2_59_222::OnDisable"; + setnpcdisplay "#008-2_32_99", NPC_SWITCH_OFFLINE; + end; +OnInit: + .distance=2; +} + +008-2,87,221,0 script #008-2_87_221 NPC_CHEST,{ + TreasureBox(); + specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing + close; +OnInit: + .distance=3; + end; +} |