Nux
Yzeria Custom War
- Joined
- Jan 2, 2009
- Messages
- 1,067
- Reaction score
- 1
Hello.
Well, im here today to say that im having some problems with the spell exori min, this is what happends - > when someone does exori min and looks down it does exori min down, and when he change side exori min does still the effect down..
like if a player looks Up then exori min effect does attack down.. this should not happen, and i dont have any clue how to fix it, but here is the script
Frontsweap.lua
Well, im here today to say that im having some problems with the spell exori min, this is what happends - > when someone does exori min and looks down it does exori min down, and when he change side exori min does still the effect down..
like if a player looks Up then exori min effect does attack down.. this should not happen, and i dont have any clue how to fix it, but here is the script
Frontsweap.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_USECHARGES, true)
local area = createCombatArea( {{0, 1, 1, 1, 0},{0, 0, 3, 0, 0}})
setCombatArea(combat, area)
function onGetFormulaValues(cid, level, skill, attack, factor)
local skillTotal, levelTotal = skill + attack * 2, level / 5
return -(skillTotal * 1.1 + levelTotal), -(skillTotal * 3 + levelTotal)
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
local storage = 23008
local spellname = "Front Sweep"
local time = 6
if exhaustion.check(cid, storage) == false then
exhaustion.set(cid, storage, time)
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "")
end
end