diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-18 07:00:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-18 07:00:55 -0300 |
commit | 9358ee1766bbcadebbd9826f01a197a25f8b3613 (patch) | |
tree | 6fa2f0f2eaad86f9922e2444018e4238f45cd35a | |
parent | c99143bb4f2b346093eca1ce59dbf52f08c6ef81 (diff) | |
download | serverdata-9358ee1766bbcadebbd9826f01a197a25f8b3613.tar.gz serverdata-9358ee1766bbcadebbd9826f01a197a25f8b3613.tar.bz2 serverdata-9358ee1766bbcadebbd9826f01a197a25f8b3613.tar.xz serverdata-9358ee1766bbcadebbd9826f01a197a25f8b3613.zip |
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%
-rw-r--r-- | npc/functions/mob_points.txt | 10 |
1 files changed, 9 insertions, 1 deletions
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); |