diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/003-1/events.txt | 21 |
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!!"); |