Squall New member Messages 33 Points 0 Emulator Sep 10, 2014 #2 Is there any way to get the char_id of all the players in a particular area x1, y1, x2, y2? Grateful.
Is there any way to get the char_id of all the players in a particular area x1, y1, x2, y2? Grateful.
J jaBote Community Contributors Messages 2,037 Points 0 Github jaBote Sep 10, 2014 #3 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.
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.
AnnieRuru ~~Cute~Cute~Scripter~~ Messages 1,677 Points 0 Location your next door ~ Discord AnnieRuru#1609 Github AnnieRuru Emulator Client Version 2019-05-30aRagexeRE Sep 10, 2014 #4 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
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
Squall New member Messages 33 Points 0 Emulator Sep 11, 2014 #5 Yes "account_id" also works with, thanks!