Skip to content

Commit

Permalink
# Teleport Templo Thais
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcruzes committed Nov 17, 2023
1 parent adb72e1 commit 46db794
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions data-otservbr-global/scripts/custom/tpfalante.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
local effects = {
{position = Position(32364, 32231, 7), text = 'TRAINERS', effect = CONST_ME_GROUNDSHAKER},
{position = Position(32364, 32235, 7), text = 'SALA DE BOSSES', effect = CONST_ME_GROUNDSHAKER},
{position = Position(32364, 32233, 7), text = 'HUNTS', effect = CONST_ME_GROUNDSHAKER},
{position = Position(32374, 32235, 7), text = 'ROLETA DA SORTE', effect = CONST_ME_GROUNDSHAKER},
}

local animatedText = GlobalEvent("AnimatedText")
function animatedText.onThink(interval)
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
spectators[i]:say(settings.text, TALKTYPE_MONSTER_SAY, false, spectators[i], settings.position)
end
end
if settings.effect then
settings.position:sendMagicEffect(settings.effect)
end
end
end
return true
end

animatedText:interval(4550)
animatedText:register()

0 comments on commit 46db794

Please sign in to comment.