summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-23 12:08:15 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-23 12:08:15 -0300
commit6fd870057c83832ef59664fc92cc95e273131783 (patch)
tree87afcf39511516f33fc0f1984a4e5f9cd2691f6c /npc
parent171a10f09c5463e7d11f6d7bee7196e67a6c7c58 (diff)
downloadserverdata-6fd870057c83832ef59664fc92cc95e273131783.tar.gz
serverdata-6fd870057c83832ef59664fc92cc95e273131783.tar.bz2
serverdata-6fd870057c83832ef59664fc92cc95e273131783.tar.xz
serverdata-6fd870057c83832ef59664fc92cc95e273131783.zip
Give newcomers additional drop rate of [Cactus Drink] on Candor
Diffstat (limited to 'npc')
-rw-r--r--npc/005-7/trainer.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/005-7/trainer.txt b/npc/005-7/trainer.txt
index cb3b7db2a..a7fc492bc 100644
--- a/npc/005-7/trainer.txt
+++ b/npc/005-7/trainer.txt
@@ -556,6 +556,13 @@ OnKillMaggot:
message strcharinfo(0), l("@@/10 Maggots", .@k+1);
}
}
+ // Additional Cactus Drink drop rate for newcomers: 4.9% additional
+ if (BaseLevel <= 22) {
+ if (rand2(10000) < 490-(BaseLevel**2)) {
+ getmapxy(.@m$, .@x, .@y, 0);
+ makeitem CactusDrink, 1, .@m$, .@x, .@y;
+ }
+ }
fix_mobkill(Maggot);
end;
OnKillHouseMaggot: