testa assim
local gotenks = {lookType=49}
local gogeta = {lookType=315}
local gogeta1 = {lookType=359}
local gogeta2 = {lookType=199}
local gogeta3 = {lookType=208}
function onSay(cid, words, param)
if exhaustion.get(cid, 106) then
doPlayerSendCancel(cid, 'Slow down.')
return true
end
exhaustion.set(cid, 106, 1)
local mana = 500
local health = 500
local mana1 = 3000
local health1 = 3000
local mana2 = 4000
local health2 = 4000
---Gotenks---
if getPlayerVocation(cid) == 199 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,200)
doCreatureChangeOutfit(cid, gotenks)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Goten! You need 50 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 197 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,200)
doCreatureChangeOutfit(cid, gotenks)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 17)
else
doPlayerSendCancel(cid, "Chibi Trunks! You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Gogeta---
elseif getPlayerVocation(cid) == 6 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,224)
doCreatureChangeOutfit(cid, gogeta)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Goku! You need 200 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 149 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,226)
doCreatureChangeOutfit(cid, gogeta)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Vegeta! You need 200 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---Gogeta gt---
elseif getPlayerVocation(cid) == 10 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,225)
doCreatureChangeOutfit(cid, gogeta1)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Goku! You need 200 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 153 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,227)
doCreatureChangeOutfit(cid, gogeta1)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Vegeta! You need 300 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 11 then
if getPlayerLevel(cid) >= 300 then
doPlayerSetVocation(cid,256)
doCreatureChangeOutfit(cid, gogeta2)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Goku! You need 300 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 154 then
if getPlayerLevel(cid) >= 300 then
doPlayerSetVocation(cid,257)
doCreatureChangeOutfit(cid, gogeta2)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Vegeta! You need 300 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 12 then
if getPlayerLevel(cid) >= 450 then
doPlayerSetVocation(cid,258)
doCreatureChangeOutfit(cid, gogeta3)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Goku! You need 450 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 155 then
if getPlayerLevel(cid) >= 450 then
doPlayerSetVocation(cid,259)
doCreatureChangeOutfit(cid, gogeta3)
doSendAnimatedText(getCreaturePosition(cid), "Fusion!", 50)
doSendMagicEffect(getPlayerPosition(cid), 148)
else
doPlayerSendCancel(cid, "Vegeta! You need 450 level to fusion.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- End ---
else
doPlayerSendCancel(cid, "Sorry.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
return 0
end




info
Grupo: Campones
Registrado: 13/03/14
Posts: 35
Reputação: 0
gente quero colocar para todas as fusões de goku e a de vegeta
distransformar em 5 minutos
ou seja voltar a vocação anterior
meu scropter
fusion
Editado Maio 1 por Madaraaa