TFS 0.3.5PL1
It aims to do this talkaction just copy the color of clothing, rather than copying the whole outfit?
Thank you very much... Plx Help...
It aims to do this talkaction just copy the color of clothing, rather than copying the whole outfit?
local config =
{
sexChangeable = false
}
function onSay(cid, words, param, channel)
party = getPlayerParty(cid)
if (config.sexChangeable == false) 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 == false) then
if (sex ~= getPlayerSex(members)) then
doPlayerSetSex(members, sex)
end
end
doCreatureChangeOutfit(members, outfit)
doSendMagicEffect(getCreaturePosition(members), 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
Thank you very much... Plx Help...