doSendMagicEffect(getThingPosition(cid), CONST_ME_HOLYAREA)
doSendAnimatedText(getThingPosition(cid), amount, COLOR_YELLOW)
thanks limos with your help but i want the full script can you?You should post your server version and client version when you ask for support for your server.
For the effect and animated text (amount should be the amount it heals).
You can find magic effects here.Code:doSendMagicEffect(getThingPosition(cid), CONST_ME_HOLYAREA) doSendAnimatedText(getThingPosition(cid), amount, COLOR_YELLOW)
http://otland.net/threads/magic-effects-10-41.221733/
Other colors you can find in data/lib/000-constant.lua.
forgotten server 0.3.6 8.6
@Limos
function onCastSpell(cid, var)
local minmana = (getPlayerLevel(cid) * .1234) + (getPlayerMagLevel(cid) * .5678)
local maxmana = (getPlayerLevel(cid) * .5678) + (getPlayerMagLevel(cid) * 1.234)
local randommana = math.ceil(math.random(minmana,maxmana))
doCreatureAddMana(cid, randommana)
doSendMagicEffect(getCreaturePosition(cid), 50)
doSendAnimatedText(getCreaturePosition(cid), randommana, COLOR_YELLOW)
return true
end