Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function pushSpell(cid, posTarget)
- if isCreature(cid) then
- doSendDistanceShoot(getCreaturePosition(cid), posTarget, 10)
- doAreaCombatHealth(cid, COMBAT_PHYSICALDAMAGE, posTarget, 0, -100, -200, 803)
- end
- end
- function onCastSpell(cid, var)
- local target = variantToNumber(var)
- if(target ~= 0) then -- and isPlayer(target) ??? only player or remove it
- local posTarget = getCreaturePosition(target)
- doSendMagicEffect(posTarget, 100)
- addEvent(pushSpell, 500, cid, posTarget)
- end
- return LUA_NO_ERROR
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement