Postado Outubro 1, 2016 8 anos Uso o TFS 1.2 versão 10.90 preciso de uma script que sobe aquele texto do chão... globalevents
Postado Outubro 5, 2016 8 anos local config = { positions = { ["Temple"] = { x = 1010, y = 996, z = 7 }, ["Tps"] = { x = 1011, y = 996, z = 7 }, ["Depot"] = { x = 1042, y = 1984, z = 7 } } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end return TRUE end <globalevent name="texto" interval="1" script="texto.lua"/> Creio que este funcionara. Editado Outubro 5, 2016 8 anos por tetheuscunha (veja o histórico de edições) Senhoras e senhores, se alguma resposta lhe ajudou, marque-a como a melhor resposta e de ponto positivo, assim você incentiva quem lhe ajudou a continuar ajudando!!.
Postado Outubro 7, 2016 8 anos Autor Em 04/10/2016 ás 23:42, tetheuscunha disse: local config = { positions = { ["Temple"] = { x = 1010, y = 996, z = 7 }, ["Tps"] = { x = 1011, y = 996, z = 7 }, ["Depot"] = { x = 1042, y = 1984, z = 7 } } } function onThink(cid, interval, lastExecution) for text, pos in pairs(config.positions) do doSendAnimatedText(pos, text, math.random(1, 255)) end return TRUE end <globalevent name="texto" interval="1" script="texto.lua"/> Creio que este funcionara.
Postado Outubro 9, 2016 8 anos Solução Tenta Esse : Spoiler local effects = { {position = Position(995, 100, 7), text = 'Teleports', effect = CONST_ME_GROUNDSHAKER}, {position = Position(281, 254, 8), text = 'TP Room'}, -- text only {position = Position(307, 254, 1), text = 'Event', effect = CONST_ME_GROUNDSHAKER}, } function 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 <globalevent name="text" interval="3500" script="text.lua"/> Senhoras e senhores, se alguma resposta lhe ajudou, marque-a como a melhor resposta e de ponto positivo, assim você incentiva quem lhe ajudou a continuar ajudando!!.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.