local outfits = {
[1] = {{138, 130}, {141, 133}}, -- Mage Outfit, Summoner Outfit
[2] = {{138, 130}, {141, 133}}, -- Mage Outfit, Summoner Outfit
[3] = {{137, 129}}, -- Hunter Outfit
[4] = {{139, 131}} -- Knight Outfit
}
-- IMPORTANT: When adding more to this outfits array, make sure you put female lookType first before male.
function onLogin(player)
if player:getLastLoginSaved() == 0 then
local voc, sex = player:getVocation():getBase():getId(), player:getSex()
for key, outfit in pairs(outfits[voc]) do
player:addOutfit(outfit[sex + 1])
end
end
return true
end