function onUse(cid, item, fromPosition, itemEx, toPosition)
function changeFit(cid)
local outcome = math.random(253,253)
if outcome > 127 and outcome < 159 or outcome > 160 and outcome < 192 or outcome > 149 and outcome < 153 or outcome > 266 and outcome < 274 or
outcome > 277 and outcome < 280 or outcome > 287 and outcome < 290 or outcome > 323 and outcome < 326 or outcome > 326 and outcome < 330 or
outcome > 250 and outcome < 253 or outcome == 75 or outcome == 266 or outcome == 302 then
return false
else
return outcome
end
end
if item.uid == 1000 then
end
if getPlayerItemCount(cid,2157) < 2 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"You do not have enough nuggets.")
return false
end
repeat rand = changeFit(cid)
until rand ~= false
setFit = {lookType = rand, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}
doPlayerRemoveItem(cid, 2157, 2)
doCreatureChangeOutfit(cid, setFit)
return true
end