Me adiciona no msn que te passo ele =]
rushxtibia@hotmail.com
info
Grupo: Banidos
Registrado: 21/01/12
Posts: 842
Reputação: +234
Char no Tibia: Stephan

Me adiciona no msn que te passo ele =]
rushxtibia@hotmail.com
info
Grupo: Visconde
Registrado: 24/01/11
Posts: 254
Reputação: +29
Char no Tibia: Zemekiz

Adicionado VOU TESTAR E DPS DO REP +
info
Grupo: Visconde
Registrado: 23/02/08
Posts: 273
Reputação: +101
Char no Tibia: Foxx Rookslayer

Posta seu script que eu concerto.
No caso seria so tirar o lookType = outfit.lookType assim so mudaria as cores, e nao o outfit.
info
Grupo: Visconde
Registrado: 24/01/11
Posts: 254
Reputação: +29
Char no Tibia: Zemekiz

Pt
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 -> xTibia.
Guild
---- 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
info
Grupo: Visconde
Registrado: 23/02/08
Posts: 273
Reputação: +101
Char no Tibia: Foxx Rookslayer

Party:
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.loookType = getPlayerOutfit(cid2).lookType
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 -> xTibia.
Guild:
---- 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.lookAddons = tidOutfit.lookAddons
end
tmp.lookType = tidOutfit.lookType
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
Editado Fevereiro 6 por Byerne
info
Grupo: Visconde
Registrado: 24/01/11
Posts: 254
Reputação: +29
Char no Tibia: Zemekiz
Queria 1 talkaction que a pessoa falasse !pt e todos que tivesse party virassem mesmo outfit cor ...(só o lider pode usar)
Queria 1 talkaction que a pessoa falasse !outfitguild e todos que tivesse guild virassem mesmo outfit cor ...(só o lider pode usar)
JÁ TEM ESSE TUTORIAL NO XTIBIA!!!
+ TEM BUG
BUG= SE TIVER 1 PLAYER HOMEM NA PT E 1 MULHER E LIDER FOR HOMEM A MULHER VIRA HOMEM( E VICE E VERSA)