Então, isso eu já tirei, mas os jogadores novos nascem como Citizen de qualquer maneira, só quando troca de roupa que ele fica normal, eu queria que já viesse com a Outfit da Vocação.
function onLogin(cid)
local x = {
[0] = 7000, -- Villager
[1] = 7001, -- Warrior
[2] = 7004, -- Scout
[3] = 7007, -- Paladin
[4] = 7010, -- Druid
[5] = 7013, -- Wizard
[6] = 7016, -- Cleric
[7] = 7002, -- Knight
[8] = 7005, -- Hunter
[9] = 7008, -- Gladiator
[10] = 7011, -- Herbomancer
[11] = 7014, -- Warlock
[12] = 7017, -- Bishop
[13] = 7003, -- Slayer
[14] = 7006, -- Crackshooter
[15] = 7009, -- Templar
[16] = 7012, -- Forest Ancient
[17] = 7015, -- Soultaker
[18] = 7018 -- Prophet
}
local v = x[getPlayerVocation(cid)]
if (not v) then
return true
end
for i = 1, #x do
setPlayerStorageValue(cid,x[i],0)
end
setPlayerStorageValue(cid, v, 1)
return TRUE
end