I decided to release this Script Coz i found many ppl were lookin for it.
Many Ppl Were searching for this script coz most of the talking tp scripts here dun work on verion 0.2
so i decided to release mine....
First GO to Talk action/scripts
and do lua file called "talking tp" and add this
Code:---- Made by himad local timespeed = 2000 -- 2000 = 2 seconds local function loop() doSendAnimatedText({x=000,y=000,z=0}, 'WELCOME', math.random(01,255)) doSendAnimatedText({x=000,y=000,z=0}, 'to', math.random(01,255)) doSendAnimatedText({x=000,y=000,z=0}, 'our', math.random(01,255)) doSendAnimatedText({x=000,y=000,z=0}, 'server', math.random(01,255)) --- Aqui poe as funçoes que ocorreram de 3 em 3 segundos. addEvent(loop, timespeed, valore) -- N?o remova isso end --- isso abaixo e para iniciar o loop. function onSay(cid, words, param) valore = {cid = cid, topos = topos} addEvent(loop, velocidade, valore) end
Then Go to Talk action .xml
and add
Code:<talkaction words="!tps" script="talking tp.lua"/>
now all u have to do is when u restart the server login and say !tps so that animation starts..
it works perfectlty with verion 0.2
i use it myself..
-- Magic effects by Gelio
local pozycje = {
{pos = {x=997, y=993, z=7}, tekst = "TP Room"},
{pos = {x=1047, y=990, z=7}, tekst = "Temple"}
}
local kolor = TEXTCOLOR_RED -- color
local efekt = {odEfektu = 10, doEfektu=10} -- efect
function onThink(interval, lastExecution)
for i=1, #pozycje do
local efektLosowy = math.random(efekt.odEfektu,efekt.doEfektu)
doSendMagicEffect(pozycje[i].pos,efektLosowy)
doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,kolor)
end
return TRUE
end
<globalevent name="magicEffects" interval="3" script="magic effects.lua"/>