Quote:
|
Originally Posted by Stefan
Hmmm there is clientside findareanpcs(), but it might be a little bit bugged, only work for level npcs. In the next version it should work better.
|
eek.. can't figure that out.
I'm assuming findareanpcs(x,y,w,h)... and it returns indeces?
However, it's always giving me 0 here.
PHP Code:
function onNPC(tx,ty,w,h) {
temp.tnpcs = findareanpcs(tx,ty,w,h);
player.chat = temp.tnpcs.size();
ADD:
and I tried player.chat = temp.tnpcs.image for that and
and I also tried it for temp.tnpcs.findareanpcs(tx,ty,w,h);
I just can't get it to work at all -_-
ADD
O WAIT. I know why now. Stefan said it only worked on level NPCs. I interpreted that as a detection problem. Hopefully next version it will be available for weapon NPCs too.