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

pop up message on tp

Heroman

New Member
Joined
Oct 1, 2012
Messages
84
Reaction score
0
how to make a tp or any thing like this? like make a costume message on it :)
 

Attachments

Solution
GlobalEvent - Text and Effects over teleports

XML:
<globalevents>
<globalevent name="effecttile" interval="2" script="effectile.lua"/>

Lua:
local config = {
    positions = {
        ["text here"] = { x = xxx, y = yyy, z = z },
        ["text here"] = { x = xxx, y = yyy, z = z },
    },

    effects = {
        CONST_ME_MAGIC_BLUE,
        CONST_ME_MAGIC_GREEN,
        CONST_ME_MORTAREA
    },

    colors = {
        TEXTCOLOR_WHITE,
        TEXTCOLOR_ORANGE,
        TEXTCOLOR_GREEN,
        TEXTCOLOR_BLUE
    }
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
        doSendAnimatedText(pos, text...
GlobalEvent - Text and Effects over teleports

XML:
<globalevents>
<globalevent name="effecttile" interval="2" script="effectile.lua"/>

Lua:
local config = {
    positions = {
        ["text here"] = { x = xxx, y = yyy, z = z },
        ["text here"] = { x = xxx, y = yyy, z = z },
    },

    effects = {
        CONST_ME_MAGIC_BLUE,
        CONST_ME_MAGIC_GREEN,
        CONST_ME_MORTAREA
    },

    colors = {
        TEXTCOLOR_WHITE,
        TEXTCOLOR_ORANGE,
        TEXTCOLOR_GREEN,
        TEXTCOLOR_BLUE
    }
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
        doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
    end
    return TRUE
end
 
Solution
Back
Top