1° Existe ja talkaction !War (nomedaguild) ? <Se tiver me mande plx ;D>
2° como faz uma talkaction? Ex: LoL. que aparece colorido subindo a palavra "LoL" <se tiver me passa e ensina sauhas>
3° Se vc me ajudar o que devo fazer?
URRU VLW ;d
1° Existe ja talkaction !War (nomedaguild) ? <Se tiver me mande plx ;D>
2° como faz uma talkaction? Ex: LoL. que aparece colorido subindo a palavra "LoL" <se tiver me passa e ensina sauhas>
3° Se vc me ajudar o que devo fazer?
URRU VLW ;d
data/talkactions/script crie uma pasta .lua e bote isto:
function onSay(cid, words, param)
playerpos = getPlayerPosition(cid)
if math.max(math.abs(playerpos.x-23), math.abs(playerpos.y-30)) < 9999 then
doSendAnimatedText(playerpos, "LOL", TEXTCOLOR_BLUE)
return 0
end
return 1
end
Rosa: A animação
Verde: Cor do texto
data/talkactions/talkactions.xml bote isso:
<talkaction words="lol;Lol;LOl;LOL;lOl;lOL" script="NOMEDOARQUIVO.lua" />
Bege: A palavra que o player terá que falar para aparecer a animação
Azul: O nome do arquivo
Espero ter ajudado.
att,
MasterMathw
Voltando aos poucos.
data/talkactions/script crie uma pasta .lua e bote isto:
function onSay(cid, words, param)
playerpos = getPlayerPosition(cid)
if math.max(math.abs(playerpos.x-23), math.abs(playerpos.y-30)) < 9999 then
doSendAnimatedText(playerpos, "LOL", TEXTCOLOR_BLUE)
return 0
end
return 1
end
Rosa: A animação
Verde: Cor do texto
data/talkactions/talkactions.xml bote isso:
<talkaction words="lol;Lol;LOl;LOL;lOl;lOL" script="NOMEDOARQUIVO.lua" />
Bege: A palavra que o player terá que falar para aparecer a animação
Azul: O nome do arquivo
Espero ter ajudado.
Quando estou colocando o OT online, o .exe do ot. da ERROR e ai nao abre o talkactions
Obs: o meu server é 8.54/55/56/57
Vlw
usa essa:
local colors =
{
TEXTCOLOR_BLUE,
TEXTCOLOR_LIGHTBLUE,
TEXTCOLOR_LIGHTGREEN,
TEXTCOLOR_TEAL,
TEXTCOLOR_PURPLE,
TEXTCOLOR_PLATINUMBLUE,
TEXTCOLOR_LIGHTGREY,
TEXTCOLOR_DARKRED,
TEXTCOLOR_RED,
TEXTCOLOR_ORANGE,
TEXTCOLOR_YELLOW,
TEXTCOLOR_WHITE_EXP
}
function onSay(cid, words, param)
local playerpos = getPlayerPosition(cid)
local random = math.random(1, #colors)
if math.max(math.abs(playerpos.x-23), math.abs(playerpos.y-30)) < 9999 then
doSendAnimatedText(playerpos, "LoL", colors[random])
return 0
end
return 1
end