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

[How to]Text over teleports?

kokosal

New Member
Joined
Feb 21, 2010
Messages
115
Reaction score
0
Can somebody please tell me a script or something that makes so it comes text over teleports? Or maybe just so it comes text on a location of choise?
It should look like this:
utennavni.png


Btw, it must work for a 8.0 server and I have sen this work on a 8.0 server before.
 
Last edited:
Make a globalevent script over the teleport
Name this effect.lua
Code:
local config = {
positions = {
["Trainers"] = { x = 32372, y = 32243, z = 7 },

},

effects = {
CONDITION_PARAM_DELAYED



}
}

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

return TRUE
end
Add to globalevents:
Code:
     <globalevent name="EffectTile" interval="3000" script="effect.lua"/>
 
Make a globalevent script over the teleport
Name this effect.lua
Code:
local config = {
positions = {
["Trainers"] = { x = 32372, y = 32243, z = 7 },

},

effects = {
CONDITION_PARAM_DELAYED



}
}

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

return TRUE
end
Add to globalevents:
Code:
     <globalevent name="EffectTile" interval="3000" script="effect.lua"/>

That will be a problem, because 8.0 dont got globalevent...
 
Back
Top