summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-08-06 13:31:05 -0300
committerJesusaves <cpntb1@ymail.com>2024-08-06 13:31:05 -0300
commitfa965416b3831acd5afe33e6256f93105d712abf (patch)
tree668cef33357bfa002fc3f7aece808d70b76e5825 /npc
parent3eae0103f57809dc70ee38f9edfbd47c794d434f (diff)
downloadserverdata-fa965416b3831acd5afe33e6256f93105d712abf.tar.gz
serverdata-fa965416b3831acd5afe33e6256f93105d712abf.tar.bz2
serverdata-fa965416b3831acd5afe33e6256f93105d712abf.tar.xz
serverdata-fa965416b3831acd5afe33e6256f93105d712abf.zip
Botter's Syndrome now applies to Coffee, Chocolate, Gambling, FSF and Craft Day.
Slime Reduction now applies to most of the above as well.
Diffstat (limited to 'npc')
-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)