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

Lua help please just one question !!

ibrahimzxz

New Member
Joined
Jan 2, 2015
Messages
53
Reaction score
1
can any one please tell me how I change or put the colored texts ( I don't know the name )


XbsOAZS.png

please help me and thanks ( :D)
 
Last edited:
Code:
<globalevent name="animated_text" interval="1000" event="script" value="animated_text.lua"/>
Code:
local config = {
     positions = {
         ["Houses"]     = {x = 1997, y = 1999, z = 7},
         ["ArenaPVP"]   = {x = 2000, y = 1997, z = 7},
         ["Trainers"]   = {x = 2002, y = 1997, z = 7},
         ["Ilha"]       = {x = 2002, y = 1999, z = 7},
         ["Arena War"]  = {x = 2002, y = 2001, z = 7}
     },
}

function onThink(cid, interval, lastExecution)
     for text, pos in pairs(config.positions) do
         doSendAnimatedText(pos, text, math.random(255))
     end
     return true
end
 
Code:
<globalevent name="animated_text" interval="1000" event="script" value="animated_text.lua"/>
Code:
local config = {
     positions = {
         ["Houses"]     = {x = 1997, y = 1999, z = 7},
         ["ArenaPVP"]   = {x = 2000, y = 1997, z = 7},
         ["Trainers"]   = {x = 2002, y = 1997, z = 7},
         ["Ilha"]       = {x = 2002, y = 1999, z = 7},
         ["Arena War"]  = {x = 2002, y = 2001, z = 7}
     },
}

function onThink(cid, interval, lastExecution)
     for text, pos in pairs(config.positions) do
         doSendAnimatedText(pos, text, math.random(255))
     end
     return true
end
OMG TY :D
 
Back
Top