Guest User

as

a guest
Mar 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local combat = createCombatObject()
  2. setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
  3. setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DARAMANARROW)
  4. setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)
  5.  
  6. local condition = createConditionObject(CONDITION_ENERGY)
  7. setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
  8. addDamageCondition(condition, 10, 2000, -1)
  9. setCombatCondition(combat, condition)
  10.  
  11. function onUseWeapon(cid, var)
  12. return doCombat(cid, combat, var)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment