diff options
author | Vincent Petithory <vincent.petithory@gmail.com> | 2013-03-24 15:18:23 +0100 |
---|---|---|
committer | Vincent Petithory <vincent.petithory@gmail.com> | 2013-03-24 15:24:21 +0100 |
commit | 0dedc25b2795f359db3937b3b340d3eaeec8dbff (patch) | |
tree | 6ba1b1b65fce5b6be26a2f824f470f8e04e26450 /world/map/npc | |
parent | b44a71b7ac154557da4fa646eb0b2bd522542877 (diff) | |
download | serverdata-0dedc25b2795f359db3937b3b340d3eaeec8dbff.tar.gz serverdata-0dedc25b2795f359db3937b3b340d3eaeec8dbff.tar.bz2 serverdata-0dedc25b2795f359db3937b3b340d3eaeec8dbff.tar.xz serverdata-0dedc25b2795f359db3937b3b340d3eaeec8dbff.zip |
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
Diffstat (limited to 'world/map/npc')
-rw-r--r-- | world/map/npc/008-1/annualeaster.txt | 7 |
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 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; |