function onCastSpell(cid, var) local sangue = getCreaturePosition(cid) local target = getCreatureTarget(cid) local player = getCreaturePosition(target) local exaust = 1 local time = 0 local mana = -90 if target == isMonster or isCreature then setPlayerStorageValue(cid, storage, os.time()+exaust) doCreatureAddHealth(cid,250, player) doCreatureAddHealth(target,-250, sangue) doPlayerAddMana(cid,mana) end end
eu coloquei o exaust no script por q ele n tinha exasted
<instant name="Absorb" words="Absorb" lvl="1" mana="0" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="attack/XXXXXXX.lua">
Gostou de +REP