diff options
author | wushin <pasekei@gmail.com> | 2014-04-27 18:08:13 -0500 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2014-04-27 18:08:13 -0500 |
commit | 1eef2ac2ad2c1c9d9ef5872ed7508acf8e28fd92 (patch) | |
tree | 707754d2483038b3aa60832f0bef492316b6fdf3 /world | |
parent | 04c3baddc72fc49c6bd5b4278a0e00d4993a3d95 (diff) | |
download | serverdata-1eef2ac2ad2c1c9d9ef5872ed7508acf8e28fd92.tar.gz serverdata-1eef2ac2ad2c1c9d9ef5872ed7508acf8e28fd92.tar.bz2 serverdata-1eef2ac2ad2c1c9d9ef5872ed7508acf8e28fd92.tar.xz serverdata-1eef2ac2ad2c1c9d9ef5872ed7508acf8e28fd92.zip |
Reordered Warp Towel Checks to disable using multiple towels early
Diffstat (limited to 'world')
-rw-r--r-- | world/map/npc/items/warpTowels.txt | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt index 1a9c8bcd..c3045899 100644 --- a/world/map/npc/items/warpTowels.txt +++ b/world/map/npc/items/warpTowels.txt @@ -1,7 +1,15 @@ // See #TravelConfig function|script|WarpTowel|, { + if (TowelLastUsed > (gettimetick(2) - 1800)) + goto L_DontPanic; + if (isin("botcheck.gat",25,27,51,47)) + goto L_Prison; + if (getmapflag(getmap(), MF_NOSAVE)) + goto L_Forbid; + callfunc "MultiWarpTowel"; + if (@warpTowelName$ == "HitchhikersTowel") goto L_Save; if(@warpTowelName$ == "WhiteHitchhikersTowel") @@ -31,85 +39,76 @@ L_White: set @NextLocationMap$, "035-2.gat"; set @NextLocationX, 20; set @NextLocationY, 21; - goto L_WarpChecks; + goto L_WarpPlayer; L_Red: // Barbarians set @NextLocationMap$, "033-1.gat"; set @NextLocationX, 66; set @NextLocationY, 33; - goto L_WarpChecks; + goto L_WarpPlayer; L_Green: // Candor set @NextLocationMap$, "029-1.gat"; set @NextLocationX, 69; set @NextLocationY, 69; - goto L_WarpChecks; + goto L_WarpPlayer; L_Blue: // Blue Sages set @NextLocationMap$, "048-2.gat"; set @NextLocationX, 26; set @NextLocationY, 47; - goto L_WarpChecks; + goto L_WarpPlayer; L_Yellow: // Tulimshar Mines set @NextLocationMap$, "002-2.gat"; set @NextLocationX, 27; set @NextLocationY, 28; - goto L_WarpChecks; + goto L_WarpPlayer; L_Purple: // Dimonds Inn set @NextLocationMap$, "010-1.gat"; set @NextLocationX, 27; set @NextLocationY, 97; - goto L_WarpChecks; + goto L_WarpPlayer; L_Orange: // Graveyard set @NextLocationMap$, "027-1.gat"; set @NextLocationX, 70; set @NextLocationY, 100; - goto L_WarpChecks; + goto L_WarpPlayer; L_Pink: // Terranite Cave set @NextLocationMap$, "012-3.gat"; set @NextLocationX, 448; set @NextLocationY, 66; - goto L_WarpChecks; + goto L_WarpPlayer; L_Teal: // Mana Seed set @NextLocationMap$, "012-3.gat"; set @NextLocationX, 64; set @NextLocationY, 130; - goto L_WarpChecks; + goto L_WarpPlayer; L_Lime: // Pachua set @NextLocationMap$, "006-1.gat"; set @NextLocationX, 28; set @NextLocationY, 97; - goto L_WarpChecks; + goto L_WarpPlayer; L_Save: // Soul Menhir set @NextLocationMap$, getsavepoint(0); set @NextLocationX, getsavepoint(1); set @NextLocationY, getsavepoint(2); - goto L_WarpChecks; - -L_WarpChecks: - if (TowelLastUsed > (gettimetick(2) - 1800)) - goto L_DontPanic; - if (isin("botcheck.gat",25,27,51,47)) - goto L_Prison; - if (getmapflag(getmap(), MF_NOSAVE)) - goto L_Forbid; goto L_WarpPlayer; L_WarpPlayer: |