doPlayerSendTextMessage(player1.uid,22,"+500 HP!")
local t = {
min = 700,
max = 1000,
text = "Manarune B!",
effect = CONST_ME_MAGIC_BLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) then
doCreatureAddMana(itemEx.uid, math.random(t.min, t.max))
doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1)
doSendMagicEffect(toPosition, t.effect)
else
doPlayerSendCancel(cid, "You can only use this rune on players.")
end
return true
end
Yes but, I haven't doPlayerSendTextMessage(player1.uid,22,"+500 HP!"), it looks like doCreatureAddHealth send this text automatically, and I want to change color of text sended with this function.