Ir para conteúdo
Banner com Efeitos

softanon

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    softanon deu reputação a zipter98 em (Resolvido)Erro de Char e pokemons no creaturescripts   
    [.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).uid > 0 then         x = icons[getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke")]     end     if getPlayerSlotItem(cid, 3).uid > 0 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 E, por último:
    acima de:
    local pokeball = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "ball") coloque:
    if getPlayerSlotItem(cid, 8).uid > 0 then depois, abaixo de:
        elseif pokeball == "Icone" and mortano == "yes" then         doTransformItem(getPlayerSlotItem(cid, 8).uid, 12831)         doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "Icone", "no")     end coloque: end ficando:    elseif pokeball == "Icone" and mortano == "yes" then         doTransformItem(getPlayerSlotItem(cid, 8).uid, 12831)         doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "Icone", "no")     end end Se o erro ao logar permanecer, procure pelo código da função onPokeHealthChange(cid).
  2. Gostei
    softanon deu reputação a zipter98 em (Resolvido)Erro de Char e pokemons no creaturescripts   
    Envie seu login.lua (data/creaturescripts/scripts) e seu IconSys.lua (data/lib).
    PS: Em spoiler, se possível.

Informação Importante

Confirmação de Termo