• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Edit talkaction outfit, plx

eletross

New Member
Joined
Sep 15, 2008
Messages
39
Reaction score
0
TFS 0.3.5PL1

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...
;)
 
Back
Top