Ir para conteúdo

queria um script que trocasse a cor do outfit que o ADM esta usando

Featured Replies

  • Respostas 11
  • Visualizações 912
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Em talkactions, crie um arquivo chamado rainbow.lua e poem isso dentro.       e poem essa tag no talkactions.xml <talkaction log="yes" access="6" words="!rainbow" event="

Posted Images

Postado
  • Autor
11 minutos atrás, Zzyzx disse:

reabriu a distro ?

sim aqui vai os scripts 

 

Spoiler

local colors = {94, 81, 79, 88, 18, 11, 92, 128}

local storage = 65535
local time = 10 --in miliseconds
 
function onSay(cid, words, param, channel)
 
if(param == "on") then
if getPlayerStorageValue(cid, storage) < 1 then
if doPlayerRemoveMoney(cid, 0) == TRUE then
local event = addEvent(changeOutfit, time, cid)
setPlayerStorageValue(cid, storage, 1)
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have enough money.")
return TRUE
end
else
return TRUE
end
elseif(param == "off") then
if getPlayerStorageValue(cid, storage) > 0 then
setPlayerStorageValue(cid, storage, 0)
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have rainbow outfit on.")
return TRUE
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Use !rainbow on-off.")
return TRUE
end
return TRUE
end
 
function changeOutfit(cid)
 
local randomHead = colors[math.random(#colors)]
local randomLegs = colors[math.random(#colors)]
local randomBody = colors[math.random(#colors)]
local randomFeet = colors[math.random(#colors)]
local tmp = {}
 
if getPlayerStorageValue(cid, storage) > 0 then
local outfit = getCreatureOutfit(cid)
tmp = outfit
tmp.lookType = outfit.lookType
tmp.lookHead = randomHead
tmp.lookLegs = randomLegs
tmp.lookBody = randomBody
tmp.lookFeet = randomFeet
tmp.lookAddons = outfit.lookAddons
 
doCreatureChangeOutfit(cid, tmp)
local event = addEvent(repeatChangeOutfit, time, cid)
return TRUE
else
stopEvent(event)
return TRUE
end
end
 
function repeatChangeOutfit(cid)
 
local randomHead = colors[math.random(#colors)]
local randomLegs = colors[math.random(#colors)]
local randomBody = colors[math.random(#colors)]
local randomFeet = colors[math.random(#colors)]
local tmp = {}
 
if getPlayerStorageValue(cid, storage) > 0 then
local outfit = getCreatureOutfit(cid)
tmp = outfit
tmp.lookType = outfit.lookType
tmp.lookHead = randomHead
tmp.lookLegs = randomLegs
tmp.lookBody = randomBody
tmp.lookFeet = randomFeet
tmp.lookAddons = outfit.lookAddons
 
doCreatureChangeOutfit(cid, tmp)
local event = addEvent(changeOutfit, time, cid)
return TRUE
else
stopEvent(event)
return TRUE
end
end

Spoiler

    <talkaction log="yes" access="4" words="!rainbow" event="script" value="rainbow.lua"/>

image.thumb.png.3994f0b419a5f3075c95e345879f20dd.png

Editado por ADM Mayk on BaiakME (veja o histórico de edições)

Postado
1 minuto atrás, ADM Mayk on BaiakME disse:

sim aqui vai os scripts 

 

  Ocultar conteúdo

local colors = {94, 81, 79, 88, 18, 11, 92, 128}

local storage = 65535
local time = 10 --in miliseconds
 
function onSay(cid, words, param, channel)
 
if(param == "on") then
if getPlayerStorageValue(cid, storage) < 1 then
if doPlayerRemoveMoney(cid, 0) == TRUE then
local event = addEvent(changeOutfit, time, cid)
setPlayerStorageValue(cid, storage, 1)
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have enough money.")
return TRUE
end
else
return TRUE
end
elseif(param == "off") then
if getPlayerStorageValue(cid, storage) > 0 then
setPlayerStorageValue(cid, storage, 0)
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have rainbow outfit on.")
return TRUE
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Use !rainbow on-off.")
return TRUE
end
return TRUE
end
 
function changeOutfit(cid)
 
local randomHead = colors[math.random(#colors)]
local randomLegs = colors[math.random(#colors)]
local randomBody = colors[math.random(#colors)]
local randomFeet = colors[math.random(#colors)]
local tmp = {}
 
if getPlayerStorageValue(cid, storage) > 0 then
local outfit = getCreatureOutfit(cid)
tmp = outfit
tmp.lookType = outfit.lookType
tmp.lookHead = randomHead
tmp.lookLegs = randomLegs
tmp.lookBody = randomBody
tmp.lookFeet = randomFeet
tmp.lookAddons = outfit.lookAddons
 
doCreatureChangeOutfit(cid, tmp)
local event = addEvent(repeatChangeOutfit, time, cid)
return TRUE
else
stopEvent(event)
return TRUE
end
end
 
function repeatChangeOutfit(cid)
 
local randomHead = colors[math.random(#colors)]
local randomLegs = colors[math.random(#colors)]
local randomBody = colors[math.random(#colors)]
local randomFeet = colors[math.random(#colors)]
local tmp = {}
 
if getPlayerStorageValue(cid, storage) > 0 then
local outfit = getCreatureOutfit(cid)
tmp = outfit
tmp.lookType = outfit.lookType
tmp.lookHead = randomHead
tmp.lookLegs = randomLegs
tmp.lookBody = randomBody
tmp.lookFeet = randomFeet
tmp.lookAddons = outfit.lookAddons
 
doCreatureChangeOutfit(cid, tmp)
local event = addEvent(changeOutfit, time, cid)
return TRUE
else
stopEvent(event)
return TRUE
end
end

  Ocultar conteúdo

    <talkaction log="yes" access="4" words="!rainbow" event="script" value="rainbow.lua"/>

 

 

você nao ta tentando com o outfit de GOD né?

tem que ser com algum outfit que troque de cor, citizen, mage, warrior.

usa assim sem acesso

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

ve se não errou o nome do arquivo na hora de criar.

 

       112674.gif

 

 

 

Postado
  • Autor
11 minutos atrás, Zzyzx disse:

 

você nao ta tentando com o outfit de GOD né?

tem que ser com algum outfit que troque de cor, citizen, mage, warrior.

usa assim sem acesso

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

ve se não errou o nome do arquivo na hora de criar.

 

funciona só com players com god não pega:'( mais vlw ai Reputado image.png.8af485c78aac15c7208f32ebf184abfb.png

Postado
5 minutos atrás, ADM Mayk on BaiakME disse:

funciona só com players com god não pega:'( mais vlw ai Reputado image.png.8af485c78aac15c7208f32ebf184abfb.png

 

 

tu deve ter tentando usar com o GOD enquanto tava com roupa de GOD, faz o seguinte reloga o GOD, poem citizen, usa o comando !rainbow off e depois usa o comando !rainbow on

e vai funcionar, seu ot ta on, passa ip ai.

       112674.gif

 

 

 

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo