diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-01-04 23:51:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-01-04 23:51:20 -0300 |
commit | 4330a6d5a599d14183ed6f8c3b5ba11fb200a8e8 (patch) | |
tree | 9b0bee683fb12fcd550f5a0350a200c7649888ba /npc | |
parent | 160c48bd59f21f3d74973536a30c72872ae7eb58 (diff) | |
download | serverdata-4330a6d5a599d14183ed6f8c3b5ba11fb200a8e8.tar.gz serverdata-4330a6d5a599d14183ed6f8c3b5ba11fb200a8e8.tar.bz2 serverdata-4330a6d5a599d14183ed6f8c3b5ba11fb200a8e8.tar.xz serverdata-4330a6d5a599d14183ed6f8c3b5ba11fb200a8e8.zip |
Free Software Day is now builtin.
On 09/09, the day we finished LICENSE file, ALL mobs may drop a blueprint!
Great, right?
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/daily.txt | 7 | ||||
-rw-r--r-- | npc/functions/event.txt | 22 | ||||
-rw-r--r-- | npc/functions/mobpoint.txt | 1 | ||||
-rw-r--r-- | npc/functions/scoreboards.txt | 4 |
4 files changed, 32 insertions, 2 deletions
diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt index e906b8274..fea29e33f 100644 --- a/npc/functions/daily.txt +++ b/npc/functions/daily.txt @@ -170,6 +170,13 @@ function script daily_login_bonus_handler { dispbottom "##B##2"+l("It's International Chocolate Day!")+"##b "+l("All monsters may drop chocolate during this period. And here is one for you!")+"##0"; } } + if (gettime(6) == SEPTEMBER) { + if (#TMW2_LOGINBONUS != gettime(GETTIME_YEAR) && gettime(5) == 9) { + #TMW2_LOGINBONUS=gettime(GETTIME_YEAR); + getitem any(ScentGrenade, Grenade, SmokeGrenade), 1; + dispbottom "##B##2"+l("It's the Free Software Day!")+" "+l("Licensing was one of the worst hassle we had, but just today, all mobs may drop Ancient Blueprints. Enjoy!")+"##b##0"; + } + } if (gettime(6) == OCTOBER) { if (#TMW2_LOGINBONUS != gettime(GETTIME_YEAR) && gettime(5) == 1) { #TMW2_LOGINBONUS=gettime(GETTIME_YEAR); diff --git a/npc/functions/event.txt b/npc/functions/event.txt index a9562fe02..77ac42eb5 100644 --- a/npc/functions/event.txt +++ b/npc/functions/event.txt @@ -265,6 +265,28 @@ function script CoffeeDay { return; } +// FSFDay() +function script FSFDay { + if (!playerattached()) + return; + + // Date check + if (gettime(6) != SEPTEMBER) + return; + if (gettime(5) != 9) + return; + + // Max. 0.20% chances, 0.001% per monster level + .@lv=min(200, getmonsterinfo(killedrid, MOB_LV)); + if (rand(1000000) < (.@lv*10)) { + getmapxy(.@m$, .@x, .@y, 0); + .@x+=rand2(-1,1); + .@y+=rand2(-1,1); + makeitem(AncientBlueprint, 1, .@m$, .@x, .@y); + } + return; +} + diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index d35d44331..339e3026c 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -77,6 +77,7 @@ OnNPCKillEvent: callfunc "AuroraMobkill"; callfunc "ChocolateDay"; callfunc "CoffeeDay"; + callfunc "FSFDay"; // Unset killedrid. This affects multiple calls of this function // But it is in overall more reliable imao diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt index 8622d16e7..52aaf07da 100644 --- a/npc/functions/scoreboards.txt +++ b/npc/functions/scoreboards.txt @@ -651,12 +651,12 @@ function script HallOf2021 { mesc l("June 21st - September 21st"); mes ""; mes l(".:: Chocolate Day ::."); - //mesc l("Event Canceled"), 1; mesc l("Scheduled: July 7th"); + //mes l("No victor appliable."); mes ""; mes l(".:: Free Software Day ::."); - //mesc l("Event Canceled"), 1; mesc l("Scheduled: September 9th"); + //mes l("No victor appliable."); mes ""; mes l(".:: International Coffee Day ::."); mesc l("Scheduled: October 1st"); |