Jump to content

Search the Community

Showing results for tags 'held'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Sou

Found 9 results

  1. Eae galera blz? Bom é o seguinte estou tentando usar um script postado aqui no forum, só q esta dando um erro na minha distro. o script é esse: --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- local ball_slot, price = 12355, 1000 --ID do slot em que a pokebola fica; Preço p/ remover o held item. function onUse(cid, item, fromPosition, itemEx, toPosition) local ball_pos = toPosition ball_pos.x = ball_pos.x + 1 local ball_slot = getTileItemById(ball_pos, ball_slot).uid local pokeball = getContainerItem(ball_slot, 0).uid if pokeball <= 0 or not getItemAttribute(pokeball, "poke") then doPlayerSendCancel(cid, "You must put on the pokeball slot a valid pokeball.") return true end local held_item = {} for itemid, held_info in pairs(heldTable) do local attr = getItemAttribute(pokeball, held_info.attribute) if attr and attr == held_info.ident then table.insert(held_item, itemid) end end if #held_item == 0 then doPlayerSendCancel(cid, "Your pokemon does not have a held item.") return true elseif getPlayerMoney(cid) < price then doPlayerSendCancel(cid, "You need more "..price - getPlayerMoney(cid).." gold to remove your pokemon's held item(s).") return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You removed your pokeball's held item(s) for the price of "..price.." gold.") doPlayerRemoveMoney(cid, price) for i = 1, #held_item do doPlayerAddItem(cid, held_item, 1) doItemSetAttribute(pokeball, heldTable[held_item].attribute, nil) end return true end ------------------------------------------------------------------------------------------------------------------------------------------- OBS:Tentei por em spoiler mas n consegui, me desculpem pela má organização xD
  2. Sem bla bla bla, mimimi, nhéco nhéco... to sem tempo para tirar print dos itens no OBJECT BUILD então segue print da pasta e façam bom aproveitos meus amigos... Held Itens.rar Ah... e o scan Held Itens.rar
  3. Ta aparecendo um erro na distro, assim que eu ver novamente eu tiro print e posto o erro, mas até lá, o erro é no goback e some functions, ele indica uma linha no some functions: 1763 e diz algo como: Creature Not a Found Na hora de checar a vida maxima do pokemon e a vida atual, para caso a vida atual seja menor que a maxima e esteja fora de batalha, o held fica curando o pokemon, ta funcionando, mas da esse erro na distro, estranho que eu testei, coloque regen em 1 pokemon e esperei ficar fora de combate e ficar regenerando, o erro não apareceu na distro, eu testei com char normal e com adm, então não sei exatamente quando ocorre o erro, mas tem algo relacionado ao held regeneration, pq essa linha 1763 é sobre ele (eu acho) a linha 1763 do some function é essa: if getCreatureHealth(sid) < getCreatureMaxHealth(sid) then ... if isPlayer(cid) and #getCreatureSummons(cid) > 0 then local Tier = getItemAttribute(ball.uid, "heldy") if Tier and Tier > 0 and Tier < 8 then if not getCreatureCondition(cid, CONDITION_INFIGHT) then if getCreatureHealth(sid) < getCreatureMaxHealth(sid) then -- Linha 1763 (indicada no erro) addEvent(function() doCreatureAddHealth(sid,Tiers[Tier].bonus) doSendAnimatedText(getThingPos(sid), "+ "..Tiers[Tier].bonus, 30) end, 0) end addEvent(doRegenerateWithY, 1000, cid, sid) else addEvent(doRegenerateWithY, 1000, cid, sid) end end end end end
  4. estou tentando colocar Held item no meu serve porem esta dando um error no meu look.lua e eu não to conseguindo arrumar e.e look.lua error na distro ixi pode fexar o topico conseguir arrumar o held item jah
  5. preciso de ajuda nessa função ela eh do held item de regen porem ele heala mesmo estando de battle e eu queria que so curasse quando estivesse sem battle e.e
  6. Galera queria saber se tem algum tutorial de como por held itens ou alguém pode me ajudar com isso. Valendo rep.
  7. Olá Glr do Xtibia,primeiro de tudo se não estiver na area correta por favor,movam para a area correta ... Eu gostaria de pedir a vcs,o sistema de Held Items,igual do PxG ... Qualquer coisa mandem PM,obg !
  8. ola, gostaria de um script tipo o held do pxg. um item que fica gravado na pokeball o atributo, e se usar a pokeball voce recebe o bonus, pode ser de ataque, defesa, crit, luck'drop', exp rate, etc, estou tentando fazer o que regenera a vida do poke, alguem pode ajudar?
×
×
  • Create New...