local redOutfit_male = {
lookType = math.random(128,134),
lookHead = 94,
lookBody = 94,
lookLegs = 94,
lookFeet = 94,
lookTypeEx = 0,
lookAddons = 3
}
local redOutfit_female = {
lookType = math.random(136,142),
lookHead = 94,
lookBody = 94,
lookLegs = 94,
lookFeet = 94,
lookTypeEx = 0,
lookAddons = 3
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerGroupId(cid) ~= 1 then
if getPlayerSex(cid) == 1 then
doCreatureChangeOutfit(cid, redOutfit_male)
elseif getPlayerSex(cid) ~= 1 then
doCreatureChangeOutfit(cid, redOutfit_female)
end
doPlayerSetGroupId(cid,1)
doCreatureSay(cid, "You are demoted to player, Plz log out", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid,"You are already a player.")
return true
end
return true
end