ex eclipse
New Member
hello there,
my ethernal spear spell
the problem is that its not working with the items that increase skilldist also with utito tempo san.. it only returns the skill value without the increase from items/utito tempo san... shouldnt it count the increase from items/spell ? cuz the mage spells works fine with the items that add ml
my ethernal spear spell
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
function onGetFormulaValues(cid, level, skill, attack, factor)
local levelTotal = level / 5
local skillTotal = getPlayerSkillLevel(cid, SKILL_DISTANCE)
local min = levelTotal + (skillTotal * 0.7)
local max = levelTotal + (skillTotal) + 5
return -math.ceil(min), -math.ceil(max)
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
the problem is that its not working with the items that increase skilldist also with utito tempo san.. it only returns the skill value without the increase from items/utito tempo san... shouldnt it count the increase from items/spell ? cuz the mage spells works fine with the items that add ml
Last edited: