From 08b472f3de365b1b6802228e68d6fb9faad0b2b0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 Mar 2019 22:22:14 -0300 Subject: Add EVENT_POINTS and top 1 Easter rewards. So leaderboard rewards are always the same. This is important, to keep the competition. --- npc/003-1/events.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'npc/003-1/events.txt') 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!!"); -- cgit v1.2.3-60-g2f50