andu
Sold 649 scripts, 25 maps and 9 events!
Hello otlanders!
This is another DIFFRENT spell.
Not another animated borring spell.
Name: Aftershock
Type: Fire/Death
Mana: 90
Level: 10+
Description: Best for killing others summons! It dealt fire damage like 'exori flam' to target.
If that target die by this spell, creature owner lose health (death damage).
If the target isn't a someone summon, this spell just dealt damage like exori flam.
Aftershock.lua
spells.xml
This is another DIFFRENT spell.
Not another animated borring spell.
Name: Aftershock
Type: Fire/Death
Mana: 90
Level: 10+
Description: Best for killing others summons! It dealt fire damage like 'exori flam' to target.
If that target die by this spell, creature owner lose health (death damage).
If the target isn't a someone summon, this spell just dealt damage like exori flam.
Aftershock.lua
Lua:
function onCastSpell(cid, var)
local maxHp = getCreatureMaxHealth(getCreatureTarget(cid))
local lvl = getPlayerLevel(cid)
doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(getCreatureTarget(cid)), CONST_ANI_FIRE)
if getCreatureMaster(getCreatureTarget(cid)) ~= FALSE then
if maxHp <= lvl*5 then
doTargetCombatHealth(cid, getCreatureTarget(cid), COMBAT_FIREDAMAGE, -maxHp, -maxHp, CONST_ME_FIREAREA)
doTargetCombatHealth(cid, getCreatureMaster(getCreatureTarget(cid)), COMBAT_DEATHDAMAGE, -(maxHp/4), -(maxHp/1.5), CONST_ME_MORTAREA)
else
doTargetCombatHealth(cid, getCreatureTarget(cid), COMBAT_FIREDAMAGE, -(lvl*1), -(lvl*3), CONST_ME_FIREAREA)
end
else
doTargetCombatHealth(cid, getCreatureTarget(cid), COMBAT_FIREDAMAGE, -(lvl*1), -(lvl*2), CONST_ME_FIREAREA)
end
return true
end
spells.xml
Code:
<instant name="Aftershock" words="utexa flam mort" lvl="10" mana="90" needtarget="1" aggressive="1" script="aftershock.lua">
Last edited: