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"/>






info
Grupo: Campones
Registrado: 02/08/09
Posts: 49
Reputação: 0
Char no Tibia: thien airo
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