Ir para conteúdo

Minha Primeira Magia 8.6


kevincriss

Posts Recomendados

Aí galera 1 magia e tbm 1 post por favor comentem se acharem algun bug falem

 

1° Va na pasta do ot data/spells/scripts Crie 1 arquivo.lua com nome de bykevin e colem isso la:

 

 

--Created with Peegarapa--

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 17)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 37)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 19)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 18)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 21)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_FIREAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 22)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 23)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 24)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, 29)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, 35)

setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -20, -7.0, -21, -7.7)

 

arr1 = {

{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, 0, 1, 1, 0, 0, 0, 0},

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

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

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

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

{0, 0, 0, 0, 0, 0, 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},

}

 

 

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,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, 1, 1, 1, 0},

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

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

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

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

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

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

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

{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 area5 = createCombatArea(arr5)

local area6 = createCombatArea(arr6)

local area7 = createCombatArea(arr7)

local area8 = createCombatArea(arr8)

local area9 = createCombatArea(arr9)

local area10 = createCombatArea(arr10)

 

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat5, area5)

setCombatArea(combat6, area6)

setCombatArea(combat7, area7)

setCombatArea(combat8, area8)

setCombatArea(combat9, area9)

setCombatArea(combat10, area10)

 

 

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

 

local function onCastSpell6(parameters)

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

end

 

local function onCastSpell7(parameters)

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

end

 

local function onCastSpell8(parameters)

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

end

 

local function onCastSpell9(parameters)

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

end

 

local function onCastSpell10(parameters)

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

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10 }

addEvent(onCastSpell1, 500, parameters)

addEvent(onCastSpell2, 500, parameters)

addEvent(onCastSpell3, 500, parameters)

addEvent(onCastSpell4, 500, parameters)

addEvent(onCastSpell5, 500, parameters)

addEvent(onCastSpell6, 900, parameters)

addEvent(onCastSpell7, 1200, parameters)

addEvent(onCastSpell8, 1500, parameters)

addEvent(onCastSpell9, 1800, parameters)

addEvent(onCastSpell10, 2100, parameters)

 

return TRUE

end

 

 

dps va na spells.xml e cole isso la

 

 

</instant>

<instant name="bykevin" words="bykevin" lvl="500" mana="100" prem="1" range="10" blockwalls="1" exhaustion="800" needlearn="0" event="script" value="bykevin.lua">

<vocation name="Elder Druid"/>

<vocation name="Master Sorcerer"/>

</instant>

 

 

 

veja 1 video da magia

 

vlw ae glr

 

AI eu criei pro meu ot q era exp auto , se kiseren abaichar attack e n solberen so falar , tava sem ideia pro nome kk , pode coloca oq vc kiseren

Editado por Arcantus
Link para o comentário
Compartilhar em outros sites

cara, faz seguinte, copia o script, vai ali em cima , aonde tem pra escolher a cor da letra, embaixo tem um balaozinha de fala (bege), clica, ai vai fica em quote, se quiser tambem, lá em cima, em "Other Styles" , bota a quote , em Spoiler tambem , mas a quote bota sim porque ta tenso :/

@tópico

gostei da magia :), parei com ots, se não botava .

Link para o comentário
Compartilhar em outros sites

Hey 1 post n entendo mt bem

como faço quote?

 

como q fas quote?

 

eu postei errado mas foi eu q fis sim

 

 

 

@@@@ ARCANTUS

 

Para fazer quote basta usar o código abaixo:

[quote] para iniciar a quote

[/quote] para fechar a quote

 

E também é bom fazer o uso dos "spoilers", que funcionam para minimizar o Script e só exibir quando quiserem visualizá-lo...Confira abaixo.

 


[spoiler] inicia o spoiler

[/spoiler]

encerra o spoiler

 

Ex: de Spoiler

 

 

 

I'm not kinda hot, I'm sauna!

 

I sweat money and the bank is my shower...

 

And that pistol is my towel...

 

 

 

 

 

Espero que isto lhe ajude...

 

 

 

Abraços

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
×
×
  • Criar Novo...