--TFS 0.3.X
doCreatureSay(cid, amountOfHP, TALKTYPE_ORANGE_1)
--TFS 1.X
player:say(amountOfHP, TALKTYPE_MONSTER_SAY)
dont have the rune script right now , but just need how is it worksWhich server you are using? Post your mana rune script.
what distro/server are you using?dont have the rune script right now , but just need how is it works
Im not downloading thatIts hard to define for me. Its an old TFS 0.3 probably? Mystic Spirit 0.2 thats what i think.
COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
i know MANADRAIN is weird but it works. MANADRAIN will deal damage only if the value is negative like -1000 (below 0). But if its above 0 it heals mana. the only thing i still need is what line i need to add to show healing amount above player head and where to put it in my script. Any ideas? HELP please?Im not downloading that
Is The Rune you sent a healing Rune or a Rune suposed to be used against players to attack them?
Im asking since you are using:
LUA:COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
Im not very familiar with tfs 0.3 nor Mistic Spirit 0.2
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function manarune(cid, level, maglevel)
local min = (level * 2 + maglevel * 15)
local max = (level * 3 + maglevel * 15)
if min < 250 then
min = 250
end
local mana = math.random(min, max)
if(doTargetCombatMana(0, cid, mana, mana, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
return doCreatureSay(cid, mana, TALKTYPE_ORANGE_1)
end
function onCastSpell(cid, var)
return doCombat(cid, combat, var) and manarune(cid, level, maglevel)
end
bump! i have the same problem on Mistic Spirit 0.2.
The config.lua thing is not the solve. Ive added lines
showHealingDamage = "yes"
showHealingDamageForMonsters = "yes"
to the config. Before was not even there.
This is the script which i am using on runes:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 15)
max = (level * 3 + maglevel * 15)
if min < 250 then
min = 250
end
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Maybe the solve is to add something at the end like "doCreatureSay..." ? Any ideas?