Jump to content

Search the Community

Showing results for tags 'anti-trap'.

  • 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 1 result

  1. ​Sabe quando um player te trapa e não tem escapatória, Aqui a solução . Ao usar x item no Player Você troca de Posição com Ele . ​Claro que também não pode dar moleza pra quem foi traped . Você só pode usar o item a cada X minutos. E você só pode usar o item se não tiver com Skull. vamos lá .. em data / actions / scripts, crie um arquivo.lua e cole isso dentro : function onUse(cid, item, fromPosition, itemEx, toPosition) local time = 1 -- tempo por minuto local storage = 1961 -- storage local pos = getCreaturePosition(cid) local pos2 = getCreaturePosition(itemEx.uid) if isPlayer(itemEx.uid) then if getDistanceBetween(pos, pos2) == 1 then if getPlayerStorageValue(cid, storage) - os.time() <= 0 then if getCreatureSkullType(cid) == SKULL_NONE then doTeleportThing(cid, pos2) doTeleportThing(itemEx.uid, pos) doSendMagicEffect(pos, 4) doSendMagicEffect(pos2, 4) setPlayerStorageValue(cid, storage, os.time()+time*1*60) else doPlayerSendCancel(cid, "Você está com Skull.") end else doPlayerSendCancel(cid, "Você só pode usar esse item denovo a "..time.." Minutos.") end else doPlayerSendCancel(cid, "Você está muito longe do jogador.") end else doPlayerSendCancel(cid, "Você só pode usar este item em Players.") end return TRUE end e em Actions.xml coloque a tag : <action itemid="IDdoItem" script="NomeDoArquivo.lua"/>
×
×
  • Create New...