local cfg = {
cost = 300,
id = 2157
}
local ids = {192, 26 ,200 ,77 ,198 ,62 ,60 ,120 ,15 } -- put there ids of your outfits
function onUse(cid, item, frompos, item2, topos)
if(getPlayerItemCount(cid, cfg.id) >= cfg.cost) then
doPlayerRemoveItem(cid, cfg.id, cfg.cost)
local outfit = {lookType = ids[math.random(#ids)]}
return doSetCreatureOutfit(cid, outfit)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You haven't got enough gold nuggets for this outfit.")
end
end