Kramer infernal
I work alone =/
- Joined
- Jun 18, 2008
- Messages
- 225
- Reaction score
- 0
@up
Lua:local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2) function onCastSpell(cid, var) if exhaustion.check(cid, 23000) == false then if getCreatureStorage(cid, 23001) == -1 then exhaustion.set(cid,23000, 100) else exhaustion.set(cid,23000, 50) end return doCombat(cid, combat, var) else doPlayerSendCancel(cid, "Cooldown[" ..exhaustion.get(cid,23000).."]") end end
hope I don't need to explain it, try to figure out the config.
don't worry i imagined something like that, thus i didn't knew that getCreatureStorage was a new function lol xD because i have tried this before but the engine didn't recognized me the getPlayer... thank you anyways