summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/mob_points.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/npc/functions/mob_points.txt b/npc/functions/mob_points.txt
index 1b185e15..ca1edaba 100644
--- a/npc/functions/mob_points.txt
+++ b/npc/functions/mob_points.txt
@@ -5,27 +5,24 @@
// fix_mobkill(mobID) → Manual fix for scripted mobs
function script fix_mobkill {
- debugmes "FIX MOBKILL (%s) for %s", strmobinfo(1, getarg(0)), strcharinfo(0);
killedrid=getarg(0);
doevent "#GlobalHandler::OnNPCKillEvent";
return;
}
function script MobPoints {
- if (killedrid != RudolphSlime)
- debugmes "%s killed monster %s [Lv %d] (%s)", strcharinfo(0), strmobinfo(1, killedrid), getmonsterinfo(killedrid, MOB_LV), getmap();
$MONSTERS_KILLED+=1;
MONSTERS_KILLED+=1;
@mobId=killedrid;
if (isChristmas21() && compare(getmap(), "@"+callfunc("X21ID2"))) {
- if (getmonsterinfo(@mobId, MOB_LV) >= 150 && rand2(3) == 1)
+ if (getmonsterinfo(@mobId, MOB_LV) >= 150 && rand2(5) == 1)
getitem XmasTicket, 2;
- else if (getmonsterinfo(@mobId, MOB_LV) >= 100 && rand2(3) == 1)
+ else if (getmonsterinfo(@mobId, MOB_LV) >= 100 && rand2(4) == 1)
getitem XmasTicket, 1;
- else if (getmonsterinfo(@mobId, MOB_LV) > 50 && rand2(5) == 3)
+ else if (getmonsterinfo(@mobId, MOB_LV) > 50 && rand2(7) == 3)
getitem XmasTicket, 1;
- else if (rand2(10) == 3)
+ else if (rand2(12) == 3)
getitem XmasTicket, 1;
}