Jump to content
  • 0
Sign in to follow this  
Tdi123

O Ranking PvP do Script Ghost's PvP System v1.0 está atualizando apenas após relogar!

Question

Estou tentando consertar esse script à algum tempo, mas ainda não obtive sucesso!!!

Se alguém conseguir me ajudar com este pequeno bug, porém irritante, agradeço!!!

Formula do Ranking:

Quote

if(getvariableofnpc(.ServerType, "Versus")){
        mes "^FF7F00[ Top "+getvariableofnpc(.Top, "Versus")+" PvP Ranking ]^000000";
        mes "^0000FFKill^000000 | ^FF0000Death^000000 | ^FF22FFKDR^000000 | ^00FF00SK^000000 | ^666666MK^000000";
        query_sql "SELECT `char`, `kill`, `death`, `kdr`, `killingstreak`, `multikill` FROM `pvp_rank` ORDER BY `pvp_rank`.`kill` DESC LIMIT "+getvariableofnpc(.Top, "Versus")+"", [email protected]$, [email protected], [email protected], [email protected]$, [email protected], [email protected];
        for(set [email protected], 0; [email protected] < getarraysize([email protected]$); set [email protected], [email protected] + 1){
            mes [email protected]+1+". "[email protected]$[[email protected]]+" ^0000FF"[email protected][[email protected]]+"^000000 ^FF0000"[email protected][[email protected]]+"^000000 ^FF22FF"[email protected]$[[email protected]]+"^000000 ^00FF00"[email protected][[email protected]]+"^000000 ^666666"[email protected][[email protected]]+"^000000 ";
    }
        close;
    } else { 
        mes "Top "+getvariableofnpc(.Top, "Versus")+" ranking is not yet implemented for this server type."; 
    }

Tabela SQL:

Quote
  1. CREATE TABLE IF NOT EXISTS `pvp_rank` (
  2.  `char_id` int(11) NOT NULL,
  3.  `account_id` int(11) NOT NULL,
  4.  `char` varchar(30) NOT NULL,
  5.  `kill` int(11) NOT NULL,
  6.  `death` int(11) NOT NULL,
  7.  `kdr` varchar(30) NOT NULL,
  8.  `killingstreak` int(11) NOT NULL,
  9.  `multikill` int(11) NOT NULL,
  10.  `killingspree` int(11) NOT NULL,
  11.  `dominating` int(11) NOT NULL,
  12.  `megakill` int(11) NOT NULL,
  13.  `unstoppable` int(11) NOT NULL,
  14.  `wickedsick` int(11) NOT NULL,
  15.  `monsterkill` int(11) NOT NULL,
  16.  `godlike` int(11) NOT NULL,
  17.  `beyondgodlike` int(11) NOT NULL,
  18.  `doublekill` int(11) NOT NULL,
  19.  `triplekill` int(11) NOT NULL,
  20.  `ultrakill` int(11) NOT NULL,
  21.  `rampage` int(11) NOT NULL,
  22.  `ownage` int(11) NOT NULL,
  23.  `nemesiskill` int(11) NOT NULL,
  24.  `feedcount` int(11) NOT NULL,
  25.  PRIMARY KEY (`char_id`)
  26. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

A pontuação do ranking do jogador só atualizará quando o jogador que conquistou as kills relogar!!!

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.