summaryrefslogtreecommitdiff
path: root/world/map/npc/items/warpTowels.txt
diff options
context:
space:
mode:
authormekolat <mekolat@gmail.com>2015-03-03 14:28:11 -0500
committermekolat <mekolat@gmail.com>2015-03-07 19:08:29 -0500
commit423b4cfe8b68db524d6e12940a9dba7f8e962efa (patch)
tree7a40d582e78dc22c96ec3ffab5197e21a451d1e9 /world/map/npc/items/warpTowels.txt
parent42e418d881029a97d40ce959c1758e56f28c18a5 (diff)
downloadserverdata-423b4cfe8b68db524d6e12940a9dba7f8e962efa.tar.gz
serverdata-423b4cfe8b68db524d6e12940a9dba7f8e962efa.tar.bz2
serverdata-423b4cfe8b68db524d6e12940a9dba7f8e962efa.tar.xz
serverdata-423b4cfe8b68db524d6e12940a9dba7f8e962efa.zip
Add cooldown to towel message
Diffstat (limited to 'world/map/npc/items/warpTowels.txt')
-rw-r--r--world/map/npc/items/warpTowels.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt
index 32a52aff..3783113a 100644
--- a/world/map/npc/items/warpTowels.txt
+++ b/world/map/npc/items/warpTowels.txt
@@ -1,7 +1,8 @@
// See #TravelConfig
function|script|WarpTowel
{
- if (TowelLastUsed > (gettimetick(2) - 1800))
+ set @seconds, TowelLastUsed - (gettimetick(2) - 1800);
+ if (@seconds > 0)
goto L_DontPanic;
if (isin("botcheck",25,27,51,47))
goto L_Prison;
@@ -123,15 +124,16 @@ L_BreakChance:
goto L_End;
L_Forbid:
- message strcharinfo(0), "This area is protected by a force that doesn't tolerate the power of the Towel.";
+ message strcharinfo(0), "##1Towel : This area is protected by a force that doesn't tolerate the power of the Towel.";
goto L_Keep;
L_Prison:
- message strcharinfo(0), "You must be warped by a GM to leave the botcheck area.";
+ message strcharinfo(0), "##1Towel : You must be warped by a GM to leave the botcheck area.";
goto L_Keep;
L_DontPanic:
- message strcharinfo(0), "Your towel is still too low on power to jump again.";
+ callfunc "HumanTime";
+ message strcharinfo(0), "##3Towel : Your towel is still too low on power to jump again. Try again in ##B"+ @time$ + "##b.";
goto L_Keep;
L_Keep:
@@ -168,4 +170,3 @@ L_Return:
cleararray $@warpTowels$, "", getarraysize($@warpTowels$);
return;
}
-