Ir para conteúdo

3 Magias Para Seu Ot Server


Therenanzinhuu

Posts Recomendados

Fala Galera..

 

Aqui vou estrar trazendo a vocês tres magias criadas por mim que são usadas em meu ot server..

 

Bom Vamos Lá

 

Primeira Magia--Divine Epic Hur

 

Abra a pasta data/spells/script copie qualquer arquivo.lua e renomei-o para Paladin Hur, apague tudo que está dentro dele e adicione isso:

 

 

 

----Spell Made By Therenanzinhuu----
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 49)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -04, -2, -06, -2)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 28)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -05, -2, -06, -17)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -04, -2, -06, -5)

local arr1 = {
{0, 0, 1, 1, 1, 0 ,0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 3, 1, 0, 0},
}

local arr2 = {
{0, 0, 1, 1, 1, 0 ,0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 3, 1, 0, 0},
}

local arr3 = {
{0, 0, 1, 1, 1, 0 ,0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 3, 1, 0, 0},
}

local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)

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


function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3 }
addEvent(onCastSpell1, 1, parameters) 
addEvent(onCastSpell2, 2, parameters) 
addEvent(onCastSpell3, 3, parameters) 
return true
end

 

 

Após ter feito isso salve e feche.

Agora vá em Data/spells.xml e Adicione Isso:

 

        </instant>
<instant name="Epic Hur" words="Divine Epic Hur" lvl="30000" mana="10000" direction="1" exhaustion="1500" needlearn="0" script="attack/Paladin Hur.lua">
	<vocation name="Royal Paladin" />
	<vocation name="Slayer Paladin" />
</instant>

 

Ss da Magic a seguir:

 

divineepic.gif

 

Segunda Magia--Extreme Ice Invocation

 

Abra a pasta data/spells/script copie qualquer arquivo.lua e renomei-o para Extreme Invocation, apague tudo que está dentro dele e adicione isso:

 

----Spell Made By Therenanzinhuu----
local combat1 = createCombatObject()
local combat2 = createCombatObject()
local combat3 = createCombatObject()

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_ASSASSIN)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -04, -2, -06, -2)
local condition1 = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition1, CONDITION_PARAM_TICKS, 20000)
--setConditionParam(condition1, CONDITION_PARAM_SPEED, -500)
setConditionFormula(condition1, -07, 0, -08, 0)
setCombatCondition(combat1, condition1)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -05, -2, -06, -17)
local condition2 = createConditionObject(CONDITION_CURSED)
setConditionParam(condition2, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition2, 10, 2000, -250)
setCombatCondition(combat2, condition2)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -04, -2, -06, -5)
local condition3 = createConditionObject(CONDITION_DAZZLED)
setConditionParam(condition3, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition3, 10, 2000, -250)
setCombatCondition(combat3, condition3)

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

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

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


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)

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


function onCastSpell(cid, var) 
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3 }
addEvent(onCastSpell1, 1, parameters) 
addEvent(onCastSpell2, 2, parameters) 
addEvent(onCastSpell3, 3, parameters) 
return true
end

 

Enseguida Vá ate a pasta data/spells.xml e adicione isso:

 

	</instant>
<instant name="Extreme Invocation" words="Extreme Ice Invocation" lvl="1800" mana="2800" prem="1" selftarget="1" exhaustion="1000" needlearn="0" script="attack/Extreme Invocation.lua">
	<vocation name="Elder Druid"/>  
	<vocation name="Slayer Druid"/>
	<vocation name="Master Sorcerer"/>
	<vocation name="Slayer Sorcerer" />

 

Ss da magia abaixo:

 

extreme.gif

 

Terceira Magia--Fury Of The Gods:

 

Abra a pasta data/spells/script copie qualquer arquivo.lua e renomei-o para Fury of GODs, apague tudo que está dentro dele e adicione isso:

 

----Spell Made By Therenanzinhuu----
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 36)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -10, 11, -12, 13)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 37)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -10, 11, -12, 13)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 44)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -10, 11, -12, 13)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 50)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -10, 11, -12, 13)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 61)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -10, 11, -12, 13)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 17)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -10, 11, -12, 13)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 20)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -10, 11, -12, 13)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 40)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -10, 11, -12, 13)

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

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


local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end
local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, combat8, parameters.var)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 600, parameters)
addEvent(onCastSpell3, 800, parameters)
addEvent(onCastSpell4, 1000, parameters)
addEvent(onCastSpell5, 100, parameters)
addEvent(onCastSpell6, 600, parameters)
addEvent(onCastSpell7, 800, parameters)
addEvent(onCastSpell8, 1000, parameters)

return TRUE
end

 

Salve O Arquivo e feche

 

Agora vá ate a pasta data/spells.xml e adicione isso:

 

	</instant>
<instant name="Fury of GODs" words="Fury Of The Gods" lvl="300000" soul="0" exhaustion="2000" prem="1" selftarget="0" casterTargetOrDirection="0" needlearn="0" script="attack/Fury of GODs.lua">
	<vocation name="Slayer Knight"/>
	<vocation name="Slayer Druid"/>
	<vocation name="Slayer Paladin"/>
	<vocation name="Slayer Sorcerer"/>

 

Salve e Feche

 

Ss da Magia Abaixo:

 

furyh.gif

 

 

Creditos: 100% TheRenanzinhuu

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

achei um errinho , em alguns ots nao existe Slayer Druid

</instant>

<instant name="Extreme Invocation" words="Extreme Ice Invocation" lvl="1800" mana="2800" prem="1" selftarget="1" exhaustion="1000" needlearn="0" script="attack/Extreme Invocation.lua">

<vocation name="Elder Druid"/>

<vocation name="Slayer Druid"/>

<vocation name="Master Sorcerer"/>

<vocation name="Slayer Sorcerer" />

nem Slayer Sorcerer , tira esses voc pra galera nao ter erros ,vlw

 

Link para o comentário
Compartilhar em outros sites

  • 8 months later...
  • 1 month later...
  • 8 months later...
  • 3 weeks later...
×
×
  • Criar Novo...