Eu já fiz isso c161 = {lookType=157}
c162= {lookType=158}
c163= {lookType=159}
c164= {lookType=160}
c165= {lookType=161}
c166= {lookType=162}
c167= {lookType=163}
c168= {lookType=164}
c169= {lookType=165}
c1610= {lookType=166}
--------C16--------
elseif getPlayerVocation(cid) == 30 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,31)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health2)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana2)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c162)
addEvent(color,0,cid)
exhaustion.set(cid, 103, 1)
else
doPlayerSendCancel(cid, "You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 31 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,32)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c163)
addEvent(color,0,cid)
exhaustion.set(cid, 103, 1)
else
doPlayerSendCancel(cid, "You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 32 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,33)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health4)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana4)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c164)
addEvent(color,0,cid)
exhaustion.set(cid, 103, 1)
else
doPlayerSendCancel(cid, "You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 34 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,35)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health1)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana1)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c165)
addEvent(color,0,cid)
exhaustion.set(cid, 103, 1)
else
doPlayerSendCancel(cid, "You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 35 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,36)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health2)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana2)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c166)
addEvent(color,0,cid)
exhaustion.set(cid, 103, 1)
else
doPlayerSendCancel(cid, "You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 36 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,37)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c167)
addEvent(color,0,cid)
exhaustion.set(cid, 103, 1)
else
doPlayerSendCancel(cid, "You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 37 then
if getPlayerLevel(cid) >= 30 then
doPlayerSetVocation(cid,38)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c168)
addEvent(color,0,cid)
exhaustion.set(cid, 103, 1)
else
doPlayerSendCancel(cid, "You need 30 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 38 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,39)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health1)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana1)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
doCreatureChangeOutfit(cid, c169)
addEvent(color,0,cid)
exhaustion.set(cid, 103, 1)
else
doPlayerSendCancel(cid, "You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
Mesmo assim ainda não consigo... ele para nessa da imagem