Ir para conteúdo

Featured Replies

  • Respostas 7
  • Visualizações 705
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • [.spoiler]mensagem[./spoiler] sem os pontos. Mas enfim, baixarei os arquivos. EDIT: em IconSys.lua, troque: local x = icons[getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")] local y = icon

  • Envie seu login.lua (data/creaturescripts/scripts) e seu IconSys.lua (data/lib). PS: Em spoiler, se possível.

Posted Images

Postado
  • Autor
  • Solução

 

[.spoiler]mensagem[./spoiler]

sem os pontos.

Mas enfim, baixarei os arquivos.

EDIT: em IconSys.lua, troque:

local x = icons[getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")]
local y = icons[getItemAttribute(getPlayerSlotItem(cid, 3).uid, "poke")]
por:
   local x, y = false, false
    if getPlayerSlotItem(cid, 8) then
        x = icons[getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")]
    end
    if getPlayerSlotItem(cid, 3) then
        y = icons[getItemAttribute(getPlayerSlotItem(cid, 3).uid, "poke")]
    end
Troque, também:
   local balls = getItemsInContainerById(bp.uid, 12831) -- Shiny Dark
    if #balls >= 1 then 
        for _, ball in pairs (balls) do
            local x = icons[getItemAttribute(ball, "poke")]
            doTransformItem(ball, x.off)
            doItemSetAttribute(ball, "ball", "Icone")
            doItemSetAttribute(ball, "morta", "yes")
            doItemSetAttribute(ball, "Icone", "yes")
        end 
    end
por:
   local balls = getItemsInContainerById(bp.uid, 12831) -- Shiny Dark
    if #balls >= 1 then 
        for _, ball in pairs (balls) do
            local x = icons[getItemAttribute(ball, "poke")]
            if x and x.off then
                doTransformItem(ball, x.off)
                doItemSetAttribute(ball, "ball", "Icone")
                doItemSetAttribute(ball, "morta", "yes")
                doItemSetAttribute(ball, "Icone", "yes")
            end
        end 
    end

Se o erro ao logar permanecer, procure pelo código da função onPokeHealthChange(cid).

 

não achei o onPokeHealthChange(cid).  nem no system nem no creature nem no configuration

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