Falae gente .... Estou aqui por que quero uma ajudinha na TalkAction!!Vamos la , eu tenho o seguinte script :
function onSay(cid, words, param)
local outfit ={lookType=37,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
local outfit2 ={lookType=71,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
local outfit3 ={lookType=70,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50}
if getPlayerVocation(cid) == 1 and getPlayerLevel(cid)>=50 then
doPlayerSetVocation(cid,2)
doSetCreatureOutfit(cid, outfit, 1000000)
elseif getPlayerVocation(cid) == 2 and getPlayerLevel(cid)>=100 then
doPlayerSetVocation(cid,3)
doSetCreatureOutfit(cid, outfit2, 1000000)
elseif getPlayerVocation(cid) == 3 and getPlayerLevel(cid)>=150 then
doPlayerSetVocation(cid,4)
doSetCreatureOutfit(cid,outfit3,1000000)
else
doPlayerSendCancel(cid,"Voce não pode se transformar")
end
end
Ele funciona perfeitamente...so tem 2 problemas :
.Quando voce da logout e depois login ele vai para a vocation 0
..Quando voce da logout e depois login ele volta para a outfit que ele tava antes de usar qualquer transformaçao