Jump to content
  • 0
hendra814

cash and zeny ladder

Question

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

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)

  • Upvote 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.