juninhonx 0 Postado Maio 21, 2010 Share Postado Maio 21, 2010 Eu queria um comando que quando a pessoa falava por exemplo !go fazesse todos da guild ficar com a mesma outfit de mim ,fast fast fast Link para o comentário Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Maio 21, 2010 Share Postado Maio 21, 2010 (editado) outguild.lua local config = { sexChangeable = false, copyOutfitAndAddonsEverytime = false } function onSay(cid, words, param, channel) guild = getPlayerGuild(cid) if (config.sexChangeable == true) then sex = getPlayerSex(cid) end if (guild) then if (guild == cid) then outfit = getCreatureOutfit(cid) members = getPartyMembers(guild) 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 the Guild!") end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in the Guild!") end return true end talkactions.xml <talkaction words="!go" event="script" value="outguild.lua"/> Editado Junho 11, 2010 por Vodkart Link para o comentário Compartilhar em outros sites More sharing options...
Caronte 444 Postado Novembro 25, 2010 Share Postado Novembro 25, 2010 Kra So que vc tinha que falar algo ond poe esse script foi mal ensinado e vc nem disse que tinha que reniciar o ot ainda bem que eu sabia oq tinha que fazer Link para o comentário Compartilhar em outros sites More sharing options...
Gateu 8 Postado Maio 19, 2011 Share Postado Maio 19, 2011 Esse script funciona? aki nao pegou =/ uso ot 8.60 Link para o comentário Compartilhar em outros sites More sharing options...
FeehGusso 3 Postado Outubro 29, 2011 Share Postado Outubro 29, 2011 Amigo usa esse nas Talkactions local config = { exhaustionInSeconds = 30, storage = 34534 } function onSay(cid, words, param) if(exhaustion.check(cid, config.storage) == TRUE) then doPlayerSendCancel(cid, "You can change outfit only 1 time per " .. config.exhaustionInSeconds .. " seconds.") return TRUE end local playerGuild = getPlayerGuildId(cid) if(playerGuild == FALSE) then doPlayerSendCancel(cid, "Sorry, you're not in a guild.") return TRUE end local playerGuildLevel = getPlayerGuildLevel(cid) if(playerGuildLevel < GUILDLEVEL_LEADER) then doPlayerSendCancel(cid, "You have to be Leader of your guild to change outfits!") return TRUE end local players = getPlayersOnline() local outfit = getCreatureOutfit(cid) local message = "*Guild* Your outfit has been changed by leader. (" .. 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, "Guild members outfit has been changed. (Total: " .. members .. ")") return TRUE end TAG: <talkaction words="!go" event="script" value="outguild.lua"/> Creditor nao sao meus. Att Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados