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/functions/event.txt | |
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/functions/event.txt')
-rw-r--r-- | npc/functions/event.txt | 22 |
1 files changed, 22 insertions, 0 deletions
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; +} + |