From 0dedc25b2795f359db3937b3b340d3eaeec8dbff Mon Sep 17 00:00:00 2001 From: Vincent Petithory Date: Sun, 24 Mar 2013 15:18:23 +0100 Subject: Easter: add standard waiting time on first interaction with the eggs * This fixes the problem that players could log off to circumvent the waiting time --- world/map/npc/008-1/annualeaster.txt | 7 +++++++ 1 file changed, 7 insertions(+) (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 3a97a9ea..ded3058b 100644 --- a/world/map/npc/008-1/annualeaster.txt +++ b/world/map/npc/008-1/annualeaster.txt @@ -15,6 +15,8 @@ function|script|AnnualEasterEvent|{ if (BaseLevel < 20) goto L_EndTooYoung; + if (@eastertimepenalty == 0) + goto L_WarmUp; // prevent clicking multiple times: if (gettimetick(2) < @eastertimepenalty + $@EASTER_FOUND_WAIT_TIME) goto L_End2; @@ -85,6 +87,11 @@ L_EndTooYoung: message strcharinfo(0), "The nest is empty."; goto L_End1; +L_WarmUp: + set @eastertimepenalty, gettimetick(2); + message strcharinfo(0), "Hmmm eggs! Maybe you can find something nice there!"; + 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