Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. local combat = createCombatObject()
  2. setCombatParam(combat, COMBAT_PARAM_HITCOLOR, COLOR_GREEN)
  3. setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
  4. setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -340.10, 1, -385.10, 1)
  5.  
  6. function onCastSpell(cid, var)
  7.  
  8. local waittime = 2 -- Tempo de exhaustion
  9. local storage = 15859
  10.  
  11. if isPlayer(cid) and exhaustion.check(cid, storage) == TRUE then
  12. doPlayerSendCancel(cid, "You are exhausted.")
  13. doSendMagicEffect(getCreaturePosition(cid), 2)
  14. return false
  15. end
  16.  
  17. exhaustion.set(cid, storage, waittime)
  18. local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+0, y=getThingPosition(getCreatureTarget(cid)).y+0, z=getThingPosition(getCreatureTarget(cid)).z}
  19.  
  20. doSendMagicEffect(position1, 410)
  21.  
  22. return doCombat(cid, combat, var)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement