The server in the picture is not my servant, I'm just stating what I want
function onThink(interval)
local effects = {
-----TEMPLE TEXT DISPLAY-----
{position = Position(1000, 1000, 7), text = "Text", effect = 11, say = false, color = math.random(100,215)},
}
for i = 1, #effects do
local settings = effects[i]
local spectators = Game.getSpectators(settings.position, false, true, 7, 7, 5, 5)
if #spectators > 0 then
if settings.text then
for i = 1, #spectators do
if settings.say then
spectators[i]:say(settings.text, TALKTYPE_MONSTER_SAY, false, spectators[i], settings.position)
else...
upEffects Appears every second or 2 on the ground or magic forcefield
Please write a text like this Illustration in the pictureView attachment 67524
Is there anyone to help me, it seems that someone created this text, of course, please help
That should be inIs there anyone to help me, it seems that someone created this text, of course, please help
data/globalevents/scripts/
The server in the picture is not my servant, I'm just stating what I wantThat should be inlook in one of the files, I don't know what they would have named it... they always put TextLua:data/globalevents/scripts/
The server in the picture is not my servant, I'm just stating what I want
function onThink(interval)
local effects = {
-----TEMPLE TEXT DISPLAY-----
{position = Position(1000, 1000, 7), text = "Text", effect = 11, say = false, color = math.random(100,215)},
}
for i = 1, #effects do
local settings = effects[i]
local spectators = Game.getSpectators(settings.position, false, true, 7, 7, 5, 5)
if #spectators > 0 then
if settings.text then
for i = 1, #spectators do
if settings.say then
spectators[i]:say(settings.text, TALKTYPE_MONSTER_SAY, false, spectators[i], settings.position)
else
Game.sendAnimatedText(settings.text, settings.position, settings.color)
end
end
end
if settings.effect then
settings.position:sendMagicEffect(settings.effect)
end
end
end
return true
end
<globalevent name="Text_Effect" interval="2000" script="text_effect.lua" />
lolLua:function onThink(interval) local effects = { -----TEMPLE TEXT DISPLAY----- {position = Position(1000, 1000, 7), text = "Text", effect = 11, say = false, color = math.random(100,215)}, } for i = 1, #effects do local settings = effects[i] local spectators = Game.getSpectators(settings.position, false, true, 7, 7, 5, 5) if #spectators > 0 then if settings.text then for i = 1, #spectators do if settings.say then spectators[i]:say(settings.text, TALKTYPE_MONSTER_SAY, false, spectators[i], settings.position) else Game.sendAnimatedText(settings.text, settings.position, settings.color) end end end if settings.effect then settings.position:sendMagicEffect(settings.effect) end end end return true end
Code:<globalevent name="Text_Effect" interval="2000" script="text_effect.lua" />
Why come on say twice at the same time? text Also, the same color twiceLua:function onThink(interval) local effects = { -----TEMPLE TEXT DISPLAY----- {position = Position(1000, 1000, 7), text = "Text", effect = 11, say = false, color = math.random(100,215)}, } for i = 1, #effects do local settings = effects[i] local spectators = Game.getSpectators(settings.position, false, true, 7, 7, 5, 5) if #spectators > 0 then if settings.text then for i = 1, #spectators do if settings.say then spectators[i]:say(settings.text, TALKTYPE_MONSTER_SAY, false, spectators[i], settings.position) else Game.sendAnimatedText(settings.text, settings.position, settings.color) end end end if settings.effect then settings.position:sendMagicEffect(settings.effect) end end end return true end
Code:<globalevent name="Text_Effect" interval="2000" script="text_effect.lua" />