Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''treiners''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • 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

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

Encontrado 1 registro

  1. Vou tentar explica o melhor possivel, vamos lá. abra Data/movements/scripts Criem um novo arquivo treiners.lua e coloquem isso dentro function onStepIn(cid, item, pos) local charPos = getCreaturePosition(cid) local monkOne local monkTwo if(item.actionid == 9000) then monkOne = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z} monkTwo = {x = charPos.x + 1, y = charPos.y - 2, z = charPos.z} elseif(item.actionid == 9001) then monkOne = {x = charPos.x - 1, y = charPos.y + 2, z = charPos.z} monkTwo = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z} elseif(item.actionid == 9002) then monkOne = {x = charPos.x - 1, y = charPos.y - 2, z = charPos.z} monkTwo = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z} elseif(item.actionid == 9003) then monkOne = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z} monkTwo = {x = charPos.x + 1, y = charPos.y + 2, z = charPos.z} elseif(item.actionid == 9004) then monkOne = {x = charPos.x + 2, y = charPos.y - 1, z = charPos.z} monkTwo = {x = charPos.x + 5, y = charPos.y - 1, z = charPos.z} else return true end doSummonCreature("Alvo", monkOne) doSummonCreature("Alvo", monkTwo) return true end function onStepOut(cid, item, pos) local charPos = getCreaturePosition(cid) local monkOne local monkTwo if(item.actionid == 9000) then monkOne = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z} monkTwo = {x = charPos.x + 1, y = charPos.y - 2, z = charPos.z} elseif(item.actionid == 9001) then monkOne = {x = charPos.x - 1, y = charPos.y + 2, z = charPos.z} monkTwo = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z} elseif(item.actionid == 9002) then monkOne = {x = charPos.x - 1, y = charPos.y - 2, z = charPos.z} monkTwo = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z} elseif(item.actionid == 9003) then monkOne = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z} monkTwo = {x = charPos.x + 1, y = charPos.y + 2, z = charPos.z} elseif(item.actionid == 9004) then monkOne = {x = charPos.x + 3, y = charPos.y - 1, z = charPos.z} monkTwo = {x = charPos.x + 6, y = charPos.y + 0, z = charPos.z} else return true end doRemoveCreature(getThingfromPos({x = monkOne.x, y = monkOne.y, z = monkOne.z, stackpos = 253}).uid) doRemoveCreature(getThingfromPos({x = monkTwo.x, y = monkTwo.y, z = monkTwo.z, stackpos = 253}).uid) doSendMagicEffect(monkOne, 3) doSendMagicEffect(monkTwo, 3) return true end Agora vá em Data/movements/movements.lua e coloquem isso dentro <movevent type="StepIn" actionid="9000" event="script" value="treiners.lua"/> <movevent type="StepOut" actionid="9000" event="script" value="treiners.lua"/> <movevent type="StepIn" actionid="9001" event="script" value="treiners.lua"/> <movevent type="StepOut" actionid="9001" event="script" value="treiners.lua"/> <movevent type="StepIn" actionid="9002" event="script" value="treiners.lua"/> <movevent type="StepOut" actionid="9002" event="script" value="treiners.lua"/> <movevent type="StepIn" actionid="9003" event="script" value="treiners.lua"/> <movevent type="StepOut" actionid="9003" event="script" value="treiners.lua"/> <movevent type="StepIn" actionid="9004" event="script" value="treinersxd.lua"/> <movevent type="StepOut" actionid="9004" event="script" value="treinersxd.lua"/> Agora temos que criar um monster Vá em Data/monster/demon bosses Copie um arquivo qualquer renomei, coloque Alvo abra o arquivo em bloco de notas apague o que tem lá e coloque isso dentro <?xml version="1.0" encoding="UTF-8"?> <monster name="Alvo" nameDescription="a alvo" race="blood" experience="200" speed="0" manacost="600"> <health now="999999" max="999999"/> <look typeex="5787" corpse="6080"/> <targetchange interval="5000" chance="8"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="1"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="1"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" min="-1" max="-1"/> </attacks> <defenses armor="20" defense="22"> <defense name="healing" interval="1000" chance="20" min="999999" max="999999"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="speed" interval="1000" chance="10" speedchange="300" duration="3000"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <elements> <element holyPercent="50"/> <element deathPercent="50"/> <element physicalPercent="-15"/> </elements> <immunities> <immunity invisible="1"/> </immunities> <loot> <item id="2148" countmax="20" chance="100000"/><!-- gold coin --> <item id="1949" chance="10000"/><!-- scroll --> <item id="2467" chance="10000"/><!-- leather armor --> <item id="2642" chance="6666"/><!-- sandals --> <item id="2193" chance="1200"/><!-- ankh --> <item id="1987" chance="100000"><!-- bag --> <inside> <item id="2044" chance="6666"/><!-- lamp --> <item id="2689" countmax="3" chance="20000"/><!-- bread --> <item id="2401" chance="3333"/><!-- staff --> <item id="2166" chance="1428"/><!-- power ring --> </inside> </item> </loot> </monster> Agora vá em Data/monster/monsters Abra em bloco de notas procure onde ta escrito isso <!-- Demon Bosses --> <monster name="Bazir" file="Demon Bosses/Bazir.xml"/> <monster name="Infernatil" file="Demon Bosses/Infernatil.xml"/> <monster name="Zoralurk" file="Demon Bosses/zoralurk.xml"/> <monster name="Apocalypse" file="Demon bosses/apocalypse.xml"/> <monster name="Ghazbaran" file="Demon bosses/ghazbaran.xml"/> <monster name="Morgaroth" file="Demon bosses/morgaroth.xml"/> <monster name="Orshabaal" file="Demon bosses/orshabaal.xml"/> E coloque isso entra algum ai <monster name="Alvo" file="Demon Bosses/Alvo.xml"/> Feito Isso Abra o Remere's Map Editor e coloque o actionid onde o seu char vai ficar atacando o treiner. Pronto
×
×
  • Criar Novo...