Jump to content
  • 0

Question

Posted (edited)

can somebody please help me create a zeny ranker script....

the script would have a function like this

 

 

 

mes "How can i help you?"';
 
next;
 
menu "View zeny ranking",1;
 
1:
mes "Alright, here's the top 10 richest character on the server :"
 
top 1 - name 1
top 2 - name 2
top 3 - name 3
top 4 - name 4
top 5 - name 5
top 6 - name 6
top 7 - name 7
top 8 - name 8
top 9 - name 9
top 10 - name 10
next;
menu "name 1",n1,"  "name 2",n2,"  "name 2",n2,"  "name 3",n3,"  "name 4",n4,"  "name 5",n5,"  "name 6",n6," and so on.....

n1:
name :
job :
blvl :
jlvl :
guild : 
current zeny : 1 billion
 
 
n2:
name :
job :
blvl :
jlvl :
guild : 
current zeny : 900 million
 
 
and so on.....
 
Edited by caspa

4 answers to this question

Recommended Posts

Posted · Hidden by Xynvaroth, August 6, 2013 - Scripting Requests Rules: You may only answer to topics of this area if you provide scripting code concerning the problem.
Hidden by Xynvaroth, August 6, 2013 - Scripting Requests Rules: You may only answer to topics of this area if you provide scripting code concerning the problem.

Nice way to tract the farmers on the server, i'd like to have the script too.

Posted · Hidden by Xynvaroth, August 6, 2013 - Scripting Requests Rules: You may only answer to topics of this area if you provide scripting code concerning the problem.
Hidden by Xynvaroth, August 6, 2013 - Scripting Requests Rules: You may only answer to topics of this area if you provide scripting code concerning the problem.

PM me.

Posted


prontera,150,185,5 script Test 100,{

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 10", .@name$, .@class, .@blvl, .@jlvl, .@zeny, .@guild$);

for (.@i = 0; .@i < getarraysize(.@name$); .@i++) {

.@menu$ = (("" == .@menu$) ? "Top " + (.@i + 1) + " - " + .@name$[.@i] : .@menu$ + ":Top " + (.@i + 1) + " - " + .@name$[.@i]);

}

mes "[Zeny Ranking]";

mes "Which character do you want to see details about?";

.@selected = select(.@menu$);

next;

mes "Name: " + .@name$[.@selected - 1];

mes "Class: " + jobname(.@class[.@selected - 1]);

mes "Base level: " + .@blvl[.@selected - 1];

mes "Job level: " + .@jlvl[.@selected - 1];

mes "Guild: " + ((.@guild$[.@selected - 1]) ? .@guild$[.@selected - 1] : "none");

mes "Zeny: " + .@zeny[.@selected - 1];

close;

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...