Ir para conteúdo

Minhas 2 Spells Principais Para Ot 8.1 :d


Bruno5

Posts Recomendados

Exori Gran Frigo

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, 52)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.0, -150, -0.8, -150)

 

local arr = {

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

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

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

{1, 1, 1, 3, 1, 1, 1},

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

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

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

}

 

local area = createCombatArea(arr)

setCombatArea(combat, area)

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

 

 

 

Archanus Jester*

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_LIFEDRAIN)

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_CAKE)

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -100.1, 0, -200.5, 0)

 

local combatDist = createCombatObject()

setCombatParam(combatDist, COMBAT_PARAM_TYPE, COMBAT_LIFEDRAIN)

setCombatParam(combatDist, COMBAT_PARAM_EFFECT, CONST_ME_CAKE)

setCombatParam(combatDist, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_CAKE)

setCombatFormula(combatDist, COMBAT_FORMULA_LEVELMAGIC, -100.1, 0, -200.5, 0)

 

 

 

function onCastSpell(cid, var)

local target = getCreatureTarget(cid)

if(target ~= 0) then

return doCombat(cid, combatDist, numberToVariant(target))

end

return doCombat(cid, combat, var)

end

 

Depois No spells.xml:

<instant name="infinite Winter" words="exori gran frigo" lvl="50" maglv="40" mana="1150" soul="0" exhaustion="1" prem="1" enabled="1" script="exori gran frigo.lua"><vocation id="2"/><vocation id="6"/></instant>

 

<instant name="GMs Joke" words="archanus jester" direction="1" lvl="50" maglv="40" manapercent="200" soul="0" exhaustion="1" prem="1" enabled="1" script="archanus jester.lua"><vocation id="2"/><vocation id="6"/></instant>
**

 

 

*= No meu ot eu deixo elas apenas para os gms como uma magia pra matar qualquer coisa na hora mais se quiserem por para os players aconselho diminuir o dano dela ;)

**= Manapercent="200" com isso nenhum player conseguirá utilizar a magia apenas os gm's

 

Jaja Posto SS delas...

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

×
×
  • Criar Novo...