viewing paste Check Class | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
prontera,150,150,5  script  Check Class 99,{
 
set .@char,getcharid(0);
 
getpartymember getcharid(1),0;
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
set .@count, $@partymembercount;
if(.@count < 3)
end; //Not enough members
copyarray .@charid[0],$@partymembercid[0],$@partymembercount;
//if($@partymembercount != ) end;
    for(set .@i,0; .@i < .@count; set .@i, .@i + 1){
    if( isloggedin($@partymemberaid[.@i],$@partymembercid[.@i]))
        set .@online, .@online + 1;
    }
    if(.@count != .@online)
        end;    //Not all users on
    for(set .@i,0; .@i < .@count; set .@i, .@i + 1){
    attachrid(.@charid[.@i]);
        if(Class == 4068 || Class == 4075)
            announce    "It's a Minstrel!!",0;
        if(Class == 4069 || Class == 4076)
            announce    "It's a Wanderer!!",0;
    detachrid;
    }
    attachrid(.@char);
 
end;
}
Viewed 1257 times, submitted by Streusel.