Ir para conteúdo

Featured Replies

Postado

Consegui arrumar esse script e funciona para minha versão, quando estou com algum addon full e utilizo o comando "!go" para mudar os outfits muda perfeitamente, Porem se eu estiver usando alguma montaria, o player também fica com a montaria... Gostaria que mudasse apenas o outfit e não a montaria! Obrigado! Outra coisa, se possível um igual a este para warmode!

 

 

 

function onSay(cid, words, param, channel) --made in MG by Eskylo
if not isInParty(cid) or getPlayerParty(cid) ~= cid then
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não é líder de uma party")
end
local outfit = getCreatureOutfit(cid)
local addons = outfit.lookAddons
for _, cid2 in ipairs(getPartyMembers(cid)) do
outfit.lookAddons = 0
doCreatureChangeOutfit(cid2, outfit)
doPlayerSendTextMessage(cid2, MESSAGE_STATUS_CONSOLE_BLUE, "Outfit da party trocado.")
if canPlayerWearOutfit(cid2, outfit.lookType, addons) then
outfit.lookAddons = addons
doCreatureChangeOutfit
(cid2, outfit)
return true
elseif addons == 3 then
outfit.lookAddons = (canPlayerWearOutfit(cid2, outfit.lookType, 1) and 1) or (canPlayerWearOutfit(cid2, outfit.lookType, 2) and 2) or 0
doCreatureChangeOutfit(cid2, outfit)
end
end
return true
end --made in MG by Eskylo

Editado por Jack Zika (veja o histórico de edições)

  • Respostas 7
  • Visualizações 544
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Caso de certo +REP.

 

local config = {


exhaustion = 30, -- in seconds
storage = 3002 -- storage value used to save exhaustion
}

function onSay(cid, words, param, channel)
if(exhaustion.check(cid, config.storage)) then
doPlayerSendCancel(cid, "Você pode mudar a roupa apenas uma vez a cada " .. config.exhaustion .. " segundos.")
return true
end

local playerGuild = getPlayerGuildId(cid)
if(not playerGuild or playerGuild == 0) then
doPlayerSendCancel(cid, "Desculpe, você não está em uma guild.")
return true
end

if(getPlayerGuildLevel(cid) < GUILDLEVEL_VICE) then
doPlayerSendCancel(cid, "Você tem que ser pelo menos vice-líder de sua guild para trocar de roupa!")
return true
end

local outfit, members = getCreatureOutfit(cid), 0
local message = "*Guild* Sua roupa foi alterada pelo líder. (" .. getCreatureName(cid) .. ")"
for _, tid in ipairs(getPlayersOnline()) do
if(getPlayerGuildId(tid) == playerGuild and cid ~= tid) then
local newOutfit = outfit
if(not canPlayerWearOutfit(tid, outfit.lookType, outfit.lookAddons)) then
local tmpOutfit = getCreatureOutfit(tid)
newOutfit.lookAddons = 0--tmpOutfit.lookAddons
if(not canPlayerWearOutfit(tid, outfit.lookType, 0)) then
newOutfit.lookType = tmpOutfit.lookType
end
end

doSendMagicEffect(getCreaturePosition(tid), 66)
doCreatureChangeOutfit(tid, newOutfit)
doPlayerSendTextMessage(tid, MESSAGE_STATUS_WARNING, message)
members = members + 1
end
end

exhaustion.set(cid, config.storage, config.exhaustion)
doPlayerSendCancel(cid, "Foi alterada a roupa de " .. members .. " membros.")
return true
end

Postado
  • Autor

Caso de certo +REP.

 

local config = {

exhaustion = 30, -- in seconds

storage = 3002 -- storage value used to save exhaustion

}

function onSay(cid, words, param, channel)

if(exhaustion.check(cid, config.storage)) then

doPlayerSendCancel(cid, "Você pode mudar a roupa apenas uma vez a cada " .. config.exhaustion .. " segundos.")

return true

end

local playerGuild = getPlayerGuildId(cid)

if(not playerGuild or playerGuild == 0) then

doPlayerSendCancel(cid, "Desculpe, você não está em uma guild.")

return true

end

if(getPlayerGuildLevel(cid) < GUILDLEVEL_VICE) then

doPlayerSendCancel(cid, "Você tem que ser pelo menos vice-líder de sua guild para trocar de roupa!")

return true

end

local outfit, members = getCreatureOutfit(cid), 0

local message = "*Guild* Sua roupa foi alterada pelo líder. (" .. getCreatureName(cid) .. ")"

for _, tid in ipairs(getPlayersOnline()) do

if(getPlayerGuildId(tid) == playerGuild and cid ~= tid) then

local newOutfit = outfit

if(not canPlayerWearOutfit(tid, outfit.lookType, outfit.lookAddons)) then

local tmpOutfit = getCreatureOutfit(tid)

newOutfit.lookAddons = 0--tmpOutfit.lookAddons

if(not canPlayerWearOutfit(tid, outfit.lookType, 0)) then

newOutfit.lookType = tmpOutfit.lookType

end

end

doSendMagicEffect(getCreaturePosition(tid), 66)

doCreatureChangeOutfit(tid, newOutfit)

doPlayerSendTextMessage(tid, MESSAGE_STATUS_WARNING, message)

members = members + 1

end

end

exhaustion.set(cid, config.storage, config.exhaustion)

doPlayerSendCancel(cid, "Foi alterada a roupa de " .. members .. " membros.")

return true

end

 

NÃO FUNCIONOU!  http://prntscr.com/4vds08

up

up

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.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo