*getmapxy("<variable for map name>",<variable for x>,<variable for y>{,<type>,"<search value>"})
This function will locate a character object, NPC object or pet's coordinates
and place their coordinates into the variables specified when calling it. It
will return 0 if the search was successful, and -1 if the parameters given were
not variables or the search was not successful.
Type is the type of object to search for:
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
use the latest one, BL_PC.
getmapxy didnt use 0/1 anymore.
Example :
getmapxy .@map$, .@x, .@y, 0;
to
getmapxy .@map$, .@x, .@y, BL_PC;