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

GlobalEvent Animate Text for [Tiles and Teleports]

Acubens

Old Penguin
Joined
May 6, 2008
Messages
1,261
Solutions
13
Reaction score
184
Location
Venezuela
Animate Multiple Text for [Tiles and Teleports]

Only Create new lua document in your data/globalevents/scripts with name "talking.lua" and past into this script:


Code:
local position = {x=1000,y=1000, z=7, stackpos=1}
local text = {"Text1", "Text2", "Text3"}

function onThink(interval, lastExecution)
        return doSendAnimatedText(position,text[math.random(1,#text)], math.random(10,66 ) )
end

In Globalevents.xml paste this:

Code:
<globalevent name="talking" interval="1" script="talking.lua"/>
 
Last edited:
good but this is best
Code:
  <globalevent name="talking" interval="0.5" script="talking.lua"/>
it's very speed with interval="0.5
 
Good script...
Is = what this?:

local config = {
positions = {

["Txt1"] = { x = 998, y = 995, z = 6 },
["Txt2"] = { x = 1000, y = 995, z = 6 },
["Txt3"] = { x = 1005, y = 1003, z = 5 }
}
}

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

return TRUE
end

* Positions for show the texts.
 
Good script...
Is = what this?:



* Positions for show the texts.

isn't equal, because you edit your customs text in diferents ubications, my script work with text Simultaneous and in only 1 pos for pre-entrance to teleport room
 
isn't equal, because you edit your customs text in diferents ubications, my script work with text Simultaneous and in only 1 pos for pre-entrance to teleport room

In one place it shows all the texts?
In secuence or random?
 
74629694720207735739.jpg


Zoom

38856864228506236950.jpg


it does not hurt you :]
 
74629694720207735739.jpg


Zoom

38856864228506236950.jpg


it does not hurt you :]
lua tags destroys it, example:
Code:
function myFunction()
	return function()
	end
end
and when it goes to lua tags
Lua:
function myFunction()
	return function()
	end
end
higlighting never tabs
 
lua tags destroys it, example:

higlighting never tabs

yeh yeh but you can notice when a code isnt tabed even with lua tags

will you compare this

77090414522367686496.png


with this?

71914124526367555525.png


its obviusly the guy didnt tab the code
 
Back
Top