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

[SOLVED] Effect tile, Rep++[SOLVED]

Donio

Banned User
Joined
Jun 24, 2008
Messages
4,004
Reaction score
16
Location
Manhattan, New York
Hello. I'v been trying to change the effect on the teleport text but it aint working.. Here is my script:

Code:
local config = {
positions = {
    ["Depot"] = { x = 1005, y = 996, z = 7 },
    ["Teleports"] = { x = 995, y = 1000, z = 7 },
    ["Quests"] = { x = 1004, y = 1000, z = 7 },
    ["Tempel"] = { x = 1026, y = 994, z = 7 },
    ["Tempel"] = { x = 1745, y = 1988, z = 6 },
    ["Tempel"] = { x = 2094, y = 2415, z = 5 },
    ["Tempel"] = { x = 1745, y = 1988, z = 6 },
	["Shops"] = { x = 996, y = 994, z = 7 },
	["Trainers"] = { x = 1004, y = 994, z = 7 },
	["Train II"] = { x = 1747, y = 1988, z = 6 },
	["Tempel"] = { x = 1026, y = 994, z = 7 },
	["Events"] = { x = 995, y = 994, 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

What I'v tried to do was changing:

Code:
        doSendMagicEffect(pos, math.random(37, #config.effects))
        doSendAnimatedText(pos, text, math.random(37, 255))

From 1 to 37 <- Wich is the effect type that I want.

But no succes. Anyone knows what I'v done wrong?
 
Back
Top