Teddy
SweStream.se
can i make like some outfit are only for some vocation like if i make a new vocation "skeleton" so they only can use skeleton outfits?
function onLogin(cid)
local tmp = getCreatureOutfit(cid)
tmp.lookType = 33 --creature looktype
local voc = 4 -- vocation number
if getPlayerVocation(cid) == voc then
doCreatureChangeOutfit(cid, tmp)
end
return true
end
local outfit = {[4] = {look = 33},[2] = {look = 32},[1] = {look = 23}}
function onLogin(cid)
local out = outfit[getPlayerVocation(cid)]
if (not out)then
return true
end
local tmp = getCreatureOutfit(cid)
tmp.lookType = out.look
doCreatureChangeOutfit(cid, tmp)
return true
end