char_id of all the players in a particular area

Squall

New member
Messages
33
Points
0
Emulator
Is there any way to get the char_id of all the players in a particular area x1, y1, x2, y2?

Grateful.

 
Not that I remember unless you use custom code. You can get all char IDs then check if they're on the same map and area you want.

 
http://herc.ws/board/topic/4593-getmemberaid-checkmes/

//  return account_id of all online players within the specific coordinatesprontera,153,185,5  script  AREA_coordinate  100,{  getmapxy .@map$, .@x, .@y, 0;  detachrid;  getmemberaid AREA, .@map$, .@x-1, .@y-1, .@x+1, .@y+1;  for ( .@i = 0; .@i < $@onlinecount; .@i++ )    announce rid2name( $@onlineaid[.@i] ), bc_all;  end;}..

why you need char_id instead of account_id ?

because of *warpchar ?

better just use *areawarp

 
Back
Top