Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

.Qual servidor ou website você utiliza como base? 

Gesior

 

Qual o motivo deste tópico? 

Não está aparecendo no site o achievements quando o player o adquir

 

config.php

Spoiler

# Archiements System
$config['archez']['secret'] = array(2, 6, 7, 13, 16, 17, 18, 23, 24, 26, 29, 30, 31, 32, 34, 35, 37, 43, 44, 46, 51, 53, 54, 62, 63, 65, 66, 68, 73, 80, 81, 82, 83);
$config['archez']['achievements'] = array(
    1 => 'Allow Cookies?',
    2 => 'Backpack Tourist',
    3 => 'Bearhugger',
    4 => 'Bone Brother',
    5 => 'Chorister',
    6 => 'Fountain of Life',
    7 => 'Here, Fishy Fishy!',
    8 => 'Honorary Barbarian',
    9 => 'Huntsman',
    10 => 'Just in Time',
    11 => 'Matchmaker',
    12 => 'Nightmare Knight',
    13 => 'Party Animal',
    14 => 'Secret Agent',
    15 => 'Talented Dancer',
    16 => 'Territorial',
    17 => 'Worm Whacker',
    18 => 'Allowance Collector',
    19 => 'Amateur Actor',
    20 => 'Animal Activist',
    21 => 'Beach Tamer',
    22 => 'Blessed!',
    23 => 'Exquisite Taste',
    24 => 'Fireworks in the Sky',
    25 => 'Greenhorn',
    26 => 'Jinx',
    27 => 'Lucid Dreamer',
    28 => 'Mathemagician',
    29 => 'Masquerader',
    30 => 'Ministrel',
    31 => 'Poet Laureate',
    32 => 'Quick as a Turtle',
    33 => 'Sea Scout',
    34 => 'Steampunked',
    35 => 'Superstitios',
    36 => 'The Milkman',
    37 => 'Turncoat',
    38 => 'Vive la Resistance',
    39 => 'Archpostman',
    40 => 'Clay Fighter',
    41 => 'Efreet Ally',
    42 => 'Ghostwisperer',
    43 => 'His True Face',
    44 => 'Ice Sculptor',
    45 => 'King Tibanus Fan',
    46 => 'Marblelous',
    47 => 'Marid Ally',
    48 => 'Passionate Kisser',
    49 => 'Perfect Fool',
    50 => 'Recognised Trader',
    51 => 'Rockstar',
    52 => 'Scrapper',
    53 => 'Vanity',
    54 => 'Wayfarer',
    55 => 'Champion of Chazorai',
    56 => 'Culinary Master',
    57 => 'Explorer',
    58 => 'Follower of Azerus',
    59 => 'Follower of Palimuth',
    60 => 'Friend of the Apes',
    61 => 'Golem in the Gears',
    62 => 'High-Flyer',
    63 => 'Interior Decorator',
    64 => 'Master Thief',
    65 => 'Polisher',
    66 => 'Potion Addict',
    67 => 'Ruthless',
    68 => 'Ship\'s Kobold',
    69 => 'Top AVIN Agent',
    70 => 'Top CGB Agent',
    71 => 'Top TBI Agent',
    72 => 'Annihilator',
    73 => 'Castlemania',
    74 => 'Elite Hunter',
    75 => 'High Inquisitor',
    76 => 'Jamjam',
    77 => 'Lord of the Elements',
    78 => 'Warlord of Svargrond',
    79 => 'Master of the Nexus',
    80 => 'Razing!',
    81 => 'Dread Lord',
    82 => 'Lord Protector',
    83 => 'Herbicide',
    100 => 'Teste'
);

 

characters.php

Parte 1

Spoiler

$achievements = $SQL->query('SELECT `key`, `player_id` FROM `player_storage` WHERE `key` LIKE "200%" AND `player_id` = ' . $player->getId())->fetchAll();
                
                ECHO '<div class="well"> <h2> Account Achievements  </h2> 
                <table border=0 cellspacing="1" cellpadding="4" width=100%>';
                
                if(!$achievements)
                {
                    ECHO '<tr> <td> There are no achievements set to be displayed for this character.</td> </tr>';
                }
                else
                {
                    $number_of_rows = 0;                  
                    foreach($achievements as $row)
                    {
                        if(!array_key_exists(($row['key'] - 19999 ), $achievements))
                        {
                            if($row['key'] - 20000 <= 54) { $grade = '<image src="../layouts/img/star_archi.gif"/>'; }
                            elseif($row['key'] - 20000 >= 55) { $grade = '<image src="../layouts/img/star_archi.gif"/> <image src="../layouts/img/star_archi.gif"/>'; }
                            
                            $secret = false;                           
                            if(in_array(($row['key'] - 20000), $config['archez']['secret']))
                            {
                                $secret = '<image src="../layouts/img/secret_archi.gif/>';
                            }                                                  
                            ECHO '<tr bgcolor="'.$bgcolor.'"><td width="20%">'.$grade.'</td><td>' . $config['archez']['achievements'][$row['key'] - 20000] . '<span style="float:right;">'.$secret.'</span></td></tr>';                           
                            $number_of_rows++;
                        }
                    }
                }
                
                ECHO '</table> </div>';

 

Parte 2

Spoiler

$achievements = $SQL->query('SELECT `key`, `player_id` FROM `player_storage` WHERE `key` LIKE "200%" AND `player_id` = ' . $player->getId())->fetchAll();
                
                ECHO '<div class="well"> <h2> Account Achievements  </h2> 
                <table border=0 cellspacing="1" cellpadding="4" width=100%>';
                
                if(!$achievements)
                {
                    ECHO '<tr> <td> There are no achievements set to be displayed for this character.</td> </tr>';
                }
                else
                {
                    $number_of_rows = 0;                  
                    foreach($achievements as $row)
                    {
                        if(!array_key_exists(($row['key'] - 19999 ), $achievements))
                        {
                            if($row['key'] - 20000 <= 54) { $grade = '<image src="../layouts/img/star_archi.gif"/>'; }
                            elseif($row['key'] - 20000 >= 55) { $grade = '<image src="../layouts/img/star_archi.gif"/> <image src="../layouts/img/star_archi.gif"/>'; }
                            
                            $secret = false;                           
                            if(in_array(($row['key'] - 20000), $config['archez']['secret']))
                            {
                                $secret = '<image src="../layouts/img/secret_archi.gif/>';
                            }                                                  
                            ECHO '<tr bgcolor="'.$bgcolor.'"><td width="20%">'.$grade.'</td><td>' . $config['archez']['achievements'][$row['key'] - 20000] . '<span style="float:right;">'.$secret.'</span></td></tr>';                           
                            $number_of_rows++;
                        }
                    }
                }
                
                ECHO '</table> </div>';

 

Por gentileza, me ajudem a arrumar esse erro. Obrigado 

Editado por Akyles (veja o histórico de edições)

  • Respostas 6
  • Visualizações 579
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Amigo,você tem que ter conhecimento de programação..qual alteração você precisa?

Contribuições:
 

=> Distribuições/Servidores

  1. [8.60] The Forgotten Server 1.3 (COMPILADO WIN x64)

 

=> Scripts/Códigos/Tutoriais

  1. Pokemon pescado aparece em volta do seu pokemon
  2. [Gesior]Dobrar pontos PagSeguro a partir de x valor doado

 

 Gostou de alguma contribuição? Rep +?

Postado
3 horas atrás, Akyles disse:

Conhecimento de programação eu tenho, acontece que não está aparecendo a achievement mesmo o player tendo a storage.

 

Qual o erro que da? tira um print

Contribuições:
 

=> Distribuições/Servidores

  1. [8.60] The Forgotten Server 1.3 (COMPILADO WIN x64)

 

=> Scripts/Códigos/Tutoriais

  1. Pokemon pescado aparece em volta do seu pokemon
  2. [Gesior]Dobrar pontos PagSeguro a partir de x valor doado

 

 Gostou de alguma contribuição? Rep +?

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo