Postado Dezembro 27, 2012 12 anos Preciso de 2 talk, uma que muda outifit da guild, se o cara for o leader, e outro se estiverem em party e o lider da party mudar. (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
Postado Dezembro 27, 2012 12 anos Mudando a Outfit da Guild : Vá em / data/Talkactions/Scripts , crie um arquivo chamado changeoutfit.lua e dentro ponha ---- Script By Daian ---- local config = { exhaustionInSeconds = 30, storage = 34534 } function onSay(cid, words, param) if(exhaustion.check(cid, config.storage) == TRUE) then doPlayerSendCancel(cid, "Voçê só pode alterar o Outfit da guild a cada " .. config.exhaustionInSeconds .. " segundos.") return TRUE end local playerGuild = getPlayerGuildId(cid) if(playerGuild == FALSE) then doPlayerSendCancel(cid, "Desculpe, mais voçê não tem guild.") return TRUE end local playerGuildLevel = getPlayerGuildLevel(cid) if(playerGuildLevel < GUILDLEVEL_LEADER) then doPlayerSendCancel(cid, "Voçê tem que ser Lider de uma guild para executar este comando!") return TRUE end local players = getPlayersOnline() local outfit = getCreatureOutfit(cid) local message = "*Guild* Seu Outfit foi mudado pelo lider da guild. (" .. getCreatureName(cid) .. ")" local members = 0 local tmp = {} for i, tid in ipairs(players) do if(getPlayerGuildId(tid) == playerGuild and cid ~= tid) then tmp = outfit if(canPlayerWearOutfit(tid, outfit.lookType, outfit.lookAddons) ~= TRUE) then local tidOutfit = getCreatureOutfit(tid) tmp.lookType = tidOutfit.lookType tmp.lookAddons = tidOutfit.lookAddons end doSendMagicEffect(getCreaturePosition(tid), 66) doCreatureChangeOutfit(tid, tmp) doPlayerSendTextMessage(tid, MESSAGE_INFO_DESCR, message) members = members + 1 end end exhaustion.set(cid, config.storage, config.exhaustionInSeconds) doPlayerSendCancel(cid, "Outfit da guild foi mudado com sucesso. (Total de Mudanças: " .. members .. ")") return TRUE end Agora vá em talkactions.xml e lá adicione <talkaction words="!changeoutfit" script="changeoutfit.lua"/> Créditos : Daianpf2011 Editado Dezembro 27, 2012 12 anos por tonyplyson (veja o histórico de edições) Clique na imagem e veja nosso TOPICO OFFICIAL
Postado Dezembro 27, 2012 12 anos Leader mudando a outfit da party: Crie um arquivo chamado go.lua em talkactions. local config = { sexChangeable = false, copyOutfitAndAddonsEverytime = false } function onSay(cid, words, param, channel) party = getPlayerParty(cid) if (config.sexChangeable == true) then sex = getPlayerSex(cid) end if (party) then if (party == cid) then outfit = getCreatureOutfit(cid) members = getPartyMembers(party) if (#members >= 1) then tmp = outfit for i=1,#members do if (config.sexChangeable == true) then if (sex ~= getPlayerSex(members[i])) then doPlayerSetSex(members[i], sex) end end if(config.copyOutfitAndAddonsEverytime == false and canPlayerWearOutfit(members[i], tmp.lookType, tmp.lookAddons) ~= true) then local tmpOutfit = getCreatureOutfit(members[i]) tmp.lookType = tmpOutfit.lookType tmp.lookAddons = tmpOutfit.lookAddons end doCreatureChangeOutfit(members[i], tmp) doSendMagicEffect(getCreaturePosition(members[i]), 66) end end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "This command can use only leader of a party!") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in a party!") end return true end Agora adicione a tag em talkactions.xml <talkaction words="!go" script="go.lua"/> Créditos: Peguei do meu OT, então não sei de quem é. Sign's Feito por: Anne MottaFeito por: Mim! kk ' Primeira Sign *-*
Postado Dezembro 27, 2012 12 anos A Da party . talkactions . 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 Att, Skyligh Entrada Como Membro 14 / 08 / 2012 Entrada Como Suporte 05 / 12 / 2012 Saída Como Suporte 06 / 01 / 2013 Contato : [email protected] / [email protected]
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.