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

doSendAnimatedText deprecated function

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I was trying edit the script by @zbizu (https://otland.net/threads/tfs-1-0-1-1-tp-room-text-effects.228820/) with doSendAnimatedText but it's deprecated function which function I suppost to use?

Because I want remove the effect of TALKTYPE_MONSTER_SAY with something like doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255)) with random effects at letters.

inb4: search in compat.lua

Thanks.
 
As of client version 9.1 (?) the standalone client does no longer support text / strings as input for animated text (floating text).
You are most likely limited to using TALKTYPE_MONSTER_SAY or stick to numbers.
 
Code:
    function Player:doAnimatedAllText(text)
        local textTable = {}
        text:gsub("[0-9a-zA-Z]+", function(str) table.insert(textTable, str) end)
        for i in ipairs(textTable) do
            addEvent(self:doSendAnimatedText, i * 1000, textTable[i])
        end
    end
  
    function Player:doSendAnimatedText(text)
        if self:isPlayer() then
            self:say(text, TALKTYPE_MONSTER_SAY)
        end
    end
 
Last edited:
Back
Top