Foi isso o que você quis dizer?
function onLogin(cid) if getPlayerVocation(cid) == 1 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 137, 0) else doPlayerAddOutfit(cid, 129, 0) end end if getPlayerVocation(cid) == 2 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 138, 0) else doPlayerAddOutfit(cid, 130, 0) end end if getPlayerVocation(cid) == 3 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 139, 0) else doPlayerAddOutfit(cid, 131, 0) end end if getPlayerVocation(cid) == 4 then if getPlayerSex(cid) == 0 then doPlayerAddOutfit(cid, 140, 0) else doPlayerAddOutfit(cid, 132, 0) end end return true endSe foi isso ainda me resta uma duvida. Não aparece mais mensagens de erro, entretanto eu não consigo entrar no jogo caso esse creaturescripts esteja em funcionamento. O que poderia ser?
Tag utilizada:
<event type="login" name="Outfits" script="outfits.lua"/>
Tente com o return true, sem ele você não poderá logar, pois ele retorna uma resposta para a function, no caso true = verdadeiro, o return true deve ficar antes do ultimo end, como eu coloquei ai em cima... qualquer coisa o Killua resolve, pois eu creio que seja somente isso.
Boa Sorte!






info
Grupo: Campones
Registrado: 14/01/08
Posts: 10
Reputação: 0
Foi isso o que você quis dizer?
Se foi isso ainda me resta uma duvida. Não aparece mais mensagens de erro, entretanto eu não consigo entrar no jogo caso esse creaturescripts esteja em funcionamento. O que poderia ser?
Tag utilizada: