the problem is i dont know how to do what you are telling me to do xDDD something like this??Remove the end above return true (that doesn't close anything) and the local config table (not used?).
But ye, you could do it like that, although it might be more fun to have some magic effects like spells usually have so people see something happening.
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 108)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
exhaustion.set(cid, 11989, 2)
for i = 0, 9 do
addEvent(function()
if isCreature(cid) then
doSendMagicEffect(getCreaturePosition(cid), 108)
end
end, 1 + (1000 * i))
end return doCombat(cid, combat, var)
end
Remove the end above return true (that doesn't close anything) and the local config table (not used?).
But ye, you could do it like that, although it might be more fun to have some magic effects like spells usually have so people see something happening.
localcombat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 33 * 1000)
setConditionFormula(condition, 0.3, -24, 0.3, -24)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
exhaustion.set(cid, 11989, 2)
return doCombat(cid, combat, var)
end
I LOVE U BRO THANKSS :33!!! bro where edit time of spell?Yes, now it will make the player immortal and faster for 33 seconds.
If you don't want the condition you can remove that.