anyone need this script
local config = {
positions = {
["Teleports"] = { x = 993, y = 996, z = 7 },
["Deport"] = { x = 1006, y = 996, z = 7 },
["Trainer"] = { x = 993, y = 1000, z = 7 },
}
}
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(0, CONST_ME_LAST))
doSendAnimatedText(pos, text, math.random(1, 255))
end
return TRUE
end
--[[
World Animated Texts&Effects 1.0
Author: [B]Pedrok$[/B]
]]--
local effects =
{
-- { effectPos, effectTable, effectText, textColor }
{ {x=112, y=356, z=6}, {[COLOR="Blue"]CONST_ME_MAGIC_RED[/COLOR]}, "[B]Mini Poi[/B]", [COLOR="Red"]TEXTCOLOR_ORANGE[/COLOR] },
{ {x=112, y=357, z=6}, {[COLOR="Blue"]CONST_ME_MAGIC_RED[/COLOR]}, "[B]Hard Poi[/B]", [COLOR="Red"]TEXTCOLOR_ORANGE[/COLOR] },
}
function onThink(interval, lastExecution)
for _, t in ipairs(effects) do
if(next(t[2]) ~= nil) then
for _, s in ipairs(t[2]) do
doSendMagicEffect(t[1], s)
end
end
if(t[3] ~= "") then
local len = string.len(t[3])
if(len <= 9) then
doSendAnimatedText(t[1], t[3], t[4])
else
doSendAnimatedText(t[1], t[3]:sub(1, 8), t[4])
doSendAnimatedText({x=t[1].x+1, y=t[1].y, z=t[1].z}, t[3]:sub(8, -1), t[4])
end
end
end
return TRUE
end
How make texth with 3x 'DEPO!'?
["Depo!"] = { x = 124, y = 179, z = 6 },
["Depo!"] = { x = 193, y = 155, z = 7 },
["Depo!"] = { x = 130, y = 54, z = 5},
^ DON'T WORK IT
["Depo!"] = { x = 124, y = 179, z = 6 },
["Depo!!"] = { x = 193, y = 155, z = 7 },
["~Depo!"] = { x = 130, y = 54, z = 5},
local config = {
positions = {
["Teleports"] = { x = 993, y = 996, z = 7 },
["Deport"] = { x = 1006, y = 996, z = 7 },
["Trainer"] = { x = 993, y = 1000, z = 7 },
},
effects = {
CONST_ME_MAGIC_BLUE,
CONST_ME_MAGIC_GREEN,
CONST_ME_MORTAREA
},
colors = {
TEXTCOLOR_WHITE,
TEXTCOLOR_ORANGE,
TEXTCOLOR_GREEN,
TEXTCOLOR_BLUE
}
}
local start = false
function onLogin(cid)
if(start == false) then
start = true
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, math.random(1, #config.effects))
doSendAnimatedText(pos, text, math.random(1, #config.colors))
end
end
return true
end