Akbare-2nd Posted June 18, 2024 Group: Members Topic Count: 6 Topics Per Day: 0.01 Content Count: 62 Reputation: 4 Joined: 06/11/23 Last Seen: Saturday at 12:36 PM Share Posted June 18, 2024 (edited) I get an error when installing this script Can anyone help? I think the problem in here OnNPCKillEvent: // Logic to detect when a MvP is killed if (getmonsterinfo(killedrid, MOB_MVPEXP) > 0) { .@selectIfKillExistQuery$ = "SELECT char_id, mob_id, kills FROM mvpladder WHERE char_id = '" + getcharid(0) + "' AND mob_id = '" + killedrid + "';"; if (query_sql(.@selectIfKillExistQuery$) > 0) { // Exist a kill of that MVP so +1 to kill count .@updateLadderQuery$ = "UPDATE mvpladder SET kills = kills + 1 WHERE char_id = '" + getcharid(0) + "' AND mob_id = '" + killedrid + "'"; } else { // Create a new kill of specific MVP //.@updateLadderQuery$ = "INSERT INTO mvpladder (char_id, mob_id, kills) VALUES ('" + getcharid(0) + "','" + killedrid + "','1');"; .@updateLadderQuery$ = "INSERT INTO mvpladder (`char_id` , `mob_id` , `kills`) VALUES ('" + getcharid(0) + "','" + killedrid + "','1');"; } query_sql(.@updateLadderQuery$); } end; } fullscript : mvp_ladder.c Edited June 18, 2024 by Akbare-2nd Quote Link to comment Share on other sites More sharing options...
0 Haxer Posted March 16 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 8 Reputation: 0 Joined: 01/17/25 Last Seen: March 17 Share Posted March 16 any update on this thank you Quote Link to comment Share on other sites More sharing options...
0 Scanty Posted March 17 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 93 Reputation: 31 Joined: 11/08/15 Last Seen: 16 hours ago Share Posted March 17 Just translate it. It's in Spanish languague. Good luck ~ Estatuas_MVP.txt Quote Link to comment Share on other sites More sharing options...
Question
Akbare-2nd
I get an error when installing this script
Can anyone help?
I think the problem in here
OnNPCKillEvent: // Logic to detect when a MvP is killed if (getmonsterinfo(killedrid, MOB_MVPEXP) > 0) { .@selectIfKillExistQuery$ = "SELECT char_id, mob_id, kills FROM mvpladder WHERE char_id = '" + getcharid(0) + "' AND mob_id = '" + killedrid + "';"; if (query_sql(.@selectIfKillExistQuery$) > 0) { // Exist a kill of that MVP so +1 to kill count .@updateLadderQuery$ = "UPDATE mvpladder SET kills = kills + 1 WHERE char_id = '" + getcharid(0) + "' AND mob_id = '" + killedrid + "'"; } else { // Create a new kill of specific MVP //.@updateLadderQuery$ = "INSERT INTO mvpladder (char_id, mob_id, kills) VALUES ('" + getcharid(0) + "','" + killedrid + "','1');"; .@updateLadderQuery$ = "INSERT INTO mvpladder (`char_id` , `mob_id` , `kills`) VALUES ('" + getcharid(0) + "','" + killedrid + "','1');"; } query_sql(.@updateLadderQuery$); } end; }
fullscript :
mvp_ladder.c
Edited by Akbare-2ndLink to comment
Share on other sites
2 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.