diff options
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; +} + |