summaryrefslogtreecommitdiff
path: root/world/map/npc/items/warpTowels.txt
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-03-08 17:00:18 -0500
committerWushin <pasekei@gmail.com>2015-03-08 17:00:18 -0500
commita7e1ccc2e920ea97c7a0d44ae9ac100ef340a4bb (patch)
tree38ec097ec573e5f7943c707bc0c7a7b531ed5d57 /world/map/npc/items/warpTowels.txt
parentbd60b84b2262e55c4560eebf09e1c2eb2143c6fe (diff)
parent6e9142fdd1b7a186dc093640046883e9a02ea540 (diff)
downloadserverdata-a7e1ccc2e920ea97c7a0d44ae9ac100ef340a4bb.tar.gz
serverdata-a7e1ccc2e920ea97c7a0d44ae9ac100ef340a4bb.tar.bz2
serverdata-a7e1ccc2e920ea97c7a0d44ae9ac100ef340a4bb.tar.xz
serverdata-a7e1ccc2e920ea97c7a0d44ae9ac100ef340a4bb.zip
Merge pull request #292 from mekolat/time
All about time
Diffstat (limited to 'world/map/npc/items/warpTowels.txt')
-rw-r--r--world/map/npc/items/warpTowels.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/world/map/npc/items/warpTowels.txt b/world/map/npc/items/warpTowels.txt
index 32a52aff..f586ed99 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;
@@ -102,6 +103,13 @@ L_Lime:
set @NextLocationMap$, "006-1";
set @NextLocationX, 28;
set @NextLocationY, 97;
+ if(QUEST_MIRIAM_start != 0) goto L_Cheat;
+ goto L_WarpPlayer;
+
+L_Cheat:
+ set QUEST_MIRIAM_cheat, 1;
+ set QUEST_MIRIAM_run, gettimetick(2) - QUEST_MIRIAM_start;
+ set QUEST_MIRIAM_start, 0;
goto L_WarpPlayer;
L_Save:
@@ -123,15 +131,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 +177,3 @@ L_Return:
cleararray $@warpTowels$, "", getarraysize($@warpTowels$);
return;
}
-