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

Solved doSendAnimatedText() help

Drakkhan

Illuria Project Lead
Joined
Oct 3, 2013
Messages
141
Reaction score
22
The function:

doSendAnimatedText(pos, text, color)

is listed in the "LUA_FUNCTIONS" reference of The Forgotten Server 0.2.14 (Mystic Spirit), but when I try to call it in my .lua script, I get:

Code:
[05/10/2013 16:39:09] Lua Script Error: [Action Interface]
[05/10/2013 16:39:09] data/actions/scripts/tools/woodcutting.lua:onUse
[05/10/2013 16:39:09] LuaScriptInterface::luaDoSendAnimatedText(). Deprecated function.
[05/10/2013 16:39:09] stack traceback:
[05/10/2013 16:39:09]    [C]: in function 'doSendAnimatedText'
[05/10/2013 16:39:09]    data/actions/scripts/tools/woodcutting.lua:305: in function <data/actions/scripts/tools/woodcutting.lua:215>

The actual line that I use is:

--in an onUse() function...
doSendAnimatedText(fromPosition, "Test", TEXTCOLOR_ORANGE)

Anyone know why this function isn't working? I'm trying to replicate the "Munch" text that appears above the character when they eat something..

Regards!

Drakkhan
 
Use doCreatureSay
Code:
doCreatureSay(cid, "Munch", TALKTYPE_ORANGE_1)
The function doSendAnimatedText doesn't exist anymore in client 9.1+ servers because it's not possible with the 9.1+ clients.

But you can still use it for numbers.
Code:
doPlayerSendTextMessage(cid, MESSAGE_EXPERIENCE, "Server log text", getCreaturePosition(cid), 100, TEXTCOLOR_GREEN)
 
Back
Top