summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-03-26 21:46:40 -0500
committerwushin <pasekei@gmail.com>2016-03-26 21:46:40 -0500
commitc55002cfda7af27b14d4eaace4d0b8df36133f60 (patch)
tree82f4fd22a08a219345644a6e995fa219d7858759
parentfc1dfa51d222308b12411a75f8533f356b5b7d56 (diff)
downloadserverdata-c55002cfda7af27b14d4eaace4d0b8df36133f60.tar.gz
serverdata-c55002cfda7af27b14d4eaace4d0b8df36133f60.tar.bz2
serverdata-c55002cfda7af27b14d4eaace4d0b8df36133f60.tar.xz
serverdata-c55002cfda7af27b14d4eaace4d0b8df36133f60.zip
Limit prizes
-rw-r--r--world/map/npc/008-1/annualeaster.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt
index 5e723e98..b38aaa0a 100644
--- a/world/map/npc/008-1/annualeaster.txt
+++ b/world/map/npc/008-1/annualeaster.txt
@@ -14,11 +14,14 @@ 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;
+ callsub S_Read_Annual_Quest;
if (#EASTERTIMEPENALTY == 0)
goto L_WarmUp;
// prevent clicking multiple times:
if (gettimetick(2) < #EASTERTIMEPENALTY + $@EASTER_FOUND_WAIT_TIME)
goto L_End2;
+ if (@easter_year > gettime(7) - 2000)
+ goto L_End3;
set #EASTERTIMEPENALTY, gettimetick(2);
// global counter to determine reshuffle times of the eggs.
@@ -97,6 +100,10 @@ L_WarmUp:
message strcharinfo(0), "Hmmm eggs! Maybe you can find something nice there!";
goto L_End1;
+L_End3:
+ message strcharinfo(0), "Don't be greedy! You already found something nice.";
+ goto L_End1;
+
L_End2:
message strcharinfo(0), "Don't be greedy! You just found something a moment ago.";
set #EASTERTIMEPENALTY, #EASTERTIMEPENALTY + 5;