Top 10 zeny

Alexandria

New member
Messages
341
Points
0
Location
localhost
Hello there.

I know that Fluxcp has a zeny ranking but I need a NPC which displays the top 10 richest people in the server.

Any help would be great. Thank you!

 
Code:
prontera,100,100,4	script	Zeny Ranking	100,{	mes "[Zeny Ranking]";	mes "Top " + .MaxShow + " richest in the server:";	query_sql "select `name`,`zeny` from `char` where `zeny` > 0 order by `zeny` desc limit " + .MaxShow + "", .@name$, .@zeny;	for( .@i = 0; .@i < getarraysize(.@zeny); .@i++ )		mes "~ [.@i + 1] ~ " + .@name$[.@i] + " | Zeny: " + .@zeny[.@i] + "";	close;OnInit:	.MaxShow = 5;	end;}
 
Thank you but it has a bug.

JZQa1Qk.jpg


It display a ~ [.@i + 1] ~ before of the name.

Thank you

 
Oh thank you. It is working now.

I think I found another bug. For some reason it doesnt update the zeny top after I typed @zeny 500. It keeps showing the previous amount.

 
Last edited by a moderator:
Back
Top