Bringer Posted January 27, 2018 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: 5 hours ago Share Posted January 27, 2018 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; } Quote Link to comment Share on other sites More sharing options...
1 sader1992 Posted January 27, 2018 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM Share Posted January 27, 2018 try this 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 ), 1 ); // Fabre = random 1~100 Point end; L_Point: if ( .status == 2 ) { .@value = getarg( 0,0 ); 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(getarg(1)) announce "Super Fabre has been killed by [ " + strcharinfo(0) + " ] for " + .@value + " Point(s) !",bc_map; } else if ( .status == 0 ) { dispbottom "Event not yet start, please wait."; } return; } 1 Quote Link to comment Share on other sites More sharing options...
0 Bringer Posted January 27, 2018 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 748 Reputation: 47 Joined: 03/12/14 Last Seen: 5 hours ago Author Share Posted January 27, 2018 20 minutes ago, sader1992 said: try this 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 ), 1 ); // Fabre = random 1~100 Point end; L_Point: if ( .status == 2 ) { .@value = getarg( 0,0 ); 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(getarg(1)) announce "Super Fabre has been killed by [ " + strcharinfo(0) + " ] for " + .@value + " Point(s) !",bc_map; } else if ( .status == 0 ) { dispbottom "Event not yet start, please wait."; } return; } Announce is Working Fine now BUT Error on map server Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted January 27, 2018 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM Share Posted January 27, 2018 pass with other events 0 example OnKill_1: callsub( L_Point,( .point_rate * 1 ),0 ); // Fabre = 1 Point Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted January 27, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted January 27, 2018 2 hours ago, Bringer said: But the problem all monster has been killed announce it the default script broadcast the announce to the player him/herself only. only the super fabre will be broadcast to everyone in the same map. Quote Link to comment Share on other sites More sharing options...
Question
Bringer
Hello i want to only announce when the players Killed the Super Fabre But the problem all monster has been killed announce it
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.