@Xiija
It's not working with llGetAgentList(). Well looks like it's complex, you can try this code in world it won't work, but if you're gonna try it don't forget to change the keys for the avatar keys in the same region you're in.
list my_list =
[
"43a2cd19-eb07-47a6-b1c3-94ea7924e4f7",
"7a6b9c04-b610-4017-9982-80962eda2619"
];
list ListXandY(list myList, list scanList )
{ // return a list of elements common to both lists
list lz = [];
integer x;
integer n = llGetListLength( scanList );
for (x = 0; x < n; x++)
{
if (~llListFindList( myList, llList2List( scanList, x, x)))
{ lz += llList2List( scanList, x, x);
}
}
return lz;
}
default
{
touch_start(integer total_number)
{
list avatarsInRegion = llGetAgentList(AGENT_LIST_REGION, []);
list result = ListXandY(my_list, avatarsInRegion);
list names;
integer y;
for(; y < llGetListLength(result) ; ++y)
{ key currKEY = llList2Key(result,y);
names += llGetUsername( currKEY );
}
string tmp = llDumpList2String( names, "\n");
llOwnerSay( "\nFound: \n" + tmp );
}
}