Helliot1
Owner of Empire Online
- Joined
- Jul 26, 2017
- Messages
- 315
- Solutions
- 1
- Reaction score
- 57
Hello,
Trying to add an animated text when I use some potion, but it don't work.
I'm using OTX3 8.6, and found this function on this website: otxserver-luascript
Somebody can help me please?
Thanks guys!!
Trying to add an animated text when I use some potion, but it don't work.
I'm using OTX3 8.6, and found this function on this website: otxserver-luascript
Lua:
if potion.mana then
manaToAdd = math.random(potion.mana[1], potion.mana[2])
doPlayerAddMana(player, manaToAdd)
g_game.addAnimatedText(manaToAdd, player:getPosition(), TEXTCOLOR_BLUE)
end
Somebody can help me please?
Thanks guys!!