• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[8.60] Text from teleports "TRAINERS/HUNTING...etc"

Abbeh

New Member
Joined
Nov 22, 2012
Messages
98
Reaction score
1
Location
Sweden, Gothenburg
Hey guys,

Does anyone have a script, an adjustable script to be more specific, to make flashing texts come out from the teleports that you've created?
For example, "TRAINERS", "MONSTERS", "QUESTS"... And the list goes on...
 
This should be added in globalevents, you just need to change the positions,

Code:
local config = {
    positions = {
        ["Quests"] = { x = 1180, y = 1413, z = 6 },
      
   }
}

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

If you want to add more just do like this
Code:
local config = {
    positions = {
        ["Quests"] = { x = 1180, y = 1413, z = 6 },
        ["Example"] = { x = 1200, y = 1500, z = 6 },
   }
}

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

And in Globalevents.xml, you need to add this,
Code:
<globalevent name="animatedtexto" interval="0.5" script="nameofthelua.lua"/>

To change the interval time of when it will animate just change it here,
Code:
interval="0.5"
 

Similar threads

Back
Top