Sizaro
Advanced OT User
Here is all the 8.0 spells.
Exori Con.lua
exori gran.lua
Exori mas.lua
Exori hur.lua
And this in spells.xml
Exori Con.lua
Code:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 27)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.1, 0)
function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
if (isPlayer(cid) == TRUE and pAccess < 3) then
if (exhaust(cid, storevalue, exhausttime) == 1) then
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You are exhausted.")
end
else
return doCombat(cid, combat, var)
end
end
exori gran.lua
Code:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 5.6, 0)
local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
if (isPlayer(cid) == TRUE and pAccess < 3) then
if (exhaust(cid, storevalue, exhausttime) == 1) then
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You are exhausted.")
end
else
return doCombat(cid, combat, var)
end
end
Exori mas.lua
Code:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 3.6, 0)
local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
if (isPlayer(cid) == TRUE and pAccess < 3) then
if (exhaust(cid, storevalue, exhausttime) == 1) then
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You are exhausted.")
end
else
return doCombat(cid, combat, var)
end
end
Exori hur.lua
Code:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_THROWINGSWORD)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0.9, 0)
function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
if (isPlayer(cid) == TRUE and pAccess < 3) then
if (exhaust(cid, storevalue, exhausttime) == 1) then
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You are exhausted.")
end
else
return doCombat(cid, combat, var)
end
end
And this in spells.xml
Code:
<instant name="exori mas" words="exori mas" lvl="33" maglv="4" manapercent="90" exhaustion="1" prem="1" enabled="1" script="exori mas.lua"><vocation id="1"/><vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="3"/><vocation id="5"/><vocation id="6"/><vocation id="7"/><vocation id="8"/><vocation id="9"/><vocation id="10"/></instant>
<instant name="exori gran" words="exori gran" lvl="70" maglv="5" manapercent="90" exhaustion="1" prem="1" enabled="1" script="exori gran.lua"><vocation id="8"/><vocation id="4"/></instant>
<instant name="Ethereal Spear" words="exori con" needtarget="1" needWeapon="1" soul="0" mana="35" exhaustion="1" prem="0" enabled="1" script="exori con.lua"><vocation id="1"/><vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="3"/><vocation id="5"/><vocation id="6"/><vocation id="7"/><vocation id="8"/><vocation id="9"/><vocation id="10"/></instant>
<instant name="Whirlwind" words="exori hur" needtarget="1" needWeapon="1" soul="0" mana="35" exhaustion="1" prem="0" enabled="1" script="exori hur.lua"><vocation id="1"/><vocation id="2"/><vocation id="3"/><vocation id="4"/><vocation id="3"/><vocation id="5"/><vocation id="6"/><vocation id="7"/><vocation id="8"/><vocation id="9"/><vocation id="10"/></instant>