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

GlobalEvent Globalevents Random Effects, Random Colors

Blorin Mage

Member
Joined
Jan 26, 2012
Messages
90
Reaction score
13
Sorry Its Already Exist But I Didnt See That! But Try It If You Want
1) go to globalevents\scripts create effects.lua
add this
Lua:
local t = {
    [{x=998, y=994, z=7}] = {text = 'Temple'},
    [{x=1003, y=1003, z=7}] = {text = 'Train'}
}

function onThink(interval, lastExecution, thinkInterval)
    for pos, v in pairs(t) do
        if v.text then
            doSendAnimatedText(pos, v.text, v.color or math.random(1,255))
			doSendMagicEffect(pos, math.random(1,68))
        end
    end
    return true
end
2)go to globalevents.xml add this
XML:
<globalevent name="effects" interval="1" event="script" value="effects.lua"/>
 
Last edited:
1) go to globalevents\scripts create effects.lua
add this
Lua:
local t = {
    [{x=998, y=994, z=7}] = {text = 'Temple'},
    [{x=1003, y=1003, z=7}] = {text = 'Train'}
}

function onThink(interval, lastExecution, thinkInterval)
    for pos, v in pairs(t) do
        if v.text then
            doSendAnimatedText(pos, v.text, v.color or math.random(1,255))
            doSendMagicEffect(pos, math.random(1,68))
        end
    end
    return true
end
2)go to globalevents.xml add this
XML:
<globalevent name="effects" interval="1" event="script" value="effects.lua"/>

Nice relase.
 
Last edited by a moderator:
first thing its not normal effects just try it second thing show me the link of the already realised one
 
Well, i dont know the link, but ill search for it, because im using this script at like 2-3 years.

Here is the one im using i didnt read both but i think they are the same.

It was released when max effects were 65.

Lua:
local positions = {
        ["Easy"] = { x = 1340, y = 1142, z = 7 },
        ["Normal"] = { x = 1342, y = 1142, z = 7 },
        ["Hard"] = { x = 1344, y = 1142, z = 7 }
}

function onThink (cid, interval, lastExecution)
    for text, pos in pairs(positions) do
        doSendMagicEffect(pos, math.random(65))
        doSendAnimatedText(pos, text, math.random(255))
    end
    return true
end

Sorry for double post but i was searching and:

http://otland.net/f82/all-one-animated-text-150703/

EDIT: another one i found, while searching

http://otland.net/f82/talking-tps-sings-v-3-0-mock-47454/

This one by mock, you are able to use more than 9 words in
Lua:
doSendMagicEffect
 
Last edited by a moderator:
okay lava sorry for that i havnt seen that before i will edit my main post
 
Back
Top