From c55002cfda7af27b14d4eaace4d0b8df36133f60 Mon Sep 17 00:00:00 2001 From: wushin Date: Sat, 26 Mar 2016 21:46:40 -0500 Subject: Limit prizes --- world/map/npc/008-1/annualeaster.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'world/map/npc') 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; -- cgit v1.2.3-60-g2f50