Advertisement
poxipox

Untitled

Nov 21st, 2023
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. local combatInfo = createCombatObject()
  2. setCombatParam(combatInfo, COMBAT_PARAM_EFFECT, 27)
  3. setCombatParam(combatInfo, COMBAT_PARAM_DISTANCEEFFECT, 1)
  4.  
  5. -- local hitExtraTargetsInRange = 5 -- range (spell ragnge = ""
  6. function onCastSpell(cid, var)
  7.     local target = variantToNumber(var)
  8.     if(target ~= 0 and isPlayer(target)) then -- and isPlayer(target) ??? only player or remove it
  9.         local posTarget = getCreaturePosition(target)
  10.         doCombat(cid, combatInfo, numberToVariant(target))
  11.        
  12.         addEvent(doAreaCombatHealth, 500, cid, COMBAT_PHYSICALDAMAGE, posTarget, 0, -100, -200, 803)
  13.     end
  14.    
  15.    
  16.     return LUA_NO_ERROR
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement