summaryrefslogtreecommitdiff
path: root/npc/warps/dungeons/alde_dun.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/warps/dungeons/alde_dun.txt')
-rw-r--r--npc/warps/dungeons/alde_dun.txt41
1 files changed, 18 insertions, 23 deletions
diff --git a/npc/warps/dungeons/alde_dun.txt b/npc/warps/dungeons/alde_dun.txt
index c711ecd5c..563f926a0 100644
--- a/npc/warps/dungeons/alde_dun.txt
+++ b/npc/warps/dungeons/alde_dun.txt
@@ -27,11 +27,10 @@ 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)) {
+ 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
@@ -42,22 +41,20 @@ 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;
+ 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;
+ 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
@@ -66,13 +63,11 @@ 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;
+ 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;
+ }
}
//============================================================