• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction automatic ingame text

XEon8861

New Member
Joined
Nov 14, 2011
Messages
3
Reaction score
0
Hey Guys :)

is there any action script, which spawn some Text ingame at a favourite postion? Maybe over a statue "welcome".

Thank you!

best wishes
xeon
 
This is what I am using for my server:

In data/globalevents/scripts/tptext.lua
Code:
local t = {
    
	[{x=619, y=143, z=7}] = {text = '<texthere>'},
	[{x=619, y=144, z=7}] = {text = '<texthere>'},
	[{x=619, y=145, z=7}] = {text = '<texthere>'}
	
}
 
function onThink(interval, lastExecution, thinkInterval)
    for pos, v in pairs(t) do
        if v.text then
            doSendAnimatedText(pos, v.text, v.color or math.random(1,255))
			doSendMagicEffect(pos, 37)
        end
    end
    return true
end

in globalevents.xml
Code:
<globalevent name="tptext" interval="1200" script="tptext.lua"/>

You can change the color combination and also the effect that you want :).
Sincerely, Sathure.

Edit: For future reference though, use the search function, and this is supposed to be in requests :)
 
Last edited:
Back
Top