@GodLesZ,
Seems interesting. I can create a dummy skill which would just be used for capturing mouse coordinates.
Though I'm not exactly sure how I can use / convert clif_parse_UseSkillToPos() to actual x and y coordinates , if ever I'm successful on getting it.
@KeyWorld,
Yeah, mouse position would be vital, since this would be used mainly for a quest.
I would be confined to using DIR compared to current player's position (getmapxy)
to still somewhat make the NPC spawning (x,y) variable.
I tried using your mod, it shows me this;
script.c: In function 'buildin_areaeffect':
script.c:17900: warning: implicit declaration of function 'clif_sendfakenpc'
script.c:17901: error: incompatible type for argument 1 of 'clif_specialeffect_single'
Also, would the correct entry below be;
//Areaeffect
BUILDIN_DEF(areaeffect, "iii"),
PS: My post got answered in less than 2 hours. I prefer this new board. Lol.
Edit:
I changed this;
clif_specialeffect_single( fk->bl, script_getnum(st,2), sd->fd );
To this;
clif_specialeffect_single( fk->bl.id, script_getnum(st,2), sd->fd );
It compiled without error and 1 warning (shown above).
But when I attach it to a script, my map server crashes.