function script ZENYLADDER {
query_sql("SELECT `c`.`name`, `c`.`class`, `c`.`base_level`, `c`.`job_level`, `c`.`zeny`, `g`.`name` FROM `char` c LEFT JOIN (`guild` g) ON (`c`.`guild_id` = `g`.`guild_id`) ORDER BY `c`.`zeny` DESC LIMIT 100", .@name$, .@class, .@blvl, .@jlvl, .@zeny, .@guild$);
mes "[ INFORMATION ]";
for( set .@x,0; .@x<=99; set .@x,.@x+1 ) {
mes "^0000FF"+(.@x+1)+".^000000 "+.@name$[.@x]+" - ^FF0000"+.@zeny[.@x]+"^000000z";
}
close;
}
This shows the zeny ranking on my server, the problem is the value of the zeny isn't separated by place value it just shows like this 100000 not like this 100,000.
Question
cahadeyelo
Can someone help me with this script
function script ZENYLADDER { query_sql("SELECT `c`.`name`, `c`.`class`, `c`.`base_level`, `c`.`job_level`, `c`.`zeny`, `g`.`name` FROM `char` c LEFT JOIN (`guild` g) ON (`c`.`guild_id` = `g`.`guild_id`) ORDER BY `c`.`zeny` DESC LIMIT 100", .@name$, .@class, .@blvl, .@jlvl, .@zeny, .@guild$); mes "[ INFORMATION ]"; for( set .@x,0; .@x<=99; set .@x,.@x+1 ) { mes "^0000FF"+(.@x+1)+".^000000 "+.@name$[.@x]+" - ^FF0000"+.@zeny[.@x]+"^000000z"; } close; }
This shows the zeny ranking on my server, the problem is the value of the zeny isn't separated by place value it just shows like this 100000 not like this 100,000.
Link to comment
Share on other sites
3 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.