local c = {
outfit = {lookType = 160, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0},
time = 1, -- Hours
gm = 3
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerAccess(cid) < c.gm) then
if(getCreatureOutfit(cid, c.outfit) == false) then
doSetCreatureOutfit(cid, c.outfit, c.time * 3600)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "You already look like a dwarf.")
end
else
doPlayerSendCancel(cid, "Gamemasters do not need to change their outfits.")
end
return true
end