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

Problem with text

MrDamiano

New Member
Joined
Feb 3, 2013
Messages
14
Reaction score
0
Hi there, I'm using 0.4 tfs on 10.10 and I have a problem with script who should show a text on a proper position, but when I run my server that's not working and I have a text in console:
"DoSendAnimatedText is now desprecated function"
Can someone help me with this? it works pretty well on 0.3.6 tfs but no idea what is wrong on this tfs.

that's it

Code:
local config = {
    positions = {
        ["Bem Vindo"] = { x = 554, y = 390, z = 7 },
        [" Neox City, Casas e Npcs!"] = { x = 32039, y = 31964, z = 7 },
    ["Hunts, Quest, Treiners"] = { x = 32046, y = 31964, z = 7 },
    ["Hunts Vip"] = { x = 32066, y = 31934, z = 7 },
    ["Treiners"] = { x = 32066, y = 31932, z = 7 },
    ["Promotion"] = { x = 32071, y = 31930, z = 7 },
    ["Quests"] = { x = 32066, y = 31936, z = 7 }
    }
}


function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendAnimatedText(pos, text, math.random(1, 256))
    end
  
    return TRUE
end

and in globalevents.xml

Code:
        <globalevent name="text" interval="1" script="text.lua"/>
 
Back
Top