From 5c63870c5723216cc3efca7077ff4a322036de21 Mon Sep 17 00:00:00 2001 From: wushin Date: Sat, 26 Mar 2016 12:10:40 -0500 Subject: Fix GreenApple Money bug --- world/map/npc/008-1/annualeaster.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'world/map/npc/008-1/annualeaster.txt') diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt index d0898823..1030fcd3 100644 --- a/world/map/npc/008-1/annualeaster.txt +++ b/world/map/npc/008-1/annualeaster.txt @@ -14,12 +14,12 @@ function|script|AnnualEasterEvent if ((gettimetick(2)-TUT_var < 5*7*86400) || (BaseLevel < 40)) //player must be created at least 5 weeks ago goto L_EndTooYoung; - if (@eastertimepenalty == 0) + if (#EASTERTIMEPENALTY == 0) goto L_WarmUp; // prevent clicking multiple times: - if (gettimetick(2) < @eastertimepenalty + $@EASTER_FOUND_WAIT_TIME) + if (gettimetick(2) < #EASTERTIMEPENALTY + $@EASTER_FOUND_WAIT_TIME) goto L_End2; - set @eastertimepenalty, gettimetick(2); + set #EASTERTIMEPENALTY, gettimetick(2); // global counter to determine reshuffle times of the eggs. set $@peopleFoundEggs[@EasterEggID], $@peopleFoundEggs[@EasterEggID]+1; @@ -91,7 +91,7 @@ L_EndTooYoung: goto L_End1; L_WarmUp: - set @eastertimepenalty, gettimetick(2); + set #EASTERTIMEPENALTY, gettimetick(2); getitem "GreenApple", 1; misceffect FX_GETITEM, strcharinfo(0); message strcharinfo(0), "Hmmm eggs! Maybe you can find something nice there!"; @@ -99,9 +99,9 @@ L_WarmUp: L_End2: message strcharinfo(0), "Don't be greedy! You just found something a moment ago."; - set @eastertimepenalty, @eastertimepenalty + 5; - if (@eastertimepenalty > gettimetick(2)) - set @eastertimepenalty, gettimetick(2); + set #EASTERTIMEPENALTY, #EASTERTIMEPENALTY + 5; + if (#EASTERTIMEPENALTY > gettimetick(2)) + set #EASTERTIMEPENALTY, gettimetick(2); goto L_End1; L_End1: -- cgit v1.2.3-70-g09d2