Stefan, you should add this, it can be used like findplayer(account), but with a lot more flexibility.
NPC Code:
//Script made by jake13jake
//on Friday, December 9th,
//also the day of his sister's 21st birthday,
//at 2:45 in the morning!
function find(arr,attr,val) {
for (i=0; i<arr.size(); i++) {
if (arr[i].(@attr) == val)
return arr[i];
}
return -1;
}