daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Feb 24th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local combat = createCombatObject()
  2. setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
  3. setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
  4.  
  5. function onGetFormulaValues(cid, level, maglevel)
  6.     min = (maglevel * 3 + level) * 1.2
  7.     max = (maglevel * 3 + level * 2) * 1.3
  8.     return -min, -max
  9. end
  10.  
  11. setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
  12.  
  13. local area = createCombatArea(AREA_SQUAREWAVE5, AREADIAGONAL_SQUAREWAVE5)
  14. setCombatArea(combat, area)
  15.  
  16. function onCastSpell(cid, var)
  17.     return doCombat(cid, combat, var)
  18. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top