Com o bagulho do Lordfire:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 31)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local speed = createConditionObject(CONDITION_HASTE)
setConditionParam(speed, CONDITION_PARAM_TICKS, 3000)
setConditionFormula(speed, 9.9, -999, 9.9, -999)
setCombatCondition(combat, speed)
function onCastSpell(cid, var)
if getPlayerExhaust(cid, 62033, 20000) <= 0 then
return doCombat(cid, combat, var)
else
return doPlayerSendCancel(cid, "You are exhausted.") and doSendMagicEffect(getThingPos(cid), 2)
end
end