Jump to content
  • 0

Question

5 answers to this question

Recommended Posts

Posted (edited)

didn't test it yet but that should work

prontera,156,180,4 script MVP LADDER 100,{
set .@query, query_sql ("SELECT char_id,value FROM  `global_reg_value` WHERE  `str` LIKE  'mvpladder' ORDER BY  `str` DESC LIMIT 0,10",.@char_id,.@value);  // Query Limit to 10
for(set .@i,0; .@i<.@query; set .@i,.@i+1) {
attachrid(.@char_id[.@i]);
mes .@i+" "+strcharinfo(0)+" kills: "+.@value[.@i];
}
close;
OnNPCKillEvent:
if (getmonsterinfo(killedrid,MOB_MVPEXP)) //Every Kill MVP +1
 set mvpladder,mvpladder+1;
end;
}

Edited by deathscythe13
Posted

you can try this...but it's SQL Version.

http://pastebin.com/raw.php?i=KQFjt7ia

make sure you load this Table in your SQL before use the NPC Scripts.


CREATE TABLE IF NOT EXISTS `E-MVPRank` (
`char_id` int(11) unsigned NOT NULL default '0',
`name` varchar(30) NOT NULL DEFAULT '',
`Count` int(11) unsigned NOT NULL default '0',
PRIMARY KEY  (`char_id`)
) ENGINE=MyISAM;

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