summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/event.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 75ff9d64b..d6ee3fe44 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -389,6 +389,13 @@ function script ChocolateDay {
// Max. 80% chances, 0.4% per monster level
.@lv=min(200, getmonsterinfo(killedrid, MOB_LV));
+ // Slime reduction (20%)
+ if (compare("slime", strtolower(strmobinfo(1, killedrid))))
+ .@lv = .@lv * 8 / 10;
+ // Botter's Syndrome Reduction (absolute)
+ if (getstatus(SC_BOTTER_SYNDROME))
+ .@lv = .@lv * (100 - getstatus(SC_BOTTER_SYNDROME, 1)) / 100;
+ // Actual probability
if (rand2(10000) < (.@lv*40)) {
// Chocolate Bar: 73%; Chocolate Dye: 6.7%
.@choco=any(ChocolateBar, ChocolateBar, ChocolateBar, ChocolateBar,
@@ -416,6 +423,13 @@ function script CoffeeDay {
// Max. 22% chances, 0.1% per monster level
.@lv=min(200, getmonsterinfo(killedrid, MOB_LV));
+ // Slime reduction (20%)
+ if (compare("slime", strtolower(strmobinfo(1, killedrid))))
+ .@lv = .@lv * 8 / 10;
+ // Botter's Syndrome Reduction (absolute)
+ if (getstatus(SC_BOTTER_SYNDROME))
+ .@lv = .@lv * (100 - getstatus(SC_BOTTER_SYNDROME, 1)) / 100;
+ // Actual probability
if (rand2(10000) < (.@lv*11)) {
getmapxy(.@m$, .@x, .@y, 0);
.@x+=rand2(-1,1);
@@ -438,6 +452,13 @@ function script GamblingDay {
// Max. 24% chances, 0.1% per monster level
.@lv=min(200, getmonsterinfo(killedrid, MOB_LV));
+ // Slime reduction (20%)
+ if (compare("slime", strtolower(strmobinfo(1, killedrid))))
+ .@lv = .@lv * 8 / 10;
+ // Botter's Syndrome Reduction (absolute)
+ if (getstatus(SC_BOTTER_SYNDROME))
+ .@lv = .@lv * (100 - getstatus(SC_BOTTER_SYNDROME, 1)) / 100;
+ // Actual probability
if (rand2(10000) < (.@lv*12)) {
getmapxy(.@m$, .@x, .@y, 0);
.@x+=rand2(-1,1);
@@ -460,6 +481,13 @@ function script FSFDay {
// Max. 0.16% chances, 0.008% per monster level
.@lv=min(200, getmonsterinfo(killedrid, MOB_LV));
+ // Slime reduction (20%)
+ if (compare("slime", strtolower(strmobinfo(1, killedrid))))
+ .@lv = .@lv * 8 / 10;
+ // Botter's Syndrome Reduction (absolute)
+ if (getstatus(SC_BOTTER_SYNDROME))
+ .@lv = .@lv * (100 - getstatus(SC_BOTTER_SYNDROME, 1)) / 100;
+ // Actual probability
if (rand(1000000) < (.@lv*8)) {
getmapxy(.@m$, .@x, .@y, 0);
.@x+=rand2(-1,1);
@@ -493,6 +521,10 @@ function script CraftmasterDay {
// At event map you get an extra 0.5% bonus
if (getmap() == "001-5")
.@odds += 50;
+ // Botter's Syndrome Reduction (absolute)
+ if (getstatus(SC_BOTTER_SYNDROME))
+ .@odds = .@odds * (100 - getstatus(SC_BOTTER_SYNDROME, 1)) / 100;
+ // Actual probability
// Scored a Blue Print (up to 3.0% chance)
if (rand2(10000) < .@odds) {
if (BaseLevel >= 100 && REBIRTH)