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

Talking tile

donacool

Mapper Scripter Ot Owner
Joined
Jan 15, 2010
Messages
97
Reaction score
0
hey dudes i need a script that makes that a special tile with a unique id that says "Up!"
and please tell me hopw do i put it in the .xml file
and if is a action script, movement, etc

i will give rep++
 
do you want it to just show animated text or normal talktype?(for second you can use invisible walkable npc with hidden name and health and for first globalevent showing it form time to time[search])
 
PHP:
local uids = {
		[21500] = {"Up!",200},  -- "Text",Color code
	}
function onThink(interval, lastExecution, thinkInterval)
	for uid, t in pairs(uids) do
		local position = getThingPos(uid)
		doSendAnimatedText(position,t[1],t[2])
	end
end

Just replace 21500 by the unique id of the item and change the text and color if needed. You can add more uniqueids.
Text max lenght is 9
 
PHP:
local uids = {
		[21500] = {"Up!",200},  -- "Text",Color code
	}
function onThink(interval, lastExecution, thinkInterval)
	for uid, t in pairs(uids) do
		local position = getThingPos(uid)
		doSendAnimatedText(position,t[1],t[2])
	end
end

Just replace 21500 by the unique id of the item and change the text and color if needed. You can add more uniqueids.
Text max lenght is 9

and how do i put it in the xml file?
 
globalevent-->scripts
make new talktile.lua an paste that on with you
globalevent-->golabalevent.xml
Code:
<globalevent name="talktile" [B][I][COLOR="Orange"]interval="2"[/COLOR][/I][/B] event="script" value="talktile.lua"/>
in interval the time between each text in seconds
 
Back
Top Bottom