Ir para conteúdo

Algumas Talkactions Legais :p


Twilight

Posts Recomendados

Ola,

 

Outro dia estava pensando em talkactions e resolvi fazer uma para parecer um emoticon e outra para "falsificar" um dano.

 

Para começar abra a pasta data/talkactions/scripts, copie qualquer arquivo, renomeie para "feliz", apague tudo dentro e copie isso:

 

function onSay(cid, words, param)

emoticon = math.random(1,5)

playerpos = getPlayerPosition(cid)

 

if emoticon == 1 then

doSendAnimatedText(getPlayerPosition(cid), ":D", TEXTCOLOR_BLUE)

elseif emoticon == 2 then

doSendAnimatedText(getPlayerPosition(cid), ":)", TEXTCOLOR_RED)

elseif emoticon == 3 then

doSendAnimatedText(getPlayerPosition(cid), "=]", TEXTCOLOR_BLACK)

elseif emoticon == 4 then

doSendAnimatedText(getPlayerPosition(cid), ">:)", TEXTCOLOR_LIGHTGREEN)

elseif emoticon == 5 then

doSendAnimatedText(getPlayerPosition(cid), ":]", TEXTCOLOR_ORANGE)

return 0

end

return 1

end

 

agora copie outro arquivo e renomeie para "dano", apague tudo e copie isso:

 

function onSay(cid, words, param)

dano = math.random(1,5)

playerpos = getPlayerPosition(cid)

 

if dano == 1 then

doSendAnimatedText(getPlayerPosition(cid), "150", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 2 then

doSendAnimatedText(getPlayerPosition(cid), "134", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 3 then

doSendAnimatedText(getPlayerPosition(cid), "200", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 4 then

doSendAnimatedText(getPlayerPosition(cid), "1", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 5 then

doSendAnimatedText(getPlayerPosition(cid), "375", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 5 then

doSendAnimatedText(getPlayerPosition(cid), "264", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 5 then

doSendAnimatedText(getPlayerPosition(cid), "761", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 5 then

doSendAnimatedText(getPlayerPosition(cid), "4", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 5 then

doSendAnimatedText(getPlayerPosition(cid), "84", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 5 then

doSendAnimatedText(getPlayerPosition(cid), "6", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

elseif dano == 5 then

doSendAnimatedText(getPlayerPosition(cid), "450", TEXTCOLOR_RED)

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_DRAWBLOOD)

return 0

end

return 1

end

 

agora no talkactions.xml coloke isso

<talkaction words="!dano" script="dano.lua" />

<talkaction words="!emoticon" script="feliz.lua"/>

 

É meio inutil mas é divertido :p

 

Não sei por que mas nao funciona no Aries 4.5 só até o 4.0 =/

 

 

Screenshots:

 

danotalkzj8.th.png

danotalkzj8.th.png

 

emoticontalkkb2.th.png

emoticontalkkb2.th.png

 

Creditos:

70% Conde Sapo por fazer a talkaction do lol colorido com random

30% eu por ter modificado a talkaction

 

Comentem, xinguem, se gostarem >copias com creditos<

 

:p

Bye.

Editado por Twilight
Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
  • 3 months later...
  • 5 months later...
×
×
  • Criar Novo...