• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Suicide Spell

megazx

Graphic designer
Joined
Mar 4, 2013
Messages
443
Solutions
2
Reaction score
32
Location
Egypt
Hello
I need A Spell The Kills The Player Who Use It
But It Need A target
And This Target Will lose 80% off His/Here Hp And Mana
I want It to look like SD Hit
I'm Using tfs 0.4 tibia 8.60

Thanks In Advance​
 
Code:
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
local damage = (getCreatureHealth(target) * .8)
    if isPlayer(target) then
        doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(target), 31)
        doTargetCombatHealth(cid, target, COMBAT_DEATHDAMAGE, -damage * 2, -damage * 2, 17)
        doCreatureAddHealth(cid, -100000)
    else
        doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(target), 31)
        doTargetCombatHealth(cid, target, COMBAT_DEATHDAMAGE, -damage, -damage, 17)
        doCreatureAddHealth(cid, -100000)
    end
return true
end
 
Back
Top