local outfits = {
[60] = {storage = 30000, maleID = 1, femaleID = 2, name = "Citizen"}
}
function onAdvance(cid, skill, oldlevel, newlevel)
if skill == SKILL_LEVEL then
local OUTFIT = outfits[skill]
if not OUTFIT then return true end
if getPlayerStorageValue(cid, OUTFIT.storage) ~= 1 then
if getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid, OUTFIT.femaleID)
doPlayerAddOutfitAddon(cid, OUTFIT.femaleID, 1)
doPlayerAddOutfitAddon(cid, OUTFIT.femaleID, 2)
else
doPlayerAddOutfit(cid, OUTFIT.maleID)
doPlayerAddOutfitAddon(cid, OUTFIT.maleID, 1)
doPlayerAddOutfitAddon(cid, OUTFIT.maleID, 2)
end
setPlayerStorageValue(cid, OUTFIT.storage, 1)
end
end
return true
end