chybaloda10
New Member
- Joined
- Oct 31, 2012
- Messages
- 31
- Reaction score
- 2
hey
this my script
arrow works but deals only energy damage..i wants to arrow deals first blood hit and next 6times deals energy damage. can anybody help me?
[tfs 2.2.15] client 9.86
P.S sorry for my english
this my script
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, 6, 600, -200)
setCombatCondition(combat, condition)
function onGetFormulaValues(cid, level, skill, attack, factor)
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
return -(level * 1) - 150, -(level * 3) - 200
end
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
arrow works but deals only energy damage..i wants to arrow deals first blood hit and next 6times deals energy damage. can anybody help me?
[tfs 2.2.15] client 9.86
P.S sorry for my english