Advertisement
poxipox

Untitled

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