diff options
Diffstat (limited to 'npc/functions')
-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"); |