jareczekjsp
Member
Hello guys I Work on tfs 0.4 but I was have a crash server and I move my server to tfs 1.5 and little bit I have problem
I have custom script on arrow and have a problem like that
my script is
How I can Fix it ?
I have custom script on arrow and have a problem like that
Lua:
data/weapons/scripts/arroww.lua] Function setCombatCondition was renamed to addCombatCondition and will be removed in the future
my script is
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 34)
local condition = createConditionObject(CONDITION_ENERGY)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 5, 1000, -100)
setCombatCondition(combat, condition)
function onGetFormulaValues(cid, level, skill, attack, factor)
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
return -(level * 1) - 100, -(level * 3) - 200
end
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
How I can Fix it ?