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

doSendAnimatedText on a itemID.

Ninja Bodil

New Member
Joined
Mar 7, 2009
Messages
116
Reaction score
0
As the title says ;
I need a script that doSendAnimatedText every 5 second on a certain itemID.
Is this possible?
 
<-- Global Events -->
message.lua
Code:
function onThink(interval, lastExecution, thinkInterval)
pos = {x = 1066, y = 1445, z = 7}
doSendAnimatedText(pos, 'BLESS!', TEXTCOLOR_YELLOW)
return true
end
Code:
<globalevent name="message" interval="2" event="script" value="message.lua" />
Now just edit and maybe create some new pos...
 
ye dude, i know this but this is only for a certain tile, i mean like all items that have this itemID will send this text.
 
Last edited:
Code:
function onThink(interval, lastExecution)
if item.itemid == item1 then
doSendAnimatedText(item.uid, text, 1)
end
return TRUE
end
I've tried this but as you see, item.ex isn't in the function.
 
Code:
function onThink(interval, lastExecution)
if item.itemid == item1 then
doSendAnimatedText(item.uid, text, 1)
end
return TRUE
end
I've tried this but as you see, item.ex isn't in the function.

You need to check all positions on your map and make script sends animated text where a certain itemid is located, it can be executed on lua but you'll need a super computer to make it works without lag
 
Back
Top