Postado Outubro 7, 2014 10 anos 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 Eskyloif not isInParty(cid) or getPlayerParty(cid) ~= cid thenreturn doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não é líder de uma party")endlocal outfit = getCreatureOutfit(cid)local addons = outfit.lookAddonsfor _, cid2 in ipairs(getPartyMembers(cid)) dooutfit.lookAddons = 0doCreatureChangeOutfit(cid2, outfit)doPlayerSendTextMessage(cid2, MESSAGE_STATUS_CONSOLE_BLUE, "Outfit da party trocado.")if canPlayerWearOutfit(cid2, outfit.lookType, addons) thenoutfit.lookAddons = addons doCreatureChangeOutfit(cid2, outfit)return trueelseif addons == 3 thenoutfit.lookAddons = (canPlayerWearOutfit(cid2, outfit.lookType, 1) and 1) or (canPlayerWearOutfit(cid2, outfit.lookType, 2) and 2) or 0doCreatureChangeOutfit(cid2, outfit)endendreturn trueend --made in MG by Eskylo Editado Outubro 7, 2014 10 anos por Jack Zika (veja o histórico de edições)
Postado Outubro 9, 2014 10 anos 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 Outubro 14, 2014 10 anos 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.