hsduasuhasudhasudhuasdsad
era sono mesmo ^^,
obrigado pela ajuda garou essa parte me ajudou muito .
Seu erro foi utilizar getCreatureOutfit(cid) fora do escopo da função onLogin(cid), de modo que o parâmetro cid na tabela vai retornar nulo.
dalvor tbm obrigado .
@GAROU
esse script seu
local VOCATION_OUTFITS = {
[1] = {
[0] = 128,
[1] = 136,
},
}
function onLogin(cid)
local tmp = VOCATION_OUTFITS[getPlayerVocation(cid)][getPlayerSex(cid)]
if tmp then
local outfit = getCreatureOutfit(cid)
outfit.lookType = tmp
doCreatureChangeOutfit(cid, outfit)
end
return true
end
ta com o sexo invertido
então deixei
local outfits = {
[1] = {lookType = 128}
[2] = {lookType = 134}
}
function onLogin(cid)
local tmp = outfits[getPlayerVocation(cid)][getPlayerSex(cid)]
if tmp then
local outfit = getCreatureOutfit(cid)
outfit.lookType = tmp
doCreatureChangeOutfit(cid, outfit)
end
return true
end







info
Grupo: Marquês
Registrado: 05/07/09
Posts: 1.3k
Reputação: +732
Desisto, você só pode ser lesado.
Tchau.