Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''party''.



Mais opções de pesquisa

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • A Cidade OTBR
    • OTServ Brasil
    • Atendimento
    • Taverna
  • Projetos Open Source
    • Canary
    • OTServBR-Global
    • Mehah OTClient
    • MyAAC
  • OpenTibia
    • Notícias e Discussões
    • Suporte - Dúvidas, Bugs, Erros
    • Downloads
    • Tutoriais
    • Show-Off
  • Outros
    • Design

Encontrado 1 registro

  1. Scripts e Como Instalar: 1. Abra o arquivo creaturescripts.xml, localizado em data/creaturescripts e adicione as seguintes tags abaixo: <event type="attack" name="Apt" event="script" value="Apt.lua"/> <event type="cast" name="Bpt" event="script" value="Bpt.lua"/> <event type="areacombat" name="Cpt" event="script" value="Cpt.lua"/> <event type="combat" name="Dpt" event="script" value="Dpt.lua"/> 2. Abra o arquivo login.lua, localizado em data/creaturescripts/scripts. Adicione as seguintes funções abaixo antes de return true. registerCreatureEvent(cid, "Apt") registerCreatureEvent(cid, "Bpt") registerCreatureEvent(cid, "Cpt") registerCreatureEvent(cid, "Dpt") 3. Agora crie quatro arquivos de nomes Apt, Bpt, Cpt, Dpt e de extensões LUA. Cole os conteúdos, respectivamente, em cada um deles: function onAttack(cid, target) if isPlayer(cid) and isInParty(cid) and getPlayerParty(cid) == getPlayerParty(target) then doPlayerSendCancel(cid, "You can not attack your party members") return false else return true end end function onCast(cid, target) if isPlayer(cid) and isInParty(cid) and getPlayerParty(cid) == getPlayerParty(target) then doPlayerSendCancel(cid, "You can not use spells or runes in your party members") return false else return true end end function onAreaCombat(cid, tileItem, tilePosition, isAggressive) if isPlayer(cid) and isInParty(cid) and getPlayerParty(cid) == getPlayerParty(tileItem) then return false else return true end end function onCombat(cid, target) if isPlayer(cid) and isInParty(cid) and getPlayerParty(cid) == getPlayerParty(target) then return false else return true end end
×