Jump to content

Recommended Posts

Posted

File Name: @empladder

File Submittersandbox

File Submitted: 2 Mar 2014

File CategoryUtilities

Content Author: sandbox

Script details and usage

It's a script that will show the top 10 Emperium breakers of your server.

Suggestions for the improvement of this very simple script would be appreciated.

Installation
  • Enable the script on your NPC folder
  • Find this line in npc/guild/agit_main.txt

// The Emperium has been broken.

OnAgitBreak:

Add below 

set empladder,empladder+1;
  • If your script support WoE SE, you will have to edit this file too > npc/guild2/agit_main_se.txt

Find

OnStartArena:

set .@GID,getcharid(2);

Add below 

set empladder,empladder+1;

 

Terms & Conditions

  • You are not allowed to reproduce or make profit of this script
  • You are not allowed to take credit for this script. Though you can modify/edit it to your liking.
  • I can give you support, but please, do not message me.
  • It is your own responsibility to create a backup before implementing anything new.

Pastebin: http://rathena.org/board/pastebin/73thwenhsb2a/

at_empladder.txt

Posted

Thank u :)

Almost forgot about you, here's your NPC!

//======Name========================================
// Emperium Ladder
//======Version=====================================
// 1.0
//======Author(s)===================================
// Sandbox
//======Comments====================================
// It's a script that will show the top 10 Emperium breakers of your server.
//==================================================
 
prontera,123,123,4	script	empladder	78,{
 
		mes "Here are our top 10 breakers!";	
query_sql ("SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='empladder' ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count);
		    for( set .@x,0; .@x<10; set .@x,.@x+1 )
			    {
			        mes "^880000"+(.@x+1)+"^000000) ^0000FF"+.@name$[.@x]+"^000000 - ^008800"+.@count[.@x]+"^000000 Point(s)";
			    } // .@x starts at 0, but you want to start with '1st', so use (.@x+1)
		close; 
}
  • Upvote 1
Posted

Thank u :)

Almost forgot about you, here's your NPC!

//======Name========================================
// Emperium Ladder
//======Version=====================================
// 1.0
//======Author(s)===================================
// Sandbox
//======Comments====================================
// It's a script that will show the top 10 Emperium breakers of your server.
//==================================================
 
prontera,123,123,4	script	empladder	78,{
 
		mes "Here are our top 10 breakers!";	
query_sql ("SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='empladder' ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count);
		    for( set .@x,0; .@x<10; set .@x,.@x+1 )
			    {
			        mes "^880000"+(.@x+1)+"^000000) ^0000FF"+.@name$[.@x]+"^000000 - ^008800"+.@count[.@x]+"^000000 Point(s)";
			    } // .@x starts at 0, but you want to start with '1st', so use (.@x+1)
		close; 
}

*hails sandbox for this*

  • 1 month later...
  • 4 months later...
  • 3 years later...
Posted

hi can someone convert this @empladder in present database because now the database has don't have global_reg_value table anymore thankyou 
query_sql ("SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='empladder' ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count);
 

Posted
On 4/16/2014 at 11:37 AM, sandbox said:

It already works like that, unless you mean something else?

 

On 4/16/2014 at 12:50 PM, Stolao said:

lol so it does, i was reading the quotes sorry

hi can someone convert this @empladder in present database because now the database has don't have global_reg_value table anymore thankyou 
 

query_sql ("SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='empladder' ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count);

thankyou 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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