np ^^
Just attach to the player and use strcharinfo like this:
set .@pid,getcharid(1); //Set Party Id
getpartymember .@pid,2; //Get Party Information
while(1)
{ //Loops until a Player gets the item
detachrid; //Detach from the first player
set .@pm_aid,$@partymemberaid[rand($@partymembercount)]; //Saves the Account ID of the random Member
if( attachrid(.@pm_aid) )
{
//Just to be sure he is in the same party and not logged with another character
if( getcharid(1) != .@pid )
continue;
//Online, attached and in the same party:
announce strcharinfo(0)+" has got the item.",bc_all;
getitem 502,1;
break;
}
}