local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, 0)
local condition1= createConditionObject(CONDITION_HASTE)
setConditionParam(condition1, CONDITION_PARAM_TICKS, 29000)
setConditionFormula(condition1, 0.3, -24, 0.3, -24)
setCombatCondition(combat1, condition1)
function onCastSpell(cid, var)
doCombat1(cid, combat1, var)
end
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)
local condition2 = createConditionObject(CONDITION_HASTE)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 31000)
setConditionFormula(condition2, 0.7, -56, 0.7, -56)
setCombatCondition(combat2, condition2)
function onCastSpell(cid, var)
local position2 = getCreaturePosition(cid)
doSendDistanceShoot(position2, {x = position.x, y = position.y + 5, z = position.z}, 40)
doSendDistanceShoot(position2, {x = position.x, y = position.y - 5, z = position.z}, 40)
doSendDistanceShoot(position2, {x = position.x + 5, y = position.y, z = position.z}, 40)
doSendDistanceShoot(position2, {x = position.x - 5, y = position.y, z = position.z}, 40)
return doCombat2(cid, combat2, var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 }
-- Feito por Rique
bts = getPlayerSlotItem(cid, 10)
if bts.itemid == 2127 then
-- Close
return doCombat(cid, combat1, var)
else
return
doCombat(cid, combat2, var)
end
end
Esta é a magia com o item que eu quero que precise para que ela modifique!
_____________________________________________________________________________________________________
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)
local condition2 = createConditionObject(CONDITION_HASTE)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 31000)
setConditionFormula(condition2, 0.7, -56, 0.7, -56)
setCombatCondition(combat2, condition2)
function onCastSpell(cid, var)
local position2 = getCreaturePosition(cid)
doSendDistanceShoot(position2, {x = position.x, y = position.y + 5, z = position.z}, 40)
doSendDistanceShoot(position2, {x = position.x, y = position.y - 5, z = position.z}, 40)
doSendDistanceShoot(position2, {x = position.x + 5, y = position.y, z = position.z}, 40)
doSendDistanceShoot(position2, {x = position.x - 5, y = position.y, z = position.z}, 40)
return doCombat2(cid, combat2, var)
end
E quero que me ajude tbm com essa aqui/\ Colocando pra taca as pedrinhas para traz do player independentimente de sua direçao!