Hi all,
I'd like to write the script, that will kill all monster (except for 2-3 IDs) with 2-3 cells area around NPC.
Do anyone have idea how it should look like?
I prepared loop event, but dont know how can I write auto-killing monster within this area..
I'd like to write the script, that will kill all monster (except for 2-3 IDs) with 2-3 cells area around NPC.
Do anyone have idea how it should look like?
I prepared loop event, but dont know how can I write auto-killing monster within this area..
Thank you.map_name,200,214,5 script test 4_M_JOB_KNIGHT1,{
end;
OnInit:
startnpctimer;
.@interval = 1;
while (1) {
sleep .@interval * 1000;
getmapxy .@map$,.@x,.@y, 1;// XY npc sample
for ( .@i = -4; .@i <= 4; .@i++ )// x
for ( .@j = -4; .@j <= 4; .@j++ )// y
????
????
}
initnpctimer;
end;
}