local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 30000)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, 25)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, 25)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, 25)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, 25)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, 25)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_MANAGAIN, 2000)
setConditionParam(condition, CONDITION_PARAM_MANATICKS, 15000)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
if exhaustion.check(cid, 13251) == TRUE then
doPlayerSendCancel(cid, "Podera usar novamente dentro de 30 segundos.")
doSendMagicEffect(getCreaturePosition(cid), 2)
return false
end
for k = 1, 100 do
addEvent(function()
if isCreature(cid) then
local pos1 = {x = getPlayerPosition(cid).x + 1, y = getPlayerPosition(cid).y + 0, z = getPlayerPosition(cid).z}
doSendMagicEffect(pos1, 81)
end
end, 1 + ((k-1) * 500))
end
exhaustion.set(cid, 13251, 30.0)
return doCombat(cid, combat, var)
end
Onde MANAGAIN, 2000) é mana que vai ser regenerada; MANATICKS, 15000) A cada quantos segundos vai regenerar.