Hello i want to only announce when the players Killed the Super Fabre But the problem all monster has been killed announce it
pvp_n_1-2,0,0,0,0 monster 1 Point 1007,60,0,60000,"fabre_punch_main::OnKill_1"
pvp_n_1-2,0,0,0,0 monster 10 Points 1007,30,0,60000,"fabre_punch_main::OnKill_2"
pvp_n_1-2,0,0,0,0 monster -20 Points 1007,50,0,60000,"fabre_punch_main::OnKill_3"
pvp_n_1-2,0,0,0,0 monster Super Points 1229,10,0,60000,"fabre_punch_main::OnKill_4"
OnKill_1:
callsub( L_Point,( .point_rate * 1 ) ); // Fabre = 1 Point
end;
OnKill_2:
callsub( L_Point,( .point_rate * 10 ) ); // Fabre = 10 Point
end;
OnKill_3:
callsub( L_Point,( .point_rate * -20 ) ); // Fabre = -20 Point
end;
OnKill_4:
callsub( L_Point, rand( 1,100 ), bc_map ); // Fabre = random 1~100 Point
end;
L_Point:
if ( .status == 2 ) {
.@value = getarg( 0,0 );
.@announce = getarg( 1,bc_self );
query_sql( "INSERT INTO `e_fabre_punch_rank` (`cid`, `name`, `point`) VALUES ( "+getcharid(0)+", '"+escape_sql( strcharinfo(0) )+"', "+.@value+" ) ON DUPLICATE KEY UPDATE `point` = `point` + "+.@value );
dispbottom "<Fabre Punch Event> Gained " + .@value + " Point.";
if ( .@announce )
announce "Super Fabre has been killed by [ " + strcharinfo(0) + " ] for " + .@value + " Point(s) !",.@announce;
}
else if ( .status == 0 ) {
dispbottom "Event not yet start, please wait.";
}
return;
}