From 9358ee1766bbcadebbd9826f01a197a25f8b3613 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 18 Dec 2021 07:00:55 -0300 Subject: Allow Christmas Ticket drops at: - Aethyr (4%) - Poppet's Realm (20%) Note: Default drop rate is 8% - but for strong mobs, can go up to 25% --- npc/functions/mob_points.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/npc/functions/mob_points.txt b/npc/functions/mob_points.txt index ed0bd165..5e6a2580 100644 --- a/npc/functions/mob_points.txt +++ b/npc/functions/mob_points.txt @@ -14,8 +14,9 @@ function script MobPoints { $MONSTERS_KILLED+=1; MONSTERS_KILLED+=1; @mobId=killedrid; + .@m$ = getmap(); - if (isChristmas21() && compare(getmap(), "@"+callfunc("X21ID2"))) { + if (isChristmas21() && compare(.@m$, "@"+callfunc("X21ID2"))) { if (getmonsterinfo(@mobId, MOB_LV) >= 150 && rand2(4) == 1) getitem XmasTicket, 2; else if (getmonsterinfo(@mobId, MOB_LV) >= 100 && rand2(4) == 1) @@ -25,6 +26,13 @@ function script MobPoints { else if (rand2(12) == 3) getitem XmasTicket, 1; } + else if (isChristmas21() && (.@m$ == "082-3")) { + if (rand2(5) == 3) + getitem XmasTicket, 1; + else if (isChristmas21() && (.@m$ == "081-1")) { + if (rand2(25) == 7) + getitem XmasTicket, 1; + } if (MPQUEST) { .@moblv=strmobinfo(3,killedrid); -- cgit v1.2.3-60-g2f50