Ir para conteúdo
Banner com Efeitos

XxhadesxX

Membro
  • Registro em

  • Última visita

Tudo que XxhadesxX postou

  1. f(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $soulstorage = 15010; $soulss = $SQL->query('SELECT value FROM player_storage WHERE player_id = '.$player->getId().' AND key = '.$soulstorage.'')->fetch(); $main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD><b>Almacenamiento:</b></TD><TD>'.$soulss['value'].'</TD></TR>';
  2. Para que o monstro "sangre" ouro e platinum quando atacado, basta adicionar um evento de ataque similar ao que eu te apresentei na resposta anterior. Por exemplo: -- Cria a função do evento de ataque do monstro function onAttack(creature, target) if creature:getName() == "Treasure Bandit" then -- Gera um número aleatório entre 1 e 100 local chance = randomNumber(1, 100) -- Se a chance for 97 ou menor, o monstro "sangra" ouro if chance <= 97 then local goldAmount = randomNumber(0, 20) creature:doSendTextMessage(MESSAGE_EVENT_ADVANCE, "O Treasure Bandit perdeu " .. goldAmount .. " ouro.") -- Remove o ouro do monstro e adiciona ao jogador creature:removeMoney(goldAmount) target:addMoney(goldAmount) -- Se a chance for 3 ou maior, o monstro "sangra" platinum elseif chance >= 3 then local platinumAmount = randomNumber(0, 2) creature:doSendTextMessage(MESSAGE_EVENT_ADVANCE, "O Treasure Bandit perdeu " .. platinumAmount .. " platinum.") -- Remove o platinum do monstro e adiciona ao jogador creature:removeMoney(platinumAmount * 100) target:addMoney(platinumAmount * 100) end end end Para registrar os eventos de ataque e tempo em tempo do monstro, basta adicionar a seguinte linha de código no final do arquivo de configuração do monstro: function onLogin(creature) creature:registerEvent("TreasureBanditAttack") creature:registerEvent("TreasureBanditThink") end Espero que isso ajude.
  3. test: function onUse(cid, item, fromPosition, itemEx, toPosition) gems = { id = {2156, 2155, 2158, 2156, 2156, 2155, 2158, 2156}, } gem = gems.id[getPlayerVocation(cid)] if item.itemid == gem then doUseGem(cid, item, getPlayerVocation(cid)) end return TRUE end
  4. How are you friend, thank you very much for this super guide. Edit: solved ty
  5. muito obrigado amigo obrigado.
  6. XxhadesxX postou uma resposta no tópico em Outros Clients
    você coloca o cliente 12+ link que você está usando?
  7. XxhadesxX postou uma resposta no tópico em Ferramentas OpenTibia
    I am using the provided on the first topic of this forum. Download Versão até 10.91 rev 250 https://mega.nz/#!z9910YbL!9cHUvoYlrFiwshsVCe-JEKKzqrwp-w7ZsCqhFiAtBWE
  8. XxhadesxX postou uma resposta no tópico em Ferramentas OpenTibia
    I download the version 10.91 and me the following error occurs. Any solution? My computer Edit: finally a step forward with the installation of the library vcruntime140.dll. but now I'm in a hurry stronger. Bug Any solution?
  9. XxhadesxX postou uma resposta no tópico em Ferramentas OpenTibia
    update v1.0 please
  10. please help me Error: [18/5/2015 3:5:5] [Error - CreatureScript Interface] [18/5/2015 3:5:5] data/creaturescripts/scripts/antibot.lua:onThink [18/5/2015 3:5:5] Description: [18/5/2015 3:5:5] data/creaturescripts/scripts/antibot.lua:39: attempt to call global 'doPlayerPopupFYI' (a nil value) [18/5/2015 3:5:5] stack traceback: [18/5/2015 3:5:5] data/creaturescripts/scripts/antibot.lua:39: in function <data/creaturescripts/scripts/antibot.lua:11>
  11. good
  12. tibiaAPI for 10.52?

Informação Importante

Confirmação de Termo