Found this spell:
That I need updated for tfs 1.3 for a 10.98 project.
Can anyone help me out with this? I've already tried using modern spells as reference but couldn't manage to do it.
Help is greatly appreciated!
Credits to the spell creator:
Lua:
function onCastSpell(player, var)
local cPos = getCreaturePosition(getCreatureTarget(cid))
local hp = player:getMaxHealth()
local basedmg = ((level / 5) + (maglevel * 2.3) + 200)
local hppercent = 10
local totaldmg = basedmg+(hp/100)*hppercent
if hp > (hp/100)*hppercent then
doSendDistanceShoot(getCreaturePosition(cid), cPos, CONST_ANI_FIRE)
doTargetCombatHealth(cid, getCreatureTarget(cid), COMBAT_FIREDAMAGE, -totaldmg, -totaldmg, CONST_ME_FIREAREA)
player:addHealth(cid, -(hp/100)*hppercent)
else
return false
end
return true
end
That I need updated for tfs 1.3 for a 10.98 project.
Can anyone help me out with this? I've already tried using modern spells as reference but couldn't manage to do it.
Help is greatly appreciated!
Credits to the spell creator:
Help! On spell base on health % being used
Hi want to know how to make a spell that let's say you have 1000 Hp, And the spell uses 5% of your health, so it has a base damage + 5% of your health are being converted into damage, but it drain 5% of your health while being used. How would this be done? Thanks!
otland.net