local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_MANASHIELD)
setConditionParam(condition, CONDITION_PARAM_TICKS, 100000)
setCombatCondition(combat, condition)
local tempo = 120
function onCastSpell(cid, var)
if getCreatureStorage(cid, 1234) < os.time() then
doCreatureSetStorage(cid, 1234, os.time() + tempo)
doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You need to wait ".. getCreatureStorage(cid, 1234) - os.time() .." seconds.")
return false
end
end


info
Grupo: Visconde
Registrado: 11/11/08
Posts: 375
Reputação: +369
Gênero: Masculino
Char no Tibia: Sor Jaah
Meu tfs é 0.4 gostaria de saber se é possível colocar exausted nessa spell de 2 minutos por storage:
Up