hendra814 Posted October 27, 2014 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 1281 Reputation: 170 Joined: 06/12/12 Last Seen: 11 hours ago Share Posted October 27, 2014 Need cash and zeny ladder script, location npc prontera 147 168 char must select what he/she want to see. if select cash, it will show 5 or 10 max user, from largest to smallest and same for zeny. Thanks. Quote Link to comment Share on other sites More sharing options...
Winz Posted October 27, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted October 27, 2014 prontera,147,168,4 script Dumbledore 735,{ mes "Apa yang ingin kamu ketahui?"; menu "Pemegang Cashpoint terbanyak",L_CP,"Pemegang Zeny terbanyak",L_Zeny; L_CP: next; set .@nb, query_sql("SELECT account_id, value FROM `global_reg_value` WHERE str = '#CASHPOINTS' ORDER BY value DESC LIMIT 5;", .@accid, .@value); mes "Pemegang Cashpoint terbanyak: TOP 5"; for(set .@i,0; .@i <= .@nb; set .@i,.@i+1) mes .@i+1+". "+.@accid[.@i]+" ("+.@value[.@i]+")"; end; L_Zeny: next; set .@nb, query_sql("SELECT name, zeny FROM `char` ORDER BY zeny DESC LIMIT 5", .@name$, .@zeny); mes "Pemegang Zeny terbanyak: TOP 5"; for(set .@i,0; .@i <= .@nb; set .@i,.@i+1) mes .@i+1+". "+.@name$[.@i]+" ("+.@zeny[.@i]+")"; end; } limited to 5. Since #cashpoints is embedded to accountid, not char_id, then it can only show the account id. For some reasons, I'm not picking a random char's name from that account ID nor use the "login" from that accountid (security, privacy) 1 Quote Link to comment Share on other sites More sharing options...
hendra814 Posted October 28, 2014 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 1281 Reputation: 170 Joined: 06/12/12 Last Seen: 11 hours ago Author Share Posted October 28, 2014 prontera,147,168,4 script Dumbledore 735,{ mes "Apa yang ingin kamu ketahui?"; menu "Pemegang Cashpoint terbanyak",L_CP,"Pemegang Zeny terbanyak",L_Zeny; L_CP: next; set .@nb, query_sql("SELECT account_id, value FROM `global_reg_value` WHERE str = '#CASHPOINTS' ORDER BY value DESC LIMIT 5;", .@accid, .@value); mes "Pemegang Cashpoint terbanyak: TOP 5"; for(set .@i,0; .@i <= .@nb; set .@i,.@i+1) mes .@i+1+". "+.@accid[.@i]+" ("+.@value[.@i]+")"; end; L_Zeny: next; set .@nb, query_sql("SELECT name, zeny FROM `char` ORDER BY zeny DESC LIMIT 5", .@name$, .@zeny); mes "Pemegang Zeny terbanyak: TOP 5"; for(set .@i,0; .@i <= .@nb; set .@i,.@i+1) mes .@i+1+". "+.@name$[.@i]+" ("+.@zeny[.@i]+")"; end; } limited to 5. Since #cashpoints is embedded to accountid, not char_id, then it can only show the account id. For some reasons, I'm not picking a random char's name from that account ID nor use the "login" from that accountid (security, privacy) It's Okay. thanks for reply. Quote Link to comment Share on other sites More sharing options...
Question
hendra814
Need cash and zeny ladder script,
location npc prontera 147 168
char must select what he/she want to see.
if select cash, it will show 5 or 10 max user, from largest to smallest
and same for zeny.
Thanks.
Link 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.