Might be easier to write a new script
Here's one that runs off the SQL logs table. First enable the mvplog in trunk/conf/log_athena.conf
// Use MySQL Logs? [sql Version Only] (Note 1)
sql_logs: yes
// Log MVP Monster Drops (Note 1)
// Outdated. Use Pick_Log instead. But this log could be useful to keep track slayed MVPs
log_mvpdrop: yes
Then the NPC script:
prontera,155,188,0 script MVP Rank 910,{
// get database names, for join
query_sql "SELECT DATABASE()", .@rag_db$;
query_logsql "SELECT DATABASE()", .@log_db$;
query_sql "SELECT `name`,COUNT(mvp_id) FROM "+.@log_db$+".mvplog " +
"LEFT JOIN "+.@rag_db$+".`char` ON mvplog.kill_char_id=`char`.char_id " +
"GROUP BY kill_char_id ORDER BY COUNT(mvp_id) DESC LIMIT 10", .@name$, .@kills;
mes "[MVP Rank Top 10]";
for (.@i=0; .@i<getarraysize(.@name$); .@i++) {
mes "Top ^FF0000"+(.@i+1)+"^000000 "+.@name$[.@i]+" with ^FF0000"+.@kills[.@i]+"^000000 MVPs killed.";
}
close;
}