esperimenta fazer assim, não sei se vai funcionar mais n custa tentar....
local config = {--[iD] = { lvl, novo id, looktype, Efeito}
[1] = {level = 50, newvoc = 2, outfit = 37, eff = 56},
[2] = {level = 100, newvoc = 3, outfit = 18, eff = 57},
[3] = {level = 150, newvoc = 4, outfit = 71, eff = 58},
[4] = {level = 200, newvoc = 5, outfit = 70, eff = 59}
}
function onSay(cid, words, param, channel)
doPlayerSay(cid, "transform")
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You Transform!")
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You need level " .. voc[1] .. " to transform.")
end
else
doPlayerSendCancel(cid, "You not use to transform!")
end
return true
end






info
Grupo: Campones
Registrado: 13/01/13
Posts: 78
Reputação: 0
Teria como colocar para quando o player quando deslogar n voltar para a primeira vocacão somente quando usar a magia de reverter ?