outfits de male qnd logarem primeira vez.
function onLogin(cid)
local config = {
[1] = {130, 0, 85, 85, 0, 3}, -- dentro do [ ] coloque o numero da vocaçao e { } coloque o numero da looktype
[2] = {130, 0, 90, 90, 0, 3},
[3] = {129, 0, 82, 82, 0, 3},
[4] = {134, 0, 77, 77, 0, 3}
}
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerStorageValue(cid, 1300000) < 0 then
if getPlayerSex(cid) == 1 then
local newtype = {lookType = voc[1], lookHead = voc[2], lookBody = voc[3], lookLegs = voc[4], lookFeet = voc[5], lookAddons = voc[6]}
doCreatureChangeOutfit(cid, newtype)
setPlayerStorageValue(cid, 1300000, 1)
end
end
end
return TRUE
end
edita aqui nessa parte.
[1] = {130, 0, 85, 85, 0, 3}, -- dentro do [ ] coloque o numero da vocaçao e { } coloque o numero da looktype
[2] = {130, 0, 90, 90, 0, 3},
[3] = {129, 0, 82, 82, 0, 3},
[4] = {134, 0, 77, 77, 0, 3}
explicando.
[1] vocation {130 looktype, 0 cor primaria, 90 cor segundaria, 90 cor terciaria, 0 cor quartenaria. 3 addons. 3 = as 2 addons, 1 = addon 1. 2 = addon 2.
o primeiro script ta pra males, pra female use esse script tb. faz igual o do Roksas.
function onLogin(cid)
local config = {
[1] = {141, 0, 85, 85, 0, 3}, -- dentro do [ ] coloque o numero da vocaçao e { } coloque o numero da looktype
[2] = {141, 0, 90, 90, 0, 3},
[3] = {138, 0, 82, 82, 0, 3},
[4] = {142, 0, 77, 77, 0, 3}
}
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerStorageValue(cid, 1310000) < 0 then
if getPlayerSex(cid) == 0 then
local newtype = {lookType = voc[1], lookHead = voc[2], lookBody = voc[3], lookLegs = voc[4], lookFeet = voc[5], lookAddons = voc[6]}
doCreatureChangeOutfit(cid, newtype)
setPlayerStorageValue(cid, 1310000, 1)
end
end
end
return TRUE
end