maybe you can use this
open database and open table char and added empbreaker colums using this
ALTER TABLE `char` ADD `empbreak` SMALLINT(6) UNSIGNED NOT NULL DEFAULT '0' AFTER `fame`;
open npc/guild/agit_main.txt and add this script above // Adjust Economy Invest Level for Castle
query_sql "UPDATE `char` SET empbreak = empbreak+1 WHERE char_id = " + getcharid(0);
and then you must edit your script like this
////============================//// Emp Breaking Ladder////============================sec_in01,88,175,4 script Emperium Ranking 722,{query_sql "SELECT`char`.`char_id`,`char`.`name`, `char`.`empbreak` FROMchar ORDER BY `char`.`empbreak` DESC LIMIT 10", .@char_id,.@name$, .@count; mes "^FF0000[ Emperium Ranking ]^000000"; for( set .@x,0; .@x<=9; set .@x,.@x+1 ) { mes "^0000FF"+(.@x+1)+".^000000 " +((.@name$[.@x] == "")? "None":.@name$[.@x] )+ " -^FF0000"+.@count[.@x]+"^000000 Break(s)";} mes " "; mes "^0000FF["+strcharinfo(0)+"'s]^000000 Emperium Break's is ^FF0000" + empbreak + "^000000 Break(s)"; close;OnInit:// waitingroom "Emperium's Ranking",0; // Look on the configuration! end;}
please dont use copy and paste with the script notice about using tab on
sec_in01,88,175,4 script Emperium Ranking 722,{
usually you can get error their If you forget to use the tab
nb : sorry for my query dont work i forget . hhee