• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Talktype color

zxzxzx

New Member
Joined
Mar 12, 2011
Messages
334
Reaction score
3
Hello, is there any possibility to change "talktype_orange_1 to something like this: "
TEXTCOLOR_GREEN" - I would like to change the text color to green but in my compat I don't see any other talktype besides talktype_orange

my code

Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
combat:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(player, level, maglevel)
    local min = (level * 13) + (maglevel * 100) + 100
    local max = (level * 15) + (maglevel * 200) + 100
    local heal = math.floor(math.random(min, max))
    player:say("+ "..heal.." mana", TALKTYPE_ORANGE_1)
    player:addHealth(heal)
    return
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(creature, var, isHotkey)
    return combat:execute(creature, var)
end
 
Only thing we can send with different colors is numbers.

Also, why did you do that? TFS is already displaying how much creature got healed.
 
Back
Top