help me with this script:
this script allow an npc to announce where is $@hehe_gid location coordinates but it doesnt work when announce it says that 0,0 help me with this please
you can try modify src let it return dead x ,y coordinate
mob.c
find
#include "quest.h"
add after
#include "mapreg.h"
find
if( md->npc_event[0] && !md->state.npc_killmonster )
add after
mapreg_setreg(add_str("$@mobdead_x"), md->bl.x);
mapreg_setreg(add_str("$@mobdead_y"), md->bl.y);
recompile...
It should return last mob dead coordinate x ($@mobdead_x) and y($@mobdead_y)