Ir para conteúdo
US
Blazera 8.60
blazera.net
SOBRE O BLAZERA
Um fresh start em um servidor 8.6 clássico, com real map, focado na experiência raiz do Tibia. | Classic Real Map • Fresh Start • Client 8.6 • Old School Gameplay • Active Community
Inicia em: --
Participar

Alexandre Fernandes

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    Alexandre Fernandes deu reputação a Vodkart em (Resolvido) [Pedido] look rep   
    troca aquela talk por essa:


    function onSay(cid, words, param, channel) if (param == "") then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Você possui "..getPlayerStorageValue(cid, 102086).." pontos de Reputação.") elseif param == "rank" then local max = 10 local str ="" str = "--[Reputation Rank]--\n\n" local query = db.getResult("SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = 102086 ORDER BY cast(value as INTEGER) DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > max then break end str = str .. "\n " .. k .. ". "..getPlayerNameByGUID(query:getDataString("player_id")).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end doPlayerPopupFYI(cid, str) end return true end


    max é o limite de player que vai aparecer no rank
    se você colocar para aparecer 50 vai retornar aquela mensagem de novo ¬¬



    e para aparecer no rank é que nem os outros, o cara precisa relogar para salvar o character ou dar salve server, onde todos os player do ot são salvos.
  2. Gostei
    Alexandre Fernandes deu reputação a Vodkart em (Resolvido) [Pedido] look rep   
    nome do seu script.lua

    function getReps(cid) return getPlayerStorageValue(cid,102086) < 0 and 0 or getPlayerStorageValue(cid,102086) end function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n[Reps: " .. getReps(thing.uid) .."]") end return true end creaturescript.xml <event type="look" name="showRep" event="script" value="nome do seu script.lua"/> creaturescript/script/login.lua adc: registerCreatureEvent(cid, "showRep")

    --
    sobre esse erro: too huge message.

    é porque a mensagem é grande demais.

Informação Importante

Confirmação de Termo