Pelo oque eu entendi é isso:
--[VOC] = {voc = NewVoc, looktype = looktype do outfit}
local vocs = {
[0] = {voc = 11, looktype = 231},
[5] = {voc = 9, looktype = 231},
[2] = {voc = 10, looktype = 231},
[6] = {voc = 10, looktype = 231},
[3] = {voc = 11, looktype = 231},
[7] = {voc = 11, looktype = 231},
[4] = {voc = 12, looktype = 231},
[8] = {voc = 12, looktype = 231},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 1992) == 1 then
return doCreatureSay(cid, "Voce Ja ganhou a Armadura", TALKTYPE_ORANGE_1)
end
if getPlayerLevel(cid) < 20 then
return doCreatureSay(cid, "Voce deve ter level 20 ou mais para usar o Item!", TALKTYPE_ORANGE_1)
end
doCreatureChangeOutfit(cid, {lookType = vocs[getPlayerVocation(cid)].looktype})
doPlayerSetVocation(cid, vocs[getPlayerVocation(cid)].voc)
doSendMagicEffect(fromPosition, 2)
doRemoveItem(item.uid, 1)
return setPlayerStorageValue(cid, 1992, 1)
end
Para configurar muda apenas a tabela lá com o nome de looktype




info
Grupo: Campones
Registrado: 19/11/15
Posts: 23
Reputação: +2
gostaria de perguntar uma coisa!Dado este Script:
qual comando faço pra colocar uma Outfit? Pra que a nova vocação, ganhe uma Nova Outfit Também?
Obrigado!