Ir para conteúdo

Featured Replies

Postado

Gostaria que alguem resolvese meu problema..

meu ot ja tem o !rank level, !rank skills

eu queria acrescentar o !rank frag no meu otserver

tipo uma lista de quem mata mais saca?

 

 

 

 

function onAdvance(cid, skill, oldLevel, newLevel)

    if skill == 0 then
        setGlobalStorageValue(74666, getGlobalStorageValue(74666) == -1 and "" or getGlobalStorageValue(74666))
        addRankPlayer("fist", getCreatureName(cid), newLevel)
    elseif skill == 1 then
        setGlobalStorageValue(74667, getGlobalStorageValue(74667) == -1 and "" or getGlobalStorageValue(74667))
        addRankPlayer("club", getCreatureName(cid), newLevel)
    elseif skill == 2 then
        setGlobalStorageValue(74668, getGlobalStorageValue(74668) == -1 and "" or getGlobalStorageValue(74668))
        addRankPlayer("sword", getCreatureName(cid), newLevel)
    elseif skill == 3 then
        setGlobalStorageValue(74669, getGlobalStorageValue(74669) == -1 and "" or getGlobalStorageValue(74669))
        addRankPlayer("axe", getCreatureName(cid), newLevel)
    elseif skill == 4 then
        setGlobalStorageValue(74670, getGlobalStorageValue(74670) == -1 and "" or getGlobalStorageValue(74670))
        addRankPlayer("distance", getCreatureName(cid), newLevel)
    elseif skill == 5 then
        setGlobalStorageValue(74671, getGlobalStorageValue(74671) == -1 and "" or getGlobalStorageValue(74671))
        addRankPlayer("shielding", getCreatureName(cid), newLevel)
    elseif skill == 6 then
        setGlobalStorageValue(74672, getGlobalStorageValue(74672) == -1 and "" or getGlobalStorageValue(74672))
        addRankPlayer("fishing", getCreatureName(cid), newLevel)
    elseif skill == 7 then
        setGlobalStorageValue(74673, getGlobalStorageValue(74673) == -1 and "" or getGlobalStorageValue(74673))
        addRankPlayer("magic", getCreatureName(cid), newLevel)
    elseif skill == 8 then
        setGlobalStorageValue(74674, getGlobalStorageValue(74674) == -1 and "" or getGlobalStorageValue(74674))
        addRankPlayer("level", getCreatureName(cid), newLevel)
    end   
return TRUE
end

 

 

 

meu script é esse

 

 

 

Postado

Pegue um arquivo.lua renomeie para topkillers

Mostrar conteúdo oculto

 

Em talkactions.xml coloque:

 

Mostrar conteúdo oculto

 

Caso esse a cima não funcione tente:

 

Mostrar conteúdo oculto

 

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

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

Informação Importante

Confirmação de Termo