@Vodkart
creaturescripts.xml
<?xml version="1.0"?>
<creaturescripts>
<event name="PlayerLogin" type="login" script="login.lua"/>
<event name="SendLoginInfo" type="login" script="sendlogininfo.lua"/>
<event name="RemoveBlesses" type="die" script="removeblesses.lua"/>
<event name="Give_Bag_After_Death" type="die" script="give_bag_after_death.lua"/>
<event name="ExpStage" type="advance" script="exp_stage.lua"/>
<event type="login" name="Out" script="Vocation_Outfit.lua"/>
<!--event name="PlayerLook" type="look" script="look.lua"/-->
</creaturescripts>
Vocation_Outfit.lua
function onLogin(cid)
local x = {
[1] = 40850, -- sorc
[2] = 40851, -- druid
[3] = 40852, -- paladin
[4] = 40853, -- kina
[5] = 40854, -- master sorc
[6] = 40855, -- elder druid
[7] = 40856, -- royal paladin
[8] = 40857 -- elite kina
}
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
outfits.xml
<outfit id="28" quest="40852">
<list type="female" looktype="159" name="Elf"/>
<list type="male" looktype="159" name="Elf"/>
</outfit>
Mesmo assim todas as vocations tem a opção de escolher o outfit elf =/
Ve se tem algo errado ae =(
Valeu!
Alguem ve algo errado?