function onSay(cid, words)
local voc = getPlayerVocation(cid) --Obter Vocação do Player
local pos = getCreaturePosition(cid) --Obter Posição do Player
local lvl = getPlayerLevel(cid) --Obter LvL do Player
local minutos = 465656565 -- Quanto tempo depois em minutos a transformação vai sumir?
if voc == 0 then
doSendMagicEffect(pos,32)
doPlayerSendCancel(cid, "Você não pode se transformar")
end
if lvl >= 50 then -- LvL necessario para se transformar
if voc == 369 then
doSendMagicEffect(pos,32)
doPlayerSetVocation(cid,voc +380)
doSetCreatureOutfit(cid,{lookType=280,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50},4 * 60 * 1000)
doCreatureSay(cid, "Transform...UaaaaaaAaahHhhh!!!", TALKTYPE_ORANGE_1)
addEvent(returnTransform, minutos*9999*60, cid)
end
if voc == 380 then
doSendMagicEffect(pos,2)
dolvlPlayerSetVocation(cid,voc +50)
doSetCreatureOutfit(cid,{lookType=120,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50},4 * 60 * 1000)
doCreatureSay(cid, "Transform...UaaaaaaAaahHhhh!!!", TALKTYPE_ORANGE_1)
addEvent(returnTransform, minutos*9999*60, cid)
end
if voc == 3 then
doSendMagicEffect(pos,2)
doPlayerSetVocation(cid,voc +4)
doSetCreatureOutfit(cid,{lookType = 440, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons},4 * 60 * 1000)
doCreatureSay(cid, "Transform...UaaaaaaAaahHhhh!!!", TALKTYPE_ORANGE_1)
addEvent(returnTransform, minutos*9999*60, cid)
end
if voc == 4 then
doSendMagicEffect(pos,2)
doPlayerSetVocation(cid,voc +4)
doSetCreatureOutfit(cid,{lookType = 440, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons},4 * 60 * 1000)
doCreatureSay(cid, "Transform...UaaaaaaAaahHhhh!!!", TALKTYPE_ORANGE_1)
addEvent(returnTransform, minutos*9999*60, cid)
end
else
doPlayerSendCancel(cid, "Você não possui o lvl necessario!")
end
end


info
Grupo: Campones
Registrado: 23/06/11
Posts: 16
Reputação: +11
Gênero: Masculino
Ajuda ai galera ta tudo certo agora so falta bota pra se transformar em tal lvl eu botei so q nao ta funfando qualquer lvl se transformar olha
Ajuda ai quem me ajuda do resp