Ir para conteúdo
  • Cadastre-se

Posts Recomendados

E
lement
A
ttack

Nome:
Element Attack

Nome do Autor:
victormorin / Victor Morin / yogo

Versão Testada:
8.62

Informações Adicionais:
Magia foi feita para servidores com XP mais alta.

Fóruns Autorizados a postar:
WC - Tibia King - OTBR

V
á em
Data > Spells > Attack
, copie qualquer arquivo
.LUA
e renomeio como
"element attack"
nele adicione isso:

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC,-50 ,1.3 ,-40 ,0.3 )

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC,-50 ,1.3 ,-40 ,0.3 )

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC,-50 ,1.3 ,-40 ,0.3 )

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC,-50 ,1.3 ,-40 ,0.3 )

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC,-50 ,1.3 ,-40 ,0.3 )

local arr1= {

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,0,1,2,1,0,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

}

local arr2= {

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,0,1,2,1,0,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,0,0,1,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

}

local arr3= {

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,1,1,2,1,1,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

}

local arr4= {

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,1,0,0,0,1,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,0,0,2,0,0,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,1,0,0,0,1,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

}

local arr5= {

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,1,0,1,0,1,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,1,1,2,1,1,0,0,0},

{0,0,0,0,1,1,1,0,0,0,0},

{0,0,0,1,0,1,0,1,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

{0,0,0,0,0,0,0,0,0,0,0},

}

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

local area4 = createCombatArea(arr4)

local area5 = createCombatArea(arr5)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

setCombatArea(combat5, area5)

local function onCastSpell1(parameters)

doCombat(parameters.cid, parameters.combat1, parameters.var)

end

local function onCastSpell2(parameters)

doCombat(parameters.cid, parameters.combat2, parameters.var)

end

local function onCastSpell3(parameters)

doCombat(parameters.cid, parameters.combat3, parameters.var)

end

local function onCastSpell4(parameters)

doCombat(parameters.cid, parameters.combat4, parameters.var)

end

local function onCastSpell5(parameters)

doCombat(parameters.cid, parameters.combat5, parameters.var)

end

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 450, parameters)

addEvent(onCastSpell3, 750, parameters)

addEvent(onCastSpell4, 990, parameters)

addEvent(onCastSpell5, 1190, parameters)

end

V
á em
Data > Spells > Spells.XML
, lá adicione isso:

<instant name="Element Attack" words="Exevo Element" lvl="200" mana="3600

" prem="0" range="3" blockwalls="1" exhaustion="0" needlearn="0" script="attack/element attack.lua">

<vocation name="Sorcerer"/>

<vocation name="Master Sorcerer"/>

<vocation name="Druid"/>

<vocation name="Elder Druid"/>

</instant>

A
gora salve e feche, agora é só abrir seu servidor e usa-lá.

[*]
Vídeo
para demonstração:

Bom, é isso..

Abraços.

I'm YogoTIBIA

mizukage_by_matheussos-d3gqrrs.png

Comunicado:

Nos meus tutorias, eu os copio do fórum [censurado], mas eles são da minha autoria mas as vezes aparece um ou vários links indo para o fórum, vou procurar retira-los, me desculpe pelo incomodo.

Link para o post
Compartilhar em outros sites

Sim, fui eu que fiz.

Spell não laga o servidor.

Abraços.

I'm YogoTIBIA

mizukage_by_matheussos-d3gqrrs.png

Comunicado:

Nos meus tutorias, eu os copio do fórum [censurado], mas eles são da minha autoria mas as vezes aparece um ou vários links indo para o fórum, vou procurar retira-los, me desculpe pelo incomodo.

Link para o post
Compartilhar em outros sites

#Luiz

Ok, valeu pela dica.

Abraços.

I'm YogoTIBIA

mizukage_by_matheussos-d3gqrrs.png

Comunicado:

Nos meus tutorias, eu os copio do fórum [censurado], mas eles são da minha autoria mas as vezes aparece um ou vários links indo para o fórum, vou procurar retira-los, me desculpe pelo incomodo.

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo