Hi. Use OnInit and initnpctimer to trigger the NPC without attached player. Then use unitskillusepos to cast the skill anywhere.
Example:
prontera,155,114,4 script StormGust Wizard 4_M_JOB_WIZARD,{
end;
OnTimer3000:
unitskillusepos getnpcid(0),"WZ_STORMGUST", 10, .x, .y-7, -6;
stopnpctimer;
initnpctimer;
end;
OnInit:
getmapxy(.map$, .x, .y, BL_NPC);
initnpctimer;
end;
}
*unitskillusepos <GID>,<skill id>,<skill lvl>,<x>,<y>{,<casttime>,<cancel>,<Line_ID>,<ignore_range>};