• 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!

About heal spell couple thinks

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
989
Solutions
5
Reaction score
54
Hi, ho to remove this showing how much i got healed (3600)
Untitled.png

And how to hide regeneration text in default i know that if u want to hide text you have to add return false but i have no clue where should i put return false.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 28)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.1, -0, 1.1, 0)

function onGetFormulaValues(cid, level, maglevel)
    min = (level * 8 + maglevel * 18) * 4.5 - 25
    max = (level * 9 + maglevel * 22) * 4.5
   
    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
 
Hi, ho to remove this showing how much i got healed (3600)
Untitled.png

And how to hide regeneration text in default i know that if u want to hide text you have to add return false but i have no clue where should i put return false.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 28)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.1, -0, 1.1, 0)

function onGetFormulaValues(cid, level, maglevel)
    min = (level * 8 + maglevel * 18) * 4.5 - 25
    max = (level * 9 + maglevel * 22) * 4.5
 
    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
To remove the msg to default chat using your method, change the onCastSpell() to this
Lua:
function onCastSpell(cid, var)
   doCombat(cid, combat, var)
   return false
end

That healing value text seems to be coded inside the source, atleast i cant understand how that show up in this script.
I mean each time you use "setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)" the source tell the client to send the heal value aswell, check inside your config.lua if there is an option to turn it off
Dont quote me on that though.
 
Thanks to Mummrik he fixed one think but about that heal showing stuff still need help, because there is nothing in config.lua about this tho.

bump

bump

bump

bump

bump

bump
 
Last edited by a moderator:
Well I can't see a server version, but the code says 0.x
In that case you should look for functions like onStatsChange ~ and see if you got something in there about the message.
If it's 1.x but not a converted script - convert the script and look in creaturescripts for manachange

But if you can't find anything in Lua then it's hard coded = source edit, if you use VS then use the "find all references" serach and remove the animated text code.
 
Well I can't see a server version, but the code says 0.x
In that case you should look for functions like onStatsChange ~ and see if you got something in there about the message.
If it's 1.x but not a converted script - convert the script and look in creaturescripts for manachange

But if you can't find anything in Lua then it's hard coded = source edit, if you use VS then use the "find all references" serach and remove the animated text code.
I'm using tfs 1.2
I'm not using visual studio so i dont have function find all references. More ideas?
 
Back
Top