summaryrefslogtreecommitdiff
path: root/world/map/npc/items
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2015-12-18 21:37:06 +0200
committerJoseph Botosh <rumly111@gmail.com>2016-01-27 21:48:47 +0200
commit2d4b24d5cb51de6ec8ec3639cb768776084cd421 (patch)
tree68101a79ba5e61c132e9fe1ec69ef8460f8c50a1 /world/map/npc/items
parenta9bce8e7c28b67548dd2d801459b4014d242abbc (diff)
downloadserverdata-2d4b24d5cb51de6ec8ec3639cb768776084cd421.tar.gz
serverdata-2d4b24d5cb51de6ec8ec3639cb768776084cd421.tar.bz2
serverdata-2d4b24d5cb51de6ec8ec3639cb768776084cd421.tar.xz
serverdata-2d4b24d5cb51de6ec8ec3639cb768776084cd421.zip
Don't remove towels from inventory on usage
Diffstat (limited to 'world/map/npc/items')
-rw-r--r--world/map/npc/items/warpTowels.txt25
1 files changed, 0 insertions, 25 deletions
diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt
index 122ac7c0..7dba9a9a 100644
--- a/world/map/npc/items/warpTowels.txt
+++ b/world/map/npc/items/warpTowels.txt
@@ -9,8 +9,6 @@ function|script|WarpTowel
if (getmapflag(getmap(), MF_NOSAVE) || getmapflag(getmap(), MF_NOTELEPORT) || getmapflag(getmap(), MF_NOWARP) || isin("009-7",$@fightclub_x1,$@fightclub_y1,$@fightclub_x2,$@fightclub_y2))
goto L_Forbid;
- callfunc "MultiWarpTowel";
-
if (@warpTowelName$ == "HitchhikersTowel")
goto L_Save;
if(@warpTowelName$ == "WhiteHitchhikersTowel")
@@ -154,26 +152,3 @@ L_End:
set @warpTowelName$, "";
return;
}
-
-function|script|MultiWarpTowel
-{
- setarray $@warpTowels$, "HitchhikersTowel", "WhiteHitchhikersTowel", "RedHitchhikersTowel", "GreenHitchhikersTowel", "BlueHitchhikersTowel", "YellowHitchhikersTowel", "PurpleHitchhikersTowel", "OrangeHitchhikersTowel", "PinkHitchhikersTowel", "TealHitchhikersTowel", "LimeHitchhikersTowel";
- set @towel_count, 0;
- set @towel_loop, 0;
- goto L_CountTowelLoop;
-
-L_CountTowelLoop:
- set @towel_count, (@towel_count + countitem($@warpTowels$[@towel_loop]));
- delitem $@warpTowels$[@towel_loop], countitem($@warpTowels$[@towel_loop]);
- goto L_DelLoopAgain;
-
-L_DelLoopAgain:
- if((@towel_loop + 1) == getarraysize($@warpTowels$))
- goto L_Return;
- set @towel_loop, (@towel_loop + 1);
- goto L_CountTowelLoop;
-
-L_Return:
- cleararray $@warpTowels$, "", getarraysize($@warpTowels$);
- return;
-}