Ir para conteúdo

ajuda colocar todas as fusões de goku e vegeta para distransformar em 5 minutos


Madaraaa

Posts Recomendados

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

 

 

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
local health3 = 0
local mana3 = 0
---Gotenks---
if getPlayerVocation(cid) == 199 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,200)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+health3)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+mana3)
doCreatureAddHealth(cid, 1)
doCreatureAddMana(cid, 1)
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

 

 

Editado por Madaraaa
Link para o comentário
Compartilhar em outros sites

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

 

 

Link para o comentário
Compartilhar em outros sites

mano não e para todos distransformar não so e goku e vegeta gotem e trunks e para ficar como esta so quero colocar para vegeta e goku distransformar em 5 minutos pode por tambem para quando secar a mana ou então quando logar eles distransformar quero todas as fusoes de goku e de vegeta

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...