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