diff options
author | Happy <markaizer@gmail.com> | 2014-08-21 04:50:46 +0800 |
---|---|---|
committer | Happy <markaizer@gmail.com> | 2014-08-21 04:50:46 +0800 |
commit | f52e1007fe08c67003c0bc4c78231904dd3fd5cc (patch) | |
tree | 99907d827264e501774e58ab4630e41fa7103c02 /npc/warps/dungeons/alde_dun.txt | |
parent | 2410110dece79b4598c12f1c953219f1d0d1904a (diff) | |
parent | 769b1d05aa5cfa8cddfe7d21b35d5c5e4da3bbd6 (diff) | |
download | hercules-f52e1007fe08c67003c0bc4c78231904dd3fd5cc.tar.gz hercules-f52e1007fe08c67003c0bc4c78231904dd3fd5cc.tar.bz2 hercules-f52e1007fe08c67003c0bc4c78231904dd3fd5cc.tar.xz hercules-f52e1007fe08c67003c0bc4c78231904dd3fd5cc.zip |
Merge pull request #1 from HerculesWS/master
Update from original
Diffstat (limited to 'npc/warps/dungeons/alde_dun.txt')
-rw-r--r-- | npc/warps/dungeons/alde_dun.txt | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/npc/warps/dungeons/alde_dun.txt b/npc/warps/dungeons/alde_dun.txt index c711ecd5c..f74bf7c48 100644 --- a/npc/warps/dungeons/alde_dun.txt +++ b/npc/warps/dungeons/alde_dun.txt @@ -26,12 +26,11 @@ alde_dun02,122,169,0 warp ald006 2,2,c_tower3,47,41 alde_dun02,187,234,0 warp ald007 2,2,c_tower3,65,147 //============================================================ //= Random B2 ================================================ -alde_dun02,267,41,4 script ald008r 45,1,1,{ - if(rand(2)) { +alde_dun02,267,41,4 script ald008r WARPNPC,1,1,{ + if (rand(2)) warp "c_tower3",168,252; - } else { + else warp "alde_dun02",262,141; - } end; } alde_dun03,12,267,0 warp aldd09 2,2,alde_dun02,273,250 @@ -41,23 +40,21 @@ alde_dun03,276,48,0 warp ald012 2,2,c_tower1,235,223 //============================================================ //7(npc) //= Random B3-1 ================================================ -alde_dun03,130,125,4 script ald014r 45,1,1,{ - set @r,rand(3); - if(@r==1) goto w2; - if(@r==2) goto w3; - warp "c_tower2",228,267; end; - w2: warp "alde_dun03",130,130; end; - w3: warp "c_tower3",252,29; end; +alde_dun03,130,125,4 script ald014r WARPNPC,1,1,{ + switch(rand(3)) { + case 0: warp "c_tower2",228,267; end; + case 1: warp "alde_dun03",130,130; end; + case 2: warp "c_tower3",252,29; end; + } } //============================================================ //= Random 3-2 =============================================== -alde_dun03,171,127,4 script ald015r 45,1,1,{ - set @r,rand(4); - if(@r==1) goto w2; - if(@r==2) goto w3; - warp "c_tower2",13,282; end; - w2: warp "alde_dun03",175,131; end; - w3: warp "c_tower3",235,7; end; +alde_dun03,171,127,4 script ald015r WARPNPC,1,1,{ + switch(rand(3)) { + case 0: warp "c_tower2",13,282; end; + case 1: warp "alde_dun03",175,131; end; + case 2: warp "c_tower3",235,7; end; + } } alde_dun04,80,273,0 warp aldd016 2,2,alde_dun03,263,26 alde_dun04,207,225,0 warp ald017 1,1,c_tower3,7,34 @@ -65,14 +62,12 @@ alde_dun04,215,192,0 warp ald018 1,1,c_tower2,148,283 alde_dun04,32,74,0 warp aldd19 1,1,alde_dun02,187,239 alde_dun04,208,58,0 warp aldd20 2,2,alde_dun04,268,74 alde_dun04,272,74,0 warp aldd021 2,2,alde_dun04,204,62 -alde_dun04,80,34,4 script ald022r 45,1,1,{ - set @r,rand(4); - if(@r==1) goto w2; - if(@r==2) goto w3; - if(@r==3) goto w4; - warp "c_tower2",13,282; end; - w2: warp "alde_dun03",175,131; end; - w3: warp "c_tower3",235,7; end; - w4: warp "alde_dun04",84,36; end; +alde_dun04,80,34,4 script ald022r WARPNPC,1,1,{ + switch(rand(4)) { + case 0: warp "c_tower2",13,282; end; + case 1: warp "alde_dun03",175,131; end; + case 2: warp "c_tower3",235,7; end; + case 3: warp "alde_dun04",84,36; end; + } } //============================================================ |