Donio
Banned User
Hello. I'v been trying to change the effect on the teleport text but it aint working.. Here is my script:
What I'v tried to do was changing:
From 1 to 37 <- Wich is the effect type that I want.
But no succes. Anyone knows what I'v done wrong?
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?