Jump to content
  • 0

cash and zeny ladder


hendra814

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1181
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

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)

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1181
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

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.

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...