viewing paste Unknown #22954 | 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
z@prt,148,195,4 script  Prontera King   108,{
if('RewardGiven == 0) {
        'RewardGiven++;
        mes "[^0000FF Prontera King ^000000]";
        mes "Well "+strcharinfo(0)+", you bravely fought back every single one of those hideous Zombies for the sake of Prontera!";
        mes "If we ever need you again in-case the Zombies regroup, we know who to go to now!";
        mes "From thy King himself, grants you these presents as a token of the Kingdom of Pronteras Gratitude.";
        if( getcharid(1) ) {
                getpartymember( getcharid(1),2 );
                getpartymember( getcharid(1),1 );
                for( .@i = 0; .@i < $@partymembercount; .@i++ ) {
                        if( isloggedin( $@partymemberaid[ .@i ],$@partymembercid[ .@i ] ) ) { // Checking for login
                                if( attachrid($@partymemberaid[ .@i ]) ) { // Attaching that player to script
                                        if( compare(strcharinfo(3),"z@prt") ) { // Checking if they are on the right map
                                                ZIns_CD = gettimetick(2) + 14400; // 4 hours cooldown
                                                getitem 501, 1, $@partymemberaid[ .@i ];// put ID bronze coin instead of 501
                                        }
                                }
                        }
                }
                sleep 5000;
                instance_destroy();
                end;
        }
        end;
}
}
Viewed 330 times, submitted by unknown.