summaryrefslogtreecommitdiff
path: root/npc/items/warpTowels.txt
diff options
context:
space:
mode:
authorJessica Tölke <jtoelke@mail.upb.de>2011-05-22 09:02:47 +0200
committerJessica Tölke <jtoelke@mail.upb.de>2011-05-22 09:02:47 +0200
commit7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33 (patch)
tree3fa489c6e174d16cb5d6a95e5640a0c8b6358625 /npc/items/warpTowels.txt
parent856ab6deb68829d37e8fb8e8717aefacfe9f37e6 (diff)
downloadserverdata-7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33.tar.gz
serverdata-7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33.tar.bz2
serverdata-7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33.tar.xz
serverdata-7ae58ec3faf83f88673e759e55a5ae4d2ecaaa33.zip
some fixes and modifications about towel event and warptowel:
fix bug in stranger npc change amount of gem powders given for one gem make warp towel loose its color randomly
Diffstat (limited to 'npc/items/warpTowels.txt')
-rw-r--r--npc/items/warpTowels.txt50
1 files changed, 50 insertions, 0 deletions
diff --git a/npc/items/warpTowels.txt b/npc/items/warpTowels.txt
index eee05673..192ce838 100644
--- a/npc/items/warpTowels.txt
+++ b/npc/items/warpTowels.txt
@@ -1,50 +1,100 @@
function script useWhiteWarpTowel {
warp "020-1.gat",66,91; // Nivalis
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "WhiteWarpTowel", 1;
+ end;
}
function script useRedWarpTowel {
warp "009-1.gat",51,40; // Hurnscald
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "RedWarpTowel", 1;
+ end; end;
}
function script useGreenWarpTowel {
warp "003-1.gat",35,25;
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "GreenWarpTowel", 1;
+ end; end;
}
function script useBlueWarpTowel {
warp "003-1.gat",35,25;
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "BlueWarpTowel", 1;
+ end; end;
}
function script useYellowWarpTowel {
warp "001-1.gat",40,71; // Tulimshar
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "YellowWarpTowel", 1;
+ end; end;
}
function script usePurpleWarpTowel {
warp "003-1.gat",35,25;
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "PurpleWarpTowel", 1;
+ end; end;
}
function script useOrangeWarpTowel {
warp "027-1.gat",70,100; // Graveyard
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "OrangeWarpTowel", 1;
+ end; end;
}
function script usePinkWarpTowel {
warp "012-3.gat",448,66; // Terranite Cave
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "PinkWarpTowel", 1;
+ end; end;
}
function script useTealWarpTowel {
warp "003-1.gat",35,25;
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "TealWarpTowel", 1;
+ end; end;
}
function script useLimeWarpTowel {
warp "003-1.gat",35,25;
+ if (rand(15))
+ goto L_Keep;
getitem "GreyWarpTowel", 1;
end;
+L_Keep:
+ getitem "LimeWarpTowel", 1;
+ end; end;
}