Postado Julho 16, 2014 10 anos Agora esse vai pegar!!! <talkaction words="!party" event="script" value="party.lua"/> function onSay(cid, words, param, channel) 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 Editado Julho 16, 2014 10 anos por slyton (veja o histórico de edições) Servidor com sources estáveis, com sistemas completos e tudo atualizados, para saber mais acessem https://www.facebook.com/pokeVKS
Postado Julho 16, 2014 10 anos Autor Olha cara, deu certo e vou lhe dar um REP+ por isso... Agora você consegue colocar efeito? E quando dou o comando e troca a outfit não aparece msg nenhuma... Aqui está um que tem o efeito: local config = {sexChangeable = false,copyOutfitAndAddonsEverytime = false}function onSay(cid, words, param, channel)party = getPlayerParty(cid)if (config.sexChangeable == true) thensex = getPlayerSex(cid)endif (party) thenif (party == cid) thenoutfit = getCreatureOutfit(cid)members = getPartyMembers(party)if (#members >= 1) thentmp = outfitfor i=1,#members doif (config.sexChangeable == true) thenif (sex ~= getPlayerSex(members[i])) thendoPlayerSetSex(members[i], sex)endendif(config.copyOutfitAndAddonsEverytime == false and canPlayerWearOutfit(members[i], tmp.lookType, tmp.lookAddons) ~= true) thenlocal tmpOutfit = getCreatureOutfit(members[i])tmp.lookType = tmpOutfit.lookType tmp.lookAddons = tmpOutfit.lookAddonsenddoCreatureChangeOutfit(members[i], tmp)doSendMagicEffect(getCreaturePosition(members[i]), 66)endendelsedoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "This command can use only leader of a party!")endelsedoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in a party!")endreturn trueend
Postado Julho 16, 2014 10 anos 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 doSendMagicEffect(getCreaturePosition(tid), 66) doCreatureChangeOutfit(tid, tmp) doPlayerSendTextMessage(tid, MESSAGE_INFO_DESCR, message) members = members + 1 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 testa ae Servidor com sources estáveis, com sistemas completos e tudo atualizados, para saber mais acessem https://www.facebook.com/pokeVKS
Postado Julho 16, 2014 10 anos Autor Errinho na distro :/ [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/go.lua:16: 'end' expected (to close 'if' at line 11) near 'doSendMagicEffect' [15/07/2014 23:07:20] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/go.lua) [15/07/2014 23:07:20] data/talkactions/scripts/go.lua:16: 'end' expected (to close 'if' at line 11) near 'doSendMagicEffect'
Postado Julho 16, 2014 10 anos ve esse não precisa reiniciar o servidor é só falar /reload talkactions function onSay(cid, words, param, channel) if not isInParty(cid) or getPlayerParty(cid) ~= cid then return doPlayerSendTextMessage(cid, "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) doSendMagicEffect(getPlayerPosition(cid), 66) doPlayerSendTextMessage(cid2, "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 Editado Julho 16, 2014 10 anos por slyton (veja o histórico de edições) Servidor com sources estáveis, com sistemas completos e tudo atualizados, para saber mais acessem https://www.facebook.com/pokeVKS
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.