Thread: disabling v2,3?
View Single Post
  #9  
Old 01-20-2006, 03:43 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.

Last edited by jake13jake; 01-20-2006 at 06:17 PM..