summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-08 12:20:03 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-08 12:20:03 -0300
commite5895847a523ef32e899c98e18e9d00ae27b0b88 (patch)
treea5c680a6b2cac6bf5ee3462b37c9371ded1c2a4b /npc/functions
parentb082e14d7b7f0496151877afe87e11c4965d8425 (diff)
downloadserverdata-e5895847a523ef32e899c98e18e9d00ae27b0b88.tar.gz
serverdata-e5895847a523ef32e899c98e18e9d00ae27b0b88.tar.bz2
serverdata-e5895847a523ef32e899c98e18e9d00ae27b0b88.tar.xz
serverdata-e5895847a523ef32e899c98e18e9d00ae27b0b88.zip
Nerf ticket drop rate. Begin Santa code
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/mob_points.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/mob_points.txt b/npc/functions/mob_points.txt
index 5b4b86d8..7498191d 100644
--- a/npc/functions/mob_points.txt
+++ b/npc/functions/mob_points.txt
@@ -16,11 +16,11 @@ function script MobPoints {
@mobId=killedrid;
if (isChristmas21() && compare(getmap(), "@"+callfunc("X21ID2"))) {
- if (getmonsterinfo(@mobId, MOB_LV) >= 150 && any(true, false))
+ if (getmonsterinfo(@mobId, MOB_LV) >= 150 && rand2(3) == 1)
getitem XmasTicket, 2;
- else if (getmonsterinfo(@mobId, MOB_LV) >= 100 && any(true, false))
+ else if (getmonsterinfo(@mobId, MOB_LV) >= 100 && rand2(3) == 1)
getitem XmasTicket, 1;
- else if (getmonsterinfo(@mobId, MOB_LV) >= 40 && any(true, false, false, false))
+ else if (getmonsterinfo(@mobId, MOB_LV) >= 40 && rand2(5) == 3)
getitem XmasTicket, 1;
else if (rand2(10) == 3)
getitem XmasTicket, 1;