Jump to content
  • 0

Question

Posted

Hello I need realy help for this Script

 

How can I disable the Gm MvP kills

 

P.s Sorry for my Bad English :)

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( set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i + 1 ){
		mes "Top ^FF0000"+(.@i+1)+"^000000 "+.@name$[.@i]+" with ^FF0000"+.@kills[.@i]+"^000000 MVPs killed.";
	}
	close;
}

4 answers to this question

Recommended Posts

  • 0
Posted
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( set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i + 1 ){
		mes "Top ^FF0000"+(.@i+1)+"^000000 "+.@name$[.@i]+" with ^FF0000"+.@kills[.@i]+"^000000 MVPs killed.";
	}
	close;
   }

Not tested yet, perhaps you can test it and report here if there is any error.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...