Edit and change your npc script that using UNITTYPE to BL.
Example 1:
getmapxy(
[email protected]$,
[email protected],
[email protected],UNITTYPE_NPC,strnpcinfo(0)); to getmapxy(
[email protected]$,
[email protected],
[email protected],BL_NPC,strnpcinfo(0));
Example 2:
getmapxy(
[email protected]$,
[email protected],
[email protected],UNITTYPE_PC,strnpcinfo(0)); to getmapxy(
[email protected]$,
[email protected],
[email protected],BL_PC,strnpcinfo(0));
BL_PC - Character object (default)
BL_NPC - NPC object
BL_PET - Pet object
BL_HOM - Homunculus object
BL_MER - Mercenary object
BL_ELEM - Elemental object