BA
talkaction

Comando De Noob,god,lol

Por BaiakZik, 27 de jan. de 2012 em Actions e Talkactions

comando de noob!
comando de god
comando de lol
script
6
1.6k
BaiakZikB
27 de janeiro de 2012 às 22:06

Novo Script Comando De NOOB,GOD,LOL como e e simples sai umas msgs emcima do seu char na hr q vc fala so q com cores diferentes

 

entao vamos ao script logo

 

Primeiro Va Em data/talkactions/talkactions.xml e la dentro add essas 3 tags la

 

<talkaction words="noob" event="script" value="noob.lua"/>

<talkaction words="lol" event="script" value="LoL.lua"/>

<talkaction words="god" event="script" value="god.lua"/>

 

Dps disso va em data/talkactions/scripts/e crie um arquivo.lua chamado god e dentro dele add isso

 

--[[

----- By Baiakzik -----

]]--

 

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, "GoD!", colors[random])

return 0

end

return 1

end

 

 

 

Dps Outro arquivo.lua chamado lol e dentro dele ponha isso dentro

 

--[[

----- By Baiakzik -----

]]--

 

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

 

 

e dps crie outro chamado noob e dentro dele escreva isso dentro

 

--[[

---- By Baiakzik ----

]]--

 

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, "NOOB!", colors[random])

return 0

end

return 1

end

 

 

 

se gostou dos scripts nao custa nada da um + rep

Editado Janeiro 27 por Baiakzik

1 ano depois...
YANBRAGAY
20 de janeiro de 2013 às 20:13

Novo Script Comando De NOOB,GOD,LOL como e e simples sai umas msgs emcima do seu char na hr q vc fala so q com cores diferentes

 

entao vamos ao script logo

 

Primeiro Va Em data/talkactions/talkactions.xml e la dentro add essas 3 tags la

 

<talkaction words="noob" event="script" value="noob.lua"/>

<talkaction words="lol" event="script" value="LoL.lua"/>

<talkaction words="god" event="script" value="god.lua"/>

 

Dps disso va em data/talkactions/scripts/e crie um arquivo.lua chamado god e dentro dele add isso

 

--[[

----- By Baiakzik -----

]]--

 

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, "GoD!", colors[random])

return 0

end

return 1

end

 

 

 

Dps Outro arquivo.lua chamado lol e dentro dele ponha isso dentro

 

--[[

----- By Baiakzik -----

]]--

 

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

 

 

e dps crie outro chamado noob e dentro dele escreva isso dentro

 

--[[

---- By Baiakzik ----

]]--

 

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, "NOOB!", colors[random])

return 0

end

return 1

end

 

 

 

se gostou dos scripts nao custa nada da um + rep

 

Cara eu ja tenho uma pasta chamada god o que eu faço ?

TheCaosT
21 de janeiro de 2013 às 09:29

Fácil: renomeie essa pasta pra ao que quiser, e la em talkactions.xml em vez de colocar:

<talkaction words="god" event="script" value="god.lua"/>

Coloca:

<talkaction words="god" event="script" value="o que você colocou la.lua"/>

 

 

Se te ajudei da um rep ae pf :)

YANBRAGAY
24 de janeiro de 2013 às 00:16

Fácil: renomeie essa pasta pra ao que quiser, e la em talkactions.xml em vez de colocar:

<talkaction words="god" event="script" value="god.lua"/>

Coloca:

<talkaction words="god" event="script" value="o que você colocou la.lua"/>

 

 

Se te ajudei da um rep ae pf :)

 

Ganho meu R+ concerteza otima talk

1 mês depois...
20cm2
10 de fevereiro de 2013 às 06:36

Dava pra fazer tudo em um script só:

local mama = {
["god"] = "Good =)",
["lol"] = "LLOOOOLLL !!!!",
["noob"] = "NooB...",
}
function onSay(cid, words, param)
return doSendAnimatedText(getThingPos(cid),mama[param:lower()],math.random(1,255))
end

 

E usar assim:

<talkaction words="noob;lol;god" event="script" value="mensagens.lua"/>

 

E vou falar, esse código tá muito fraco e cheio de coisas inúteis

Editado Fevereiro 10 por 20cm

2 meses depois...
SkyLighS
04 de abril de 2013 às 21:04

Cara é necessário fazer ripping de scripts tão básicos que ja vem em ots ?

 

@FECHADO