hendra814 Posted October 27, 2014 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 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 [email protected], query_sql("SELECT account_id, value FROM `global_reg_value` WHERE str = '#CASHPOINTS' ORDER BY value DESC LIMIT 5;", [email protected], [email protected]); mes "Pemegang Cashpoint terbanyak: TOP 5"; for(set [email protected],0; [email protected] <= [email protected]; set [email protected],[email protected]+1) mes [email protected]+1+". "[email protected][[email protected]]+" ("[email protected][[email protected]]+")"; end; L_Zeny: next; set [email protected], query_sql("SELECT name, zeny FROM `char` ORDER BY zeny DESC LIMIT 5", [email protected]$, [email protected]); mes "Pemegang Zeny terbanyak: TOP 5"; for(set [email protected],0; [email protected] <= [email protected]; set [email protected],[email protected]+1) mes [email protected]+1+". "[email protected]$[[email protected]]+" ("[email protected][[email protected]]+")"; 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 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 [email protected], query_sql("SELECT account_id, value FROM `global_reg_value` WHERE str = '#CASHPOINTS' ORDER BY value DESC LIMIT 5;", [email protected], [email protected]); mes "Pemegang Cashpoint terbanyak: TOP 5"; for(set [email protected],0; [email protected] <= [email protected]; set [email protected],[email protected]+1) mes [email protected]+1+". "[email protected][[email protected]]+" ("[email protected][[email protected]]+")"; end; L_Zeny: next; set [email protected], query_sql("SELECT name, zeny FROM `char` ORDER BY zeny DESC LIMIT 5", [email protected]$, [email protected]); mes "Pemegang Zeny terbanyak: TOP 5"; for(set [email protected],0; [email protected] <= [email protected]; set [email protected],[email protected]+1) mes [email protected]+1+". "[email protected]$[[email protected]]+" ("[email protected][[email protected]]+")"; 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...
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