local combat1 = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local combat2 = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition1 = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 220000)
setConditionFormula(condition, 700, -56000, 700, -56000)
setCombatCondition(combat, condition)
local condition2 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000000)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, 500)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 500)
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 500)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat1, condition1)
setCombatCondition(combat2, condition2)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end