summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-16 22:22:14 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-16 22:22:14 -0300
commit08b472f3de365b1b6802228e68d6fb9faad0b2b0 (patch)
tree48f03a81966b62286c196febf1fd9a2ff695a7e1 /npc
parent0c80171d1d5354a6dc5ac2efa5a5451bf28b7a02 (diff)
downloadserverdata-08b472f3de365b1b6802228e68d6fb9faad0b2b0.tar.gz
serverdata-08b472f3de365b1b6802228e68d6fb9faad0b2b0.tar.bz2
serverdata-08b472f3de365b1b6802228e68d6fb9faad0b2b0.tar.xz
serverdata-08b472f3de365b1b6802228e68d6fb9faad0b2b0.zip
Add EVENT_POINTS and top 1 Easter rewards.
So leaderboard rewards are always the same. This is important, to keep the competition.
Diffstat (limited to 'npc')
-rw-r--r--npc/003-1/events.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/npc/003-1/events.txt b/npc/003-1/events.txt
index 8b83e0512..85547bdb1 100644
--- a/npc/003-1/events.txt
+++ b/npc/003-1/events.txt
@@ -6,6 +6,27 @@
// Easter
003-1,47,53,0 script Lilica#final NPC_EASTER,{
+ if (EASTER_YEAR != gettime(GETTIME_YEAR)) {
+ EASTER_YEAR=gettime(GETTIME_YEAR);
+ if (strcharinfo(0) == $@easter_name$[0]) {
+ makepet BhopFluffy;
+ mesn;
+ mesc l("For the first place in Easter, you gained a Bhopper Fluffy."), 3;
+ mesc l("Remember to give it a balanced diet of Aquadas to make it happy."), 3;
+ next;
+ }
+ else
+ {
+ .@pos=array_find($@easter_name$, strcharinfo(0));
+ // 0 (aka top 1) is not an appliable winner
+ if (.@pos > 0) {
+ // Reverse it so top 10 value is 2, and top 2 value is 10.
+ .@pos=11-.@pos;
+ EVENT_POINTS=.@pos*10;
+ mesc l("You got @@ Event Points for leaderboard position.", .@pos*10), 2;
+ }
+ }
+ }
mesn;
mesq l("Easter is over! I am the last chance to get rid of eggs!!");