diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-01-19 19:12:35 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-01-19 19:12:35 -0300 |
commit | 9656781186f960f825003a3d6d4f4effde901d45 (patch) | |
tree | 22a7d35277d25de683fd14aaf82a783726e5bbf1 | |
parent | 8c60f3e429febd56523c7092e9e4f5dc7db1475c (diff) | |
download | serverdata-9656781186f960f825003a3d6d4f4effde901d45.tar.gz serverdata-9656781186f960f825003a3d6d4f4effde901d45.tar.bz2 serverdata-9656781186f960f825003a3d6d4f4effde901d45.tar.xz serverdata-9656781186f960f825003a3d6d4f4effde901d45.zip |
[HACK] Automatically unequip [Explosive Arrow] if not using a bow.
First time has tolerance as you might just have forgotten it equipped.
Second time will prevent the mob kill from counting:
- No monster points
- No Grand Hunter Quest progress (or any non-map-specific quest, actually)
- No drops from events (Coffee, Chocolate, etc.)
- Realm of Drops ineffective
- Mirror Lake EXP Bonus ineffective
-rw-r--r-- | npc/functions/mobpoint.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index 349bfa011..3e52930a9 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -77,6 +77,17 @@ OnNPCKillEvent: JobExp-=1; } + // Sanitize some bug... + if (isequipped(ExplosiveArrow)) { + .@wpn = getequipid(EQI_HAND_R); + if (getiteminfo(.@wpn, ITEMINFO_SUBTYPE) != W_BOW) { + unequipbyid(ExplosiveArrow); + if (@hacktol) + end; // Will not count for anything else + @hacktol = true; + } + } + // killedrid was not set, so we skip if (!killedrid) end; |