Ir para conteúdo
  • 0

[Duvida] Script Spells Wodbo


jhonatanpp

Pergunta

Ollá Meus parceiros, gostaria de 1 ajudinha de vocês ae do X-Tibia pq sei que é o melhor forum para duvidas, download e bla, Vamos para oque interessa, meu servidor está com algums erros explicação:



Algumas magias que você usa no servidor ela sai normalmente mas da erro no gameserver.exe ou seja se todo mundo começar a atacar junto o servidor laga, uma das magias é hell granade.lua

 

fgfgxh.png

 

Script \/



 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat9, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, 3)

setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, 46)

setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, parameters.combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

doCombat(parameters.cid, parameters.combat2, parameters.var)

end

 

local function onCastSpell3(parameters)

doCombat(parameters.cid, parameters.combat3, parameters.var)

end

 

local function onCastSpell4(parameters)

doCombat(parameters.cid, parameters.combat4, parameters.var)

end

 

local function onCastSpell5(parameters)

doCombat(parameters.cid, parameters.combat5, parameters.var)

end

 

local function onCastSpell6(parameters)

doCombat(parameters.cid, parameters.combat6, parameters.var)

end

 

local function onCastSpell7(parameters)

doCombat(parameters.cid, parameters.combat7, parameters.var)

end

 

local function onCastSpell8(parameters)

doCombat(parameters.cid, parameters.combat8, parameters.var)

end

 

local function onCastSpell9(parameters)

doCombat(parameters.cid, parameters.combat9, parameters.var)

end

 

local function onCastSpell10(parameters)

doCombat(parameters.cid, parameters.combat9, parameters.var)

end

 

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10 }

addEvent(onCastSpell1, 0, parameters)

addEvent(onCastSpell2, 300, parameters)

addEvent(onCastSpell3, 600, parameters)

addEvent(onCastSpell4, 900, parameters)

addEvent(onCastSpell5, 1200, parameters)

addEvent(onCastSpell6, 1500, parameters)

addEvent(onCastSpell7, 1800, parameters)

addEvent(onCastSpell8, 2100, parameters)

addEvent(onCastSpell9, 2400, parameters)

addEvent(onCastSpell10, 2700, parameters)

 

end

 

 

 

 

Caso arrumou por favor diz como você fez para eu retirar de todas as magias que estão dando erro

 

Skype : Jholrichmmond

Msn : Jhonatanp_s@hotmail.com

Link para o comentário
Compartilhar em outros sites

Posts Recomendados

  • 0

A distro do wodbo é bugada... Se voce por pra rodar o mesmo script num server 8.54 ele roda de boa.

No entanto um bom scripter poderia adaptar o script.

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

  • 0

tenso, ele roda normalmente no jogo pois da erro apenas no gameserver. ou seja isso laga

 

e ja que tocaram no assunto de wodbo 8.54 eu tentei achar em varios forums, pls, brs , ingleses e não consegui achar 1 sv caso tenha algum passa ae ^^

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

  • 0

Esse ero acontece devido ao addevent, que as vezes antes de executar o player desloga, morre ou algo do tipo. Basta nas funções verificar se o parametro é valido como um player.

 

Script resolvido:

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat9, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, 46)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

local function onCastSpell1(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
end

local function onCastSpell2(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
end

local function onCastSpell3(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat3, parameters.var)
end
end

local function onCastSpell4(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat4, parameters.var)
end
end

local function onCastSpell5(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat5, parameters.var)
end
end

local function onCastSpell6(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat6, parameters.var)
end
end

local function onCastSpell7(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat7, parameters.var)
end
end

local function onCastSpell8(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat8, parameters.var)
end
end

local function onCastSpell9(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat9, parameters.var)
end
end

local function onCastSpell10(parameters)
if isPlayer(parameters.cid) then
doCombat(parameters.cid, parameters.combat9, parameters.var)
end
end


function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10 }
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 300, parameters)
addEvent(onCastSpell3, 600, parameters)
addEvent(onCastSpell4, 900, parameters)
addEvent(onCastSpell5, 1200, parameters)
addEvent(onCastSpell6, 1500, parameters)
addEvent(onCastSpell7, 1800, parameters)
addEvent(onCastSpell8, 2100, parameters)
addEvent(onCastSpell9, 2400, parameters)
addEvent(onCastSpell10, 2700, parameters)
end

 

* Se sua dúvida for sanada, use o botão denunciar para que um moderador venha e mova o tópico.

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

  • 0

Sim como eu falei no inicio do topico " Caso conseguir arrumar me diz como arruma " foi resolvido mas meu servidor a metade das magias estão dando o msm poblema e eu gostaria de arrumar todas, tem como me encinar ?

Link para o comentário
Compartilhar em outros sites

  • 0

Pra tu poder arrumar todas, precisa entender um pouco de logica de programação ou scripting.

Vamos ao script então, vou tentar te explicar um pouco e por consequência ajudar todos que tenham essa mesma duvida que você.

 

Esse erro ocorre nas funções chamadas pelo "addEvent", então em todas as funções que ele chamar você deve fazer um tratamento para que não ocorra esse erro.

 

Exemplo: Nesta linha de código,

addEvent(onCastSpell2, 300, parameters)

Ordena a execução da função "onCastSpell2" após 300 mile segundos, passando como informação a variável "parameters".

 

Variável - É um campo na memoria que guarda informações. Nesta linha é criada a variável "parameters" recebendo seus determinados valores:

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10 }

 

O erro que ocorre é que o script manda executar a função após 300 mile segundos, só que ao executar a função, se o player não estiver online vai gerar um erro dizendo que o player não foi encontrado.

 

Para resolver o erro no script você precisa ir na função que o "addEvent" executa:

local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end

E fazer uma verificação para saber se o player realmente esta presente na hora da execução:

local function onCastSpell2(parameters)
if isPlayer(parameters.cid) then         
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
end

Como pode ver é adicionado essa linha após o inicio da função:

if isPlayer(parameters.cid) then     

E essa linha no final para finalizar a verificação:

end

 

Você precisa fazer esse mesmo procedimento em todos os script que utiliza "addEvent" para poder resolver todos os erros.

Link para o comentário
Compartilhar em outros sites

  • 0

intão no caso do transforms.lua a onde você ta transformado lv 400 e desloga e loga e revert da erro tbm da uma olhada.

semttulotee.png

 

é o msm esquema ? se tiver como arrumar.

local combat = createCombatObject()



setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition = createConditionObject(CONDITION_OUTFIT)

setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)

addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)

setCombatCondition(combat, condition)

 

 

outfit = {lookType=357}

outfit1 = {lookType=358}

outfit2 = {lookType=359}

outfit3 = {lookType=360}

 

outfits = {lookType=361}

outfits2 = {lookType=362}

outfits3 = {lookType=373}

 

 

cooler = {lookType=379}

uub = {lookType=382}

freeza = {lookType=378}

kuririn2 = {lookType=352}

vegeta = {lookType=476}

bardoc = {lookType=380}

trunks = {lookType=374}

c17 = {lookType=375}

gohan = {lookType=381}

goku = {lookType=475}

brolly = {lookType=461}

cell = {lookType=477}

namekjin = {lookType=460}

ggotenks = {lookType=367}

buu = {lookType=474}

c18 = {lookType=376}

tsuful = {lookType=366}

 

 

gotenksgtssj = {lookType=169}

gotenksgtssj3 = {lookType=170}

 

sr1 = {lookType=328}

sr2 = {lookType=341}

sr3 = {lookType=80}

sr4 = {lookType=342}

sr5 = {lookType=355}

sr6 = {lookType=363}

 

videl1 = {lookType=336}

videl2 = {lookType=335}

videl3 = {lookType=337}

videl4 = {lookType=286}

videl5 = {lookType=383}

 

kidpan = {lookType=102}

teenpan = {lookType=330}

panssj = {lookType=331}

panssj3 = {lookType=332}

pangolden = {lookType=46}

panssj4 = {lookType=333}

panssj5 = {lookType=384}

 

kidjanemba = {lookType=280}

fatjanemba = {lookType=120}

superjanemba = {lookType=110}

ultimatejanemba = {lookType=134}

finaljanemba = {lookType=462}

 

tenshinaura = {lookType=350}

supertenshin = {lookType=351}

ultimatetenshin = {lookType=352}

ultimatetenshinaura = {lookType=353}

whitetenshin = {lookType=44}

redtenshin = {lookType=49}

yellowtenshin = {lookType=42}

demontenshin = {lookType=385}

 

s1 = {lookType=232}

s2 = {lookType=257}

s3 = {lookType=265}

s4 = {lookType=325}

s5 = {lookType=284}

 

Vegetto1 = {lookType=389}

Vegetto2 = {lookType=8}

Vegetto3 = {lookType=390}

Vegetto4 = {lookType=390}

Vegetto5 = {lookType=389}

Vegetto6 = {lookType=8}

Vegetto7 = {lookType=390}

Vegetto8 = {lookType=391}

vegetto = {lookType=392}

 

 

ext = 1000

 

function trans92(cid)

if getPlayerVocation(cid) == 317 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 191)

addEvent(trans92,ext,cid)

end

end

end

 

 

function trans93(cid)

if getPlayerVocation(cid) == 318 then

if getPlayerMana(cid) >= 0 then

addEvent(trans93,ext,cid)

end

end

end

 

 

function trans94(cid)

if getPlayerVocation(cid) == 319 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 191)

addEvent(trans94,ext,cid)

end

end

end

 

 

function trans95(cid)

if getPlayerVocation(cid) == 320 then

if getPlayerMana(cid) >= 0 then

addEvent(trans95,ext,cid)

 

end

end

end

---Kuririn---

function trans1(cid)

if getPlayerVocation(cid) == 313 then

if getPlayerMana(cid) >= 0 then

addEvent(trans1,ext,cid)

end

end

end

 

 

function trans2(cid)

if getPlayerVocation(cid) == 314 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 234)

addEvent(trans2,ext,cid)

 

end

end

end

 

 

function trans3(cid)

if getPlayerVocation(cid) == 315 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans3,ext,cid)

 

end

end

end

 

 

function trans4(cid)

if getPlayerVocation(cid) == 316 then

if getPlayerMana(cid) >= 0 then

addEvent(trans4,ext,cid)

 

end

end

end

 

 

---End Kuririn---

 

 

 

 

 

 

---Reborn Kuririn---

function trans5(cid)

if getPlayerVocation(cid) == 317 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 191)

addEvent(trans5,ext,cid)

end

end

end

 

 

function trans6(cid)

if getPlayerVocation(cid) == 318 then

if getPlayerMana(cid) >= 0 then

addEvent(trans6,ext,cid)

end

end

end

 

 

function trans7(cid)

if getPlayerVocation(cid) == 319 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 191)

addEvent(trans7,ext,cid)

end

end

end

 

 

function trans8(cid)

if getPlayerVocation(cid) == 320 then

if getPlayerMana(cid) >= 0 then

addEvent(trans8,ext,cid)

 

end

end

end

 

 

function trans9(cid)

if getPlayerVocation(cid) == 321 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 191)

addEvent(trans9,ext,cid)

 

end

end

end

 

 

function trans10(cid)

if getPlayerVocation(cid) == 322 then

if getPlayerMana(cid) >= 0 then

addEvent(trans10,ext,cid)

 

end

end

end

--- Reborn Kuririn End ---

 

 

---Shin---

function trans12(cid)

if getPlayerVocation(cid) == 324 then

if getPlayerMana(cid) >= 0 then

addEvent(trans12,ext,cid)

end

end

end

 

 

function trans13(cid)

if getPlayerVocation(cid) == 325 then

if getPlayerMana(cid) >= 0 then

addEvent(trans13,ext,cid)

 

end

end

end

 

 

function trans14(cid)

if getPlayerVocation(cid) == 326 then

if getPlayerMana(cid) >= 0 then

addEvent(trans14,ext,cid)

 

end

end

end

 

 

function trans15(cid)

if getPlayerVocation(cid) == 327 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(trans15,ext,cid)

 

end

end

end

 

 

---End Shin---

 

 

 

 

 

 

---Reborn Shin---

function trans16(cid)

if getPlayerVocation(cid) == 329 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(trans16,ext,cid)

end

end

end

 

 

function trans17(cid)

if getPlayerVocation(cid) == 330 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans17,ext,cid)

end

end

end

 

 

function trans18(cid)

if getPlayerVocation(cid) == 331 then

if getPlayerMana(cid) >= 0 then

addEvent(trans18,ext,cid)

end

end

end

 

 

function trans19(cid)

if getPlayerVocation(cid) == 332 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 180)

addEvent(trans19,ext,cid)

 

end

end

end

 

 

function trans20(cid)

if getPlayerVocation(cid) == 333 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 42)

addEvent(trans20,ext,cid)

 

end

end

end

--- Reborn Shin End ---

 

 

---Videl---

function trans22(cid)

if getPlayerVocation(cid) == 335 then

if getPlayerMana(cid) >= 0 then

addEvent(trans22,ext,cid)

end

end

end

 

 

function trans23(cid)

if getPlayerVocation(cid) == 336 then

if getPlayerMana(cid) >= 0 then

addEvent(trans23,ext,cid)

 

end

end

end

 

 

function trans24(cid)

if getPlayerVocation(cid) == 337 then

if getPlayerMana(cid) >= 0 then

addEvent(trans24,ext,cid)

 

end

end

end

 

 

function trans25(cid)

if getPlayerVocation(cid) == 338 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(trans25,ext,cid)

 

end

end

end

 

 

---End Videl---

 

 

 

 

 

 

---Reborn Videl---

function trans26(cid)

if getPlayerVocation(cid) == 340 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans26,ext,cid)

end

end

end

 

 

function trans27(cid)

if getPlayerVocation(cid) == 341 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans27,ext,cid)

end

end

end

 

 

function trans28(cid)

if getPlayerVocation(cid) == 342 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans28,ext,cid)

 

end

end

end

 

 

function trans29(cid)

if getPlayerVocation(cid) == 343 then

if getPlayerMana(cid) >= 0 then

addEvent(trans29,ext,cid)

 

end

end

end

 

 

function trans30(cid)

if getPlayerVocation(cid) == 344 then

if getPlayerMana(cid) >= 0 then

addEvent(trans30,ext,cid)

 

end

end

end

--- Reborn Videl End ---

 

 

---Pan---

function trans31(cid)

if getPlayerVocation(cid) == 348 then

if getPlayerMana(cid) >= 0 then

addEvent(trans31,ext,cid)

end

end

end

 

 

function trans32(cid)

if getPlayerVocation(cid) == 349 then

if getPlayerMana(cid) >= 0 then

addEvent(trans32,ext,cid)

 

end

end

end

 

 

function trans33(cid)

if getPlayerVocation(cid) == 350 then

if getPlayerMana(cid) >= 0 then

addEvent(trans33,ext,cid)

 

end

end

end

 

 

function trans34(cid)

if getPlayerVocation(cid) == 351 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 13)

addEvent(trans34,ext,cid)

 

end

end

end

 

 

---End Pan---

 

 

 

 

 

 

---Reborn Pan---

function trans35(cid)

if getPlayerVocation(cid) == 353 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans35,ext,cid)

end

end

end

 

 

function trans36(cid)

if getPlayerVocation(cid) == 354 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans36,ext,cid)

end

end

end

 

 

function trans37(cid)

if getPlayerVocation(cid) == 355 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans37,ext,cid)

 

end

end

end

 

 

function trans38(cid)

if getPlayerVocation(cid) == 356 then

if getPlayerMana(cid) >= 0 then

addEvent(trans38,ext,cid)

 

end

end

end

 

 

function trans39(cid)

if getPlayerVocation(cid) == 357 then

if getPlayerMana(cid) >= 0 then

addEvent(trans39,ext,cid)

 

end

end

end

 

 

function trans40(cid)

if getPlayerVocation(cid) == 358 then

if getPlayerMana(cid) >= 0 then

addEvent(trans40,ext,cid)

 

end

end

end

--- Reborn Pan End ---

 

 

---Freeza trans 400---

function trans11(cid)

if getPlayerVocation(cid) == 345 then

if getPlayerMana(cid) >= 0 then

addEvent(trans11,ext,cid)

end

end

end

 

---Freeza trans 400---

 

 

---Uub trans 400---

function trans50(cid)

if getPlayerVocation(cid) == 359 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 180)

addEvent(trans50,ext,cid)

end

end

end

 

---Uub trans 400---

 

 

---Cooler trans 400---

function trans51(cid)

if getPlayerVocation(cid) == 360 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 330)

addEvent(trans51,ext,cid)

end

end

end

 

---Cooler trans 400---

 

 

---Vegeta trans 400---

function trans52(cid)

if getPlayerVocation(cid) == 361 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans52,ext,cid)

end

end

end

 

---Vegeta trans 400---

 

 

---Bardoc trans 400---

function trans53(cid)

if getPlayerVocation(cid) == 362 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans53,ext,cid)

end

end

end

 

---Bardoc trans 400---

 

 

---Trunks trans 400---

function trans54(cid)

if getPlayerVocation(cid) == 363 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans54,ext,cid)

end

end

end

 

---Trunks trans 400---

 

 

---C17 trans 400---

function trans55(cid)

if getPlayerVocation(cid) == 364 then

if getPlayerMana(cid) >= 0 then

addEvent(trans55,ext,cid)

end

end

end

 

---=C17 trans 400--

 

 

---Gohan trans 400---

function trans56(cid)

if getPlayerVocation(cid) == 365 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans56,ext,cid)

end

end

end

 

---=Gohan trans 400--

 

 

---Goku trans 400---

function trans57(cid)

if getPlayerVocation(cid) == 366 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans57,ext,cid)

end

end

end

 

---=Goku trans 400--

 

 

---Janemba---

function trans58(cid)

if getPlayerVocation(cid) == 368 then

if getPlayerMana(cid) >= 0 then

addEvent(trans58,ext,cid)

end

end

end

 

 

function trans58(cid)

if getPlayerVocation(cid) == 369 then

if getPlayerMana(cid) >= 0 then

addEvent(trans58,ext,cid)

 

end

end

end

 

 

function trans59(cid)

if getPlayerVocation(cid) == 370 then

if getPlayerMana(cid) >= 0 then

addEvent(trans59,ext,cid)

 

end

end

end

 

 

function trans60(cid)

if getPlayerVocation(cid) == 371 then

if getPlayerMana(cid) >= 0 then

addEvent(trans61,ext,cid)

 

end

end

end

 

 

---End Janemba---

 

 

 

 

 

 

 

---Reborn Janemba---

function trans63(cid)

if getPlayerVocation(cid) == 373 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 180)

addEvent(trans63,ext,cid)

end

end

end

 

 

function trans64(cid)

if getPlayerVocation(cid) == 374 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 176)

addEvent(trans64,ext,cid)

end

end

end

 

 

function trans65(cid)

if getPlayerVocation(cid) == 375 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 180)

addEvent(trans65,ext,cid)

 

end

end

end

 

 

function trans66(cid)

if getPlayerVocation(cid) == 376 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 180)

addEvent(trans66,ext,cid)

 

end

end

end

 

 

function trans67(cid)

if getPlayerVocation(cid) == 377 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 180)

addEvent(trans67,ext,cid)

 

end

end

end

--- Reborn Janemba End ---

 

 

---Tenshin---

function trans68(cid)

if getPlayerVocation(cid) == 379 then

if getPlayerMana(cid) >= 0 then

addEvent(trans68,ext,cid)

end

end

end

 

 

function trans69(cid)

if getPlayerVocation(cid) == 380 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 191)

addEvent(trans69,ext,cid)

 

end

end

end

 

 

function trans70(cid)

if getPlayerVocation(cid) == 381 then

if getPlayerMana(cid) >= 0 then

addEvent(trans70,ext,cid)

 

end

end

end

 

 

function trans71(cid)

if getPlayerVocation(cid) == 382 then

if getPlayerMana(cid) >= 0 then

addEvent(trans71,ext,cid)

 

end

end

end

 

 

---End Tenshin---

 

 

 

 

 

 

 

---Reborn Tenshin---

function trans72(cid)

if getPlayerVocation(cid) == 384 then

if getPlayerMana(cid) >= 0 then

addEvent(trans72,ext,cid)

end

end

end

 

 

function trans73(cid)

if getPlayerVocation(cid) == 385 then

if getPlayerMana(cid) >= 0 then

addEvent(trans73,ext,cid)

end

end

end

 

 

function trans74(cid)

if getPlayerVocation(cid) == 386 then

if getPlayerMana(cid) >= 0 then

addEvent(trans74,ext,cid)

 

end

end

end

 

 

function trans75(cid)

if getPlayerVocation(cid) == 387 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 191)

addEvent(trans75,ext,cid)

 

end

end

end

 

 

function trans76(cid)

if getPlayerVocation(cid) == 388 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 180)

addEvent(trans76,ext,cid)

 

end

end

end

--- Reborn Tenshin End ---

 

 

---Brolly trans 400---

function trans77(cid)

if getPlayerVocation(cid) == 389 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans77,ext,cid)

end

end

end

 

---Brolly trans 400---

 

 

---Cell trans 400---

function trans78(cid)

if getPlayerVocation(cid) == 390 then

if getPlayerMana(cid) >= 0 then

addEvent(trans78,ext,cid)

end

end

end

 

---Cell trans 400---

 

 

---Nameq trans 400---

function trans79(cid)

if getPlayerVocation(cid) == 391 then

if getPlayerMana(cid) >= 0 then

addEvent(trans79,ext,cid)

end

end

end

 

---Nameq trans 400---

 

 

---Gotenks trans 400---

function trans80(cid)

if getPlayerVocation(cid) == 392 then

if getPlayerMana(cid) >= 0 then

addEvent(trans80,ext,cid)

end

end

end

 

---Gotenks trans 400---

 

 

---BUU trans 400---

function trans81(cid)

if getPlayerVocation(cid) == 393 then

if getPlayerMana(cid) >= 0 then

addEvent(trans81,ext,cid)

end

end

end

 

---Buu trans 400---

 

 

---C18 trans 400---

function trans82(cid)

if getPlayerVocation(cid) == 394 then

if getPlayerMana(cid) >= 0 then

addEvent(trans82,ext,cid)

end

end

end

 

---C18 trans 400---

 

 

---Shenron---

function trans83(cid)

if getPlayerVocation(cid) == 396 then

if getPlayerMana(cid) >= 0 then

addEvent(trans83,ext,cid)

end

end

end

 

 

function trans84(cid)

if getPlayerVocation(cid) == 397 then

if getPlayerMana(cid) >= 0 then

addEvent(trans84,ext,cid)

 

end

end

end

 

 

function trans85(cid)

if getPlayerVocation(cid) == 398 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 234)

addEvent(trans85,ext,cid)

 

end

end

end

 

 

function trans86(cid)

if getPlayerVocation(cid) == 399 then

if getPlayerMana(cid) >= 0 then

addEvent(trans86,ext,cid)

 

end

end

end

 

 

---End Shenron---

 

 

 

 

 

 

 

---Reborn Shenron---

function trans87(cid)

if getPlayerVocation(cid) == 401 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 330)

addEvent(trans87,ext,cid)

end

end

end

 

 

function trans88(cid)

if getPlayerVocation(cid) == 402 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 330)

addEvent(trans88,ext,cid)

end

end

end

 

 

function trans89(cid)

if getPlayerVocation(cid) == 403 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 330)

addEvent(trans89,ext,cid)

 

end

end

end

 

 

function trans90(cid)

if getPlayerVocation(cid) == 404 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 330)

addEvent(trans90,ext,cid)

 

end

end

end

 

 

function trans91(cid)

if getPlayerVocation(cid) == 405 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 180)

addEvent(trans91,ext,cid)

 

end

end

end

--- Reborn Shenron End ---

 

 

---Tsuful trans 400---

function trans92(cid)

if getPlayerVocation(cid) == 406 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans92,ext,cid)

end

end

end

 

---Tsuful trans 400---

 

 

function onCastSpell(cid, var)

 

 

---Kuririn---

 

if getPlayerVocation(cid) == 312 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,313)

doSetCreatureOutfit(cid, outfit, -1)

addEvent(trans1,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

else

doPlayerSendCancel(cid, "You need 50 level to first transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 313 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,314)

addEvent(trans2,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 34)

doSetCreatureOutfit(cid, outfit1, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 314 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,315)

addEvent(trans3,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, outfit2, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 315 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,316)

addEvent(trans4,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, outfit3, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

--- Reborn ---

 

elseif getPlayerVocation(cid) == 317 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,318)

addEvent(trans5,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, outfits, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 318 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,319)

addEvent(trans7,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, outfits, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 319 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,320)

addEvent(trans8,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, outfits2, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 320 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,321)

addEvent(trans9,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, outfits2, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 321 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,322)

addEvent(trans10,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, outfits3, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Kuririn ---

 

 

---Shin---

 

elseif getPlayerVocation(cid) == 323 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,324)

doSetCreatureOutfit(cid, sr1, -1)

addEvent(trans12,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

else

doPlayerSendCancel(cid, "You need 50 level to first transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 324 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,325)

addEvent(trans13,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, sr2, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 325 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,326)

addEvent(trans14,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 7)

doSetCreatureOutfit(cid, sr3, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 326 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,327)

addEvent(trans15,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, sr3, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

--- Reborn ---

 

elseif getPlayerVocation(cid) == 328 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,329)

addEvent(trans16,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, sr3, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 329 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,330)

addEvent(trans17,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, sr3, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 330 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,331)

addEvent(trans18,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, sr4, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 331 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,332)

addEvent(trans19,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, sr5, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 332 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,333)

addEvent(trans20,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, sr6, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Shin ---

 

 

---Videl---

 

elseif getPlayerVocation(cid) == 334 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,335)

doSetCreatureOutfit(cid, videl1, -1)

addEvent(trans22,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

else

doPlayerSendCancel(cid, "You need 50 level to first transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 335 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,336)

addEvent(trans23,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

doSetCreatureOutfit(cid, videl2, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 336 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,337)

addEvent(trans24,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

doSetCreatureOutfit(cid, videl3, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 337 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,338)

addEvent(trans25,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, videl3, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

--- Reborn ---

 

elseif getPlayerVocation(cid) == 339 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,340)

addEvent(trans26,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, videl1, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 340 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,341)

addEvent(trans27,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, videl2, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 341 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,342)

addEvent(trans28,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, videl3, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 342 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,343)

addEvent(trans29,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, videl4, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 343 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,344)

addEvent(trans30,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, videl5, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Videl ---

 

 

---Pan---

 

elseif getPlayerVocation(cid) == 347 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,348)

doSetCreatureOutfit(cid, kidpan, -1)

addEvent(trans31,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

else

doPlayerSendCancel(cid, "You need 50 level to first transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 348 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,349)

addEvent(trans32,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, teenpan, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 349 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,350)

addEvent(trans33,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 151)

doSetCreatureOutfit(cid, panssj, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 350 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,351)

addEvent(trans34,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 152)

doSetCreatureOutfit(cid, panssj3, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

--- Reborn ---

 

elseif getPlayerVocation(cid) == 352 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,353)

addEvent(trans35,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, teenpan, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 353 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,354)

addEvent(trans36,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 151)

doSetCreatureOutfit(cid, panssj, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 354 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,355)

addEvent(trans37,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 152)

doSetCreatureOutfit(cid, panssj3, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 355 then

if getPlayerLevel(cid) >= 199 then

doPlayerSetVocation(cid,356)

addEvent(trans38,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 233)

doSetCreatureOutfit(cid, pangolden, -1)

 

else

doPlayerSendCancel(cid, "You need 199 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 356 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,357)

addEvent(trans39,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 153)

doSetCreatureOutfit(cid, panssj4, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 357 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,358)

addEvent(trans40,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, panssj5, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Pan ---

 

 

---Freeza---

 

elseif getPlayerVocation(cid) == 257 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,345)

addEvent(trans11,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, freeza, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Freeza---

 

 

---Uub---

 

elseif getPlayerVocation(cid) == 297 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,359)

addEvent(trans50,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, uub, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Uub---

 

 

---Cooler---

 

elseif getPlayerVocation(cid) == 285 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,360)

addEvent(trans51,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, cooler, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Cooler---

 

 

---Vegeta---

 

elseif getPlayerVocation(cid) == 219 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,361)

addEvent(trans52,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 81)

doSetCreatureOutfit(cid, vegeta, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegeta---

 

 

---Bardoc---

 

elseif getPlayerVocation(cid) == 291 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,362)

addEvent(trans53,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, bardoc, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Bardoc---

 

 

---Trunks---

 

elseif getPlayerVocation(cid) == 226 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,363)

addEvent(trans54,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, trunks, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Trunks---

 

 

---C17---

 

elseif getPlayerVocation(cid) == 262 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,364)

addEvent(trans55,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 18)

doSetCreatureOutfit(cid, c17, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End c17---

 

 

---Gohan---

 

elseif getPlayerVocation(cid) == 213 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,365)

addEvent(trans56,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 54)

doSetCreatureOutfit(cid, gohan, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Gohan---

 

 

---Goku---

 

elseif getPlayerVocation(cid) == 206 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,366)

addEvent(trans57,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, goku, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Gohan---

 

 

 

---Janemba---

 

elseif getPlayerVocation(cid) == 367 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,368)

doSetCreatureOutfit(cid, kidjanemba, -1)

addEvent(trans58,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

else

doPlayerSendCancel(cid, "You need 50 level to first transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 368 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,369)

addEvent(trans59,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, fatjanemba, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 369 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,370)

addEvent(trans60,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, superjanemba, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 370 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,371)

addEvent(trans61,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 243)

doSetCreatureOutfit(cid, ultimatejanemba, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

--- Reborn ---

 

elseif getPlayerVocation(cid) == 372 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,373)

addEvent(trans63,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, kidjanemba, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 373 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,374)

addEvent(trans64,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, fatjanemba, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 374 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,375)

addEvent(trans65,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, superjanemba, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 375 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,376)

addEvent(trans66,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 243)

doSetCreatureOutfit(cid, ultimatejanemba, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 376 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,377)

addEvent(trans67,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, finaljanemba, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Janemba ---

 

 

---Tenshin---

 

elseif getPlayerVocation(cid) == 378 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,379)

doSetCreatureOutfit(cid, tenshinaura, -1)

addEvent(trans68,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

else

doPlayerSendCancel(cid, "You need 50 level to first transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 379 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,380)

addEvent(trans69,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, supertenshin, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 380 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,381)

addEvent(trans70,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 8)

doSetCreatureOutfit(cid, ultimatetenshin, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 381 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,382)

addEvent(trans71,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, ultimatetenshinaura, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

--- Reborn ---

 

elseif getPlayerVocation(cid) == 383 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,384)

addEvent(trans72,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 11)

doSetCreatureOutfit(cid, whitetenshin, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 384 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,385)

addEvent(trans73,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 16)

doSetCreatureOutfit(cid, redtenshin, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 385 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,386)

addEvent(trans74,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 12)

doSetCreatureOutfit(cid, yellowtenshin, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 386 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,387)

addEvent(trans75,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, yellowtenshin, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 387 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,388)

addEvent(trans76,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, demontenshin, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Tenshin ---

 

 

---Brolly---

 

elseif getPlayerVocation(cid) == 273 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,389)

addEvent(trans77,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 185)

doSetCreatureOutfit(cid, brolly, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Brolly---

 

 

---Cell---

 

elseif getPlayerVocation(cid) == 279 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,390)

addEvent(trans78,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, cell, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Cell---

 

 

---Namekjin---

 

elseif getPlayerVocation(cid) == 241 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,391)

addEvent(trans79,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, namekjin, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Namekjin---

 

 

---Gotenks---

 

elseif getPlayerVocation(cid) == 231 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,392)

addEvent(trans80,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, ggotenks, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Gotenks---

 

 

---C18---

 

elseif getPlayerVocation(cid) == 267 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,394)

addEvent(trans82,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, c18, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End C18---

 

 

---Buu---

 

elseif getPlayerVocation(cid) == 252 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,393)

addEvent(trans81,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 82)

doSetCreatureOutfit(cid, buu, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Buu---

 

 

---Shenron---

 

elseif getPlayerVocation(cid) == 395 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,396)

doSetCreatureOutfit(cid, s1, -1)

addEvent(trans83,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

else

doPlayerSendCancel(cid, "You need 50 level to first transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 396 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,397)

addEvent(trans84,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, s2, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 397 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,398)

addEvent(trans85,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, s3, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 398 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,399)

addEvent(trans86,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, s4, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

--- Reborn ---

 

elseif getPlayerVocation(cid) == 400 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,401)

addEvent(trans87,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, s1, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 401 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,402)

addEvent(trans88,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, s2, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 402 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,403)

addEvent(trans89,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, s3, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 403 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,404)

addEvent(trans90,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, s4, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 404 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,405)

addEvent(trans91,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 32)

doSetCreatureOutfit(cid, s5, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Shenron ---

 

 

---Tsuful---

 

elseif getPlayerVocation(cid) == 246 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,406)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, tsuful, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Tsuful---

 

---Vegetto---

 

elseif getPlayerVocation(cid) == 407 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,408)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto1, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

---Vegetto---

 

elseif getPlayerVocation(cid) == 408 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,409)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto2, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

---Vegetto---

 

elseif getPlayerVocation(cid) == 409 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,410)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto3, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

---Vegetto---

 

elseif getPlayerVocation(cid) == 410 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,411)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto4, -1)

 

else

doPlayerSendCancel(cid, "You need 200 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

---Vegetto RB ---

 

elseif getPlayerVocation(cid) == 412 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,413)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto5, -1)

 

else

doPlayerSendCancel(cid, "You need 50 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

---Vegetto---

 

elseif getPlayerVocation(cid) == 413 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,414)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto6, -1)

 

else

doPlayerSendCancel(cid, "You need 100 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

---Vegetto---

 

elseif getPlayerVocation(cid) == 414 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,415)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto7, -1)

 

else

doPlayerSendCancel(cid, "You need 150 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

---Vegetto---

 

elseif getPlayerVocation(cid) == 415 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,416)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto8, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

---Vegetto---

 

elseif getPlayerVocation(cid) == 416 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,417)

addEvent(trans92,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, Vegetto, -1)

 

else

doPlayerSendCancel(cid, "You need 400 level to next transform")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End Vegetto---

 

else

doPlayerSendCancel(cid, "You cannot transform.")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

end

 

 

 

Lembrando que o fusion.lua tbm da erro

Link para o comentário
Compartilhar em outros sites

  • 0

poxa seria bom se outras pessoas explicassem como vc. deu pra entender direitinho, eu tinha esta ideia mas nao como poderia resolver.

Eu nao entendo de programação, mas o ingles ajuda rsrs dai eu saio procurando funcções e testando, vendo se consigo fazer funcionar, tanto que essa magia nao tinha exaust, entao eu fiquei fuçando consegui fazer ficar normal fiquei super alegre XD

vou testar isso que vc disse.

Link para o comentário
Compartilhar em outros sites

  • 0

@jhonatanpp, que mão de obra hem isso você podia fazer sozinho. kkk

ta aew:

 

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)
addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)
setCombatCondition(combat, condition)


outfit = {lookType=357}
outfit1 = {lookType=358}
outfit2 = {lookType=359}
outfit3 = {lookType=360}

outfits = {lookType=361}
outfits2 = {lookType=362}
outfits3 = {lookType=373}


cooler = {lookType=379}
uub = {lookType=382}
freeza = {lookType=378}
kuririn2 = {lookType=352}
vegeta = {lookType=476}
bardoc = {lookType=380}
trunks = {lookType=374}
c17 = {lookType=375}
gohan = {lookType=381}
goku = {lookType=475}
brolly = {lookType=461}
cell = {lookType=477}
namekjin = {lookType=460}
ggotenks = {lookType=367}
buu = {lookType=474}
c18 = {lookType=376}
tsuful = {lookType=366}

gotenksgtssj = {lookType=169}
gotenksgtssj3 = {lookType=170}

sr1 = {lookType=328}
sr2 = {lookType=341}
sr3 = {lookType=80}
sr4 = {lookType=342}
sr5 = {lookType=355}
sr6 = {lookType=363}

videl1 = {lookType=336}
videl2 = {lookType=335}
videl3 = {lookType=337}
videl4 = {lookType=286}
videl5 = {lookType=383}

kidpan = {lookType=102}
teenpan = {lookType=330}
panssj = {lookType=331}
panssj3 = {lookType=332}
pangolden = {lookType=46}
panssj4 = {lookType=333}
panssj5 = {lookType=384}

kidjanemba = {lookType=280}
fatjanemba = {lookType=120}
superjanemba = {lookType=110}
ultimatejanemba = {lookType=134}
finaljanemba = {lookType=462}

tenshinaura = {lookType=350}
supertenshin = {lookType=351}
ultimatetenshin = {lookType=352}
ultimatetenshinaura = {lookType=353}
whitetenshin = {lookType=44}
redtenshin = {lookType=49}
yellowtenshin = {lookType=42}
demontenshin = {lookType=385}

s1 = {lookType=232}
s2 = {lookType=257}
s3 = {lookType=265}
s4 = {lookType=325}
s5 = {lookType=284}

Vegetto1 = {lookType=389}
Vegetto2 = {lookType=8}
Vegetto3 = {lookType=390}
Vegetto4 = {lookType=390}
Vegetto5 = {lookType=389}
Vegetto6 = {lookType=8}
Vegetto7 = {lookType=390}
Vegetto8 = {lookType=391}
vegetto = {lookType=392}

ext = 1000

function trans92(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 317 then
       if getPlayerMana(cid) >= 0 then
           doSendMagicEffect(getPlayerPosition(cid), 191)
           addEvent(trans92,ext,cid)
       end
   end
end
end

function trans93(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 318 then
       if getPlayerMana(cid) >= 0 then
           addEvent(trans93,ext,cid)
       end
   end
end
end


function trans94(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 319 then
       if getPlayerMana(cid) >= 0 then
           doSendMagicEffect(getPlayerPosition(cid), 191)
           addEvent(trans94,ext,cid)
       end
   end
end
end


function trans95(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 320 then
       if getPlayerMana(cid) >= 0 then
           addEvent(trans95,ext,cid)
       end
   end
end
end

---Kuririn---
function trans1(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 313 then
       if getPlayerMana(cid) >= 0 then
           addEvent(trans1,ext,cid)
       end
   end
end
end

function trans2(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 314 then
       if getPlayerMana(cid) >= 0 then
           doSendMagicEffect(getPlayerPosition(cid), 234)
           addEvent(trans2,ext,cid)
       end
   end
end
end

function trans3(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 315 then
       if getPlayerMana(cid) >= 0 then
           doSendMagicEffect(getPlayerPosition(cid), 14)
           addEvent(trans3,ext,cid)
       end
   end
end
end

function trans4(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 316 then
       if getPlayerMana(cid) >= 0 then
           addEvent(trans4,ext,cid)
       end
   end
end
end

---End Kuririn---

---Reborn Kuririn---
function trans5(cid)
if isPlayer(cid) then
   if getPlayerVocation(cid) == 317 then
       if getPlayerMana(cid) >= 0 then
           doSendMagicEffect(getPlayerPosition(cid), 191)
           addEvent(trans5,ext,cid)
       end
   end
end
end

function trans6(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 318 then
if getPlayerMana(cid) >= 0 then
addEvent(trans6,ext,cid)
end
end
end
end

function trans7(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 319 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 191)
addEvent(trans7,ext,cid)
end
end
end
end

function trans8(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 320 then
if getPlayerMana(cid) >= 0 then
addEvent(trans8,ext,cid)
end
end
end
end

function trans9(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 321 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 191)
addEvent(trans9,ext,cid)
end
end
end
end

function trans10(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 322 then
if getPlayerMana(cid) >= 0 then
addEvent(trans10,ext,cid)
end
end
end
end
--- Reborn Kuririn End ---

---Shin---
function trans12(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 324 then
if getPlayerMana(cid) >= 0 then
addEvent(trans12,ext,cid)
end
end
end
end

function trans13(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 325 then
if getPlayerMana(cid) >= 0 then
addEvent(trans13,ext,cid)
end
end
end
end

function trans14(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 326 then
if getPlayerMana(cid) >= 0 then
addEvent(trans14,ext,cid)
end
end
end
end

function trans15(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 327 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(trans15,ext,cid)
end
end
end
end

---End Shin---

---Reborn Shin---
function trans16(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 329 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(trans16,ext,cid)
end
end
end
end

function trans17(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 330 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans17,ext,cid)
end
end
end
end

function trans18(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 331 then
if getPlayerMana(cid) >= 0 then
addEvent(trans18,ext,cid)
end
end
end
end

function trans19(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 332 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(trans19,ext,cid)
end
end
end
end

function trans20(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 333 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 42)
addEvent(trans20,ext,cid)
end
end
end
end
--- Reborn Shin End ---

---Videl---
function trans22(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 335 then
if getPlayerMana(cid) >= 0 then
addEvent(trans22,ext,cid)
end
end
end
end

function trans23(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 336 then
if getPlayerMana(cid) >= 0 then
addEvent(trans23,ext,cid)
end
end
end
end

function trans24(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 337 then
if getPlayerMana(cid) >= 0 then
addEvent(trans24,ext,cid)
end
end
end
end

function trans25(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 338 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(trans25,ext,cid)
end
end
end
end

---End Videl---

---Reborn Videl---
function trans26(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 340 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans26,ext,cid)
end
end
end
end

function trans27(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 341 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans27,ext,cid)
end
end
end
end

function trans28(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 342 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans28,ext,cid)
end
end
end
end

function trans29(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 343 then
if getPlayerMana(cid) >= 0 then
addEvent(trans29,ext,cid)
end
end
end
end

function trans30(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 344 then
if getPlayerMana(cid) >= 0 then
addEvent(trans30,ext,cid)
end
end
end
end
--- Reborn Videl End ---

---Pan---
function trans31(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 348 then
if getPlayerMana(cid) >= 0 then
addEvent(trans31,ext,cid)
end
end
end
end

function trans32(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 349 then
if getPlayerMana(cid) >= 0 then
addEvent(trans32,ext,cid)
end
end
end
end

function trans33(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 350 then
if getPlayerMana(cid) >= 0 then
addEvent(trans33,ext,cid)
end
end
end
end

function trans34(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 351 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 13)
addEvent(trans34,ext,cid)
end
end
end
end

---End Pan---

---Reborn Pan---
function trans35(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 353 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans35,ext,cid)
end
end
end
end

function trans36(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 354 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans36,ext,cid)
end
end
end
end

function trans37(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 355 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans37,ext,cid)
end
end
end
end

function trans38(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 356 then
if getPlayerMana(cid) >= 0 then
addEvent(trans38,ext,cid)
end
end
end
end

function trans39(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 357 then
if getPlayerMana(cid) >= 0 then
addEvent(trans39,ext,cid)
end
end
end
end

function trans40(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 358 then
if getPlayerMana(cid) >= 0 then
addEvent(trans40,ext,cid)
end
end
end
end
--- Reborn Pan End ---

---Freeza trans 400---
function trans11(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 345 then
if getPlayerMana(cid) >= 0 then
addEvent(trans11,ext,cid)
end
end
end
end
---Freeza trans 400---

---Uub trans 400---
function trans50(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 359 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(trans50,ext,cid)
end
end
end
end
---Uub trans 400---

---Cooler trans 400---
function trans51(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 360 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 330)
addEvent(trans51,ext,cid)
end
end
end
end

---Cooler trans 400---

---Vegeta trans 400---
function trans52(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 361 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans52,ext,cid)
end
end
end
end
---Vegeta trans 400---

---Bardoc trans 400---
function trans53(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 362 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans53,ext,cid)
end
end
end
end

---Bardoc trans 400---


---Trunks trans 400---
function trans54(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 363 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans54,ext,cid)
end
end
end
end

---Trunks trans 400---


---C17 trans 400---
function trans55(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 364 then
if getPlayerMana(cid) >= 0 then
addEvent(trans55,ext,cid)
end
end
end
end

---=C17 trans 400--


---Gohan trans 400---
function trans56(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 365 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans56,ext,cid)
end
end
end
end

---=Gohan trans 400--


---Goku trans 400---
function trans57(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 366 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans57,ext,cid)
end
end
end
end

---=Goku trans 400--


---Janemba---
function trans58(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 368 then
if getPlayerMana(cid) >= 0 then
addEvent(trans58,ext,cid)
end
end
end
end

function trans58(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 369 then
if getPlayerMana(cid) >= 0 then
addEvent(trans58,ext,cid)
end
end
end
end


function trans59(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 370 then
if getPlayerMana(cid) >= 0 then
addEvent(trans59,ext,cid)
end
end
end
end


function trans60(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 371 then
if getPlayerMana(cid) >= 0 then
addEvent(trans61,ext,cid)
end
end
end
end


---End Janemba---







---Reborn Janemba---
function trans63(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 373 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(trans63,ext,cid)
end
end
end
end

function trans64(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 374 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 176)
addEvent(trans64,ext,cid)
end
end
end
end

function trans65(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 375 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(trans65,ext,cid)
end
end
end
end


function trans66(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 376 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(trans66,ext,cid)
end
end
end
end


function trans67(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 377 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(trans67,ext,cid)
end
end
end
end
--- Reborn Janemba End ---


---Tenshin---
function trans68(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 379 then
if getPlayerMana(cid) >= 0 then
addEvent(trans68,ext,cid)
end
end
end
end

function trans69(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 380 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 191)
addEvent(trans69,ext,cid)
end
end
end
end


function trans70(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 381 then
if getPlayerMana(cid) >= 0 then
addEvent(trans70,ext,cid)
end
end
end
end


function trans71(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 382 then
if getPlayerMana(cid) >= 0 then
addEvent(trans71,ext,cid)
end
end
end
end


---End Tenshin---







---Reborn Tenshin---
function trans72(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 384 then
if getPlayerMana(cid) >= 0 then
addEvent(trans72,ext,cid)
end
end
end
end

function trans73(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 385 then
if getPlayerMana(cid) >= 0 then
addEvent(trans73,ext,cid)
end
end
end
end

function trans74(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 386 then
if getPlayerMana(cid) >= 0 then
addEvent(trans74,ext,cid)
end
end
end
end


function trans75(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 387 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 191)
addEvent(trans75,ext,cid)
end
end
end
end


function trans76(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 388 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(trans76,ext,cid)
end
end
end
end
--- Reborn Tenshin End ---


---Brolly trans 400---
function trans77(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 389 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans77,ext,cid)
end
end
end
end
---Brolly trans 400---


---Cell trans 400---
function trans78(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 390 then
if getPlayerMana(cid) >= 0 then
addEvent(trans78,ext,cid)
end
end
end
end
---Cell trans 400---


---Nameq trans 400---
function trans79(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 391 then
if getPlayerMana(cid) >= 0 then
addEvent(trans79,ext,cid)
end
end
end
end
---Nameq trans 400---


---Gotenks trans 400---
function trans80(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 392 then
if getPlayerMana(cid) >= 0 then
addEvent(trans80,ext,cid)
end
end
end
end
---Gotenks trans 400---


---BUU trans 400---
function trans81(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 393 then
if getPlayerMana(cid) >= 0 then
addEvent(trans81,ext,cid)
end
end
end
end
---Buu trans 400---


---C18 trans 400---
function trans82(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 394 then
if getPlayerMana(cid) >= 0 then
addEvent(trans82,ext,cid)
end
end
end
end
---C18 trans 400---


---Shenron---
function trans83(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 396 then
if getPlayerMana(cid) >= 0 then
addEvent(trans83,ext,cid)
end
end
end
end

function trans84(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 397 then
if getPlayerMana(cid) >= 0 then
addEvent(trans84,ext,cid)
end
end
end
end


function trans85(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 398 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 234)
addEvent(trans85,ext,cid)
end
end
end
end


function trans86(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 399 then
if getPlayerMana(cid) >= 0 then
addEvent(trans86,ext,cid)
end
end
end
end


---End Shenron---







---Reborn Shenron---
function trans87(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 401 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 330)
addEvent(trans87,ext,cid)
end
end
end
end

function trans88(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 402 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 330)
addEvent(trans88,ext,cid)
end
end
end
end

function trans89(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 403 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 330)
addEvent(trans89,ext,cid)
end
end
end
end


function trans90(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 404 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 330)
addEvent(trans90,ext,cid)
end
end
end
end


function trans91(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 405 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(trans91,ext,cid)
end
end
end
end
--- Reborn Shenron End ---


---Tsuful trans 400---
function trans92(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 406 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans92,ext,cid)
end
end
end
end
---Tsuful trans 400---


function onCastSpell(cid, var)


---Kuririn---

if getPlayerVocation(cid) == 312 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,313)
doSetCreatureOutfit(cid, outfit, -1)
addEvent(trans1,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 313 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,314)
addEvent(trans2,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 34)
doSetCreatureOutfit(cid, outfit1, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 314 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,315)
addEvent(trans3,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, outfit2, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 315 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,316)
addEvent(trans4,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, outfit3, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


--- Reborn ---

elseif getPlayerVocation(cid) == 317 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,318)
addEvent(trans5,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, outfits, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 318 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,319)
addEvent(trans7,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, outfits, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 319 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,320)
addEvent(trans8,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, outfits2, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 320 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,321)
addEvent(trans9,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, outfits2, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 321 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,322)
addEvent(trans10,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, outfits3, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Kuririn ---


---Shin---

elseif getPlayerVocation(cid) == 323 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,324)
doSetCreatureOutfit(cid, sr1, -1)
addEvent(trans12,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 324 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,325)
addEvent(trans13,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, sr2, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 325 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,326)
addEvent(trans14,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 7)
doSetCreatureOutfit(cid, sr3, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 326 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,327)
addEvent(trans15,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, sr3, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


--- Reborn ---

elseif getPlayerVocation(cid) == 328 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,329)
addEvent(trans16,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, sr3, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 329 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,330)
addEvent(trans17,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, sr3, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 330 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,331)
addEvent(trans18,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, sr4, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 331 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,332)
addEvent(trans19,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, sr5, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 332 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,333)
addEvent(trans20,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, sr6, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Shin ---


---Videl---

elseif getPlayerVocation(cid) == 334 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,335)
doSetCreatureOutfit(cid, videl1, -1)
addEvent(trans22,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 335 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,336)
addEvent(trans23,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
doSetCreatureOutfit(cid, videl2, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 336 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,337)
addEvent(trans24,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
doSetCreatureOutfit(cid, videl3, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 337 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,338)
addEvent(trans25,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, videl3, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


--- Reborn ---

elseif getPlayerVocation(cid) == 339 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,340)
addEvent(trans26,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, videl1, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 340 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,341)
addEvent(trans27,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, videl2, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 341 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,342)
addEvent(trans28,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, videl3, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 342 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,343)
addEvent(trans29,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, videl4, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 343 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,344)
addEvent(trans30,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, videl5, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Videl ---


---Pan---

elseif getPlayerVocation(cid) == 347 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,348)
doSetCreatureOutfit(cid, kidpan, -1)
addEvent(trans31,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 348 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,349)
addEvent(trans32,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, teenpan, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 349 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,350)
addEvent(trans33,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 151)
doSetCreatureOutfit(cid, panssj, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 350 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,351)
addEvent(trans34,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 152)
doSetCreatureOutfit(cid, panssj3, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


--- Reborn ---

elseif getPlayerVocation(cid) == 352 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,353)
addEvent(trans35,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, teenpan, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 353 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,354)
addEvent(trans36,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 151)
doSetCreatureOutfit(cid, panssj, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 354 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,355)
addEvent(trans37,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 152)
doSetCreatureOutfit(cid, panssj3, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 355 then
if getPlayerLevel(cid) >= 199 then
doPlayerSetVocation(cid,356)
addEvent(trans38,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 233)
doSetCreatureOutfit(cid, pangolden, -1)

else
doPlayerSendCancel(cid, "You need 199 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 356 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,357)
addEvent(trans39,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 153)
doSetCreatureOutfit(cid, panssj4, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 357 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,358)
addEvent(trans40,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, panssj5, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Pan ---


---Freeza---

elseif getPlayerVocation(cid) == 257 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,345)
addEvent(trans11,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, freeza, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Freeza---


---Uub---

elseif getPlayerVocation(cid) == 297 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,359)
addEvent(trans50,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, uub, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Uub---


---Cooler---

elseif getPlayerVocation(cid) == 285 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,360)
addEvent(trans51,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, cooler, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Cooler---


---Vegeta---

elseif getPlayerVocation(cid) == 219 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,361)
addEvent(trans52,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 81)
doSetCreatureOutfit(cid, vegeta, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegeta---


---Bardoc---

elseif getPlayerVocation(cid) == 291 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,362)
addEvent(trans53,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, bardoc, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Bardoc---


---Trunks---

elseif getPlayerVocation(cid) == 226 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,363)
addEvent(trans54,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, trunks, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Trunks---


---C17---

elseif getPlayerVocation(cid) == 262 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,364)
addEvent(trans55,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 18)
doSetCreatureOutfit(cid, c17, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End c17---


---Gohan---

elseif getPlayerVocation(cid) == 213 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,365)
addEvent(trans56,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 54)
doSetCreatureOutfit(cid, gohan, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Gohan---


---Goku---

elseif getPlayerVocation(cid) == 206 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,366)
addEvent(trans57,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, goku, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Gohan---



---Janemba---

elseif getPlayerVocation(cid) == 367 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,368)
doSetCreatureOutfit(cid, kidjanemba, -1)
addEvent(trans58,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 368 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,369)
addEvent(trans59,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, fatjanemba, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 369 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,370)
addEvent(trans60,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, superjanemba, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 370 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,371)
addEvent(trans61,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 243)
doSetCreatureOutfit(cid, ultimatejanemba, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


--- Reborn ---

elseif getPlayerVocation(cid) == 372 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,373)
addEvent(trans63,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, kidjanemba, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 373 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,374)
addEvent(trans64,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, fatjanemba, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 374 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,375)
addEvent(trans65,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, superjanemba, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 375 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,376)
addEvent(trans66,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 243)
doSetCreatureOutfit(cid, ultimatejanemba, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 376 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,377)
addEvent(trans67,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, finaljanemba, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Janemba ---


---Tenshin---

elseif getPlayerVocation(cid) == 378 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,379)
doSetCreatureOutfit(cid, tenshinaura, -1)
addEvent(trans68,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 379 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,380)
addEvent(trans69,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, supertenshin, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 380 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,381)
addEvent(trans70,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 8)
doSetCreatureOutfit(cid, ultimatetenshin, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 381 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,382)
addEvent(trans71,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, ultimatetenshinaura, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


--- Reborn ---

elseif getPlayerVocation(cid) == 383 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,384)
addEvent(trans72,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 11)
doSetCreatureOutfit(cid, whitetenshin, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 384 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,385)
addEvent(trans73,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 16)
doSetCreatureOutfit(cid, redtenshin, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 385 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,386)
addEvent(trans74,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
doSetCreatureOutfit(cid, yellowtenshin, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 386 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,387)
addEvent(trans75,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, yellowtenshin, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 387 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,388)
addEvent(trans76,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, demontenshin, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Tenshin ---


---Brolly---

elseif getPlayerVocation(cid) == 273 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,389)
addEvent(trans77,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 185)
doSetCreatureOutfit(cid, brolly, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Brolly---


---Cell---

elseif getPlayerVocation(cid) == 279 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,390)
addEvent(trans78,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, cell, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Cell---


---Namekjin---

elseif getPlayerVocation(cid) == 241 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,391)
addEvent(trans79,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, namekjin, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Namekjin---


---Gotenks---

elseif getPlayerVocation(cid) == 231 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,392)
addEvent(trans80,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, ggotenks, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Gotenks---


---C18---

elseif getPlayerVocation(cid) == 267 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,394)
addEvent(trans82,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, c18, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End C18---


---Buu---

elseif getPlayerVocation(cid) == 252 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,393)
addEvent(trans81,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 82)
doSetCreatureOutfit(cid, buu, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Buu---


---Shenron---

elseif getPlayerVocation(cid) == 395 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,396)
doSetCreatureOutfit(cid, s1, -1)
addEvent(trans83,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 396 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,397)
addEvent(trans84,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, s2, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 397 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,398)
addEvent(trans85,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, s3, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 398 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,399)
addEvent(trans86,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, s4, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


--- Reborn ---

elseif getPlayerVocation(cid) == 400 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,401)
addEvent(trans87,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, s1, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end



elseif getPlayerVocation(cid) == 401 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,402)
addEvent(trans88,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, s2, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

elseif getPlayerVocation(cid) == 402 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,403)
addEvent(trans89,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, s3, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 403 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,404)
addEvent(trans90,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, s4, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end


elseif getPlayerVocation(cid) == 404 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,405)
addEvent(trans91,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 32)
doSetCreatureOutfit(cid, s5, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Shenron ---


---Tsuful---

elseif getPlayerVocation(cid) == 246 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,406)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, tsuful, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Tsuful---

---Vegetto---

elseif getPlayerVocation(cid) == 407 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,408)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto1, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

---Vegetto---

elseif getPlayerVocation(cid) == 408 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,409)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto2, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

---Vegetto---

elseif getPlayerVocation(cid) == 409 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,410)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto3, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

---Vegetto---

elseif getPlayerVocation(cid) == 410 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,411)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto4, -1)

else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

---Vegetto RB ---

elseif getPlayerVocation(cid) == 412 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,413)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto5, -1)

else
doPlayerSendCancel(cid, "You need 50 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

---Vegetto---

elseif getPlayerVocation(cid) == 413 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,414)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto6, -1)

else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

---Vegetto---

elseif getPlayerVocation(cid) == 414 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,415)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto7, -1)

else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

---Vegetto---

elseif getPlayerVocation(cid) == 415 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,416)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto8, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

---Vegetto---

elseif getPlayerVocation(cid) == 416 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,417)
addEvent(trans92,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, Vegetto, -1)

else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

---End Vegetto---

else
doPlayerSendCancel(cid, "You cannot transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
end

 

 

 

A unica diferença foi que nas funções ao envez de eu usar:

if isPlayer(parameters.cid) then     

Usei direto o:

if isPlayer(cid) then     

Porque as funções recebiam diretamente o "cid" no seu cabeçalho, e não uma variavel com varios campos como no primeiro script postado.

 

Se sua duvida foi resolvida, use o botão denunciar para reportar o tópico pedindo para move-lo para resolvidos.

Link para o comentário
Compartilhar em outros sites

  • 0

cara esse script podem ser diminuidos(e muito)

 

exemplo a magia que tu queria que arrumase,diminuida e sem os erros

arrumado,tava com um "c" miniculo

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 3)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 20)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.2, 0, -1.3, 0)

function castSpell(cid,var,i)
if isPlayer(cid) and i <= 10 then
doCombat(cid,combat, var)
addEvent(castSpell,300,cid,var,i+1)
end
end

function onCastSpell(cid, var)
castSpell(cid,var,1)
end

 

o de transform é muito grande então n vo fase ele,mas seria so coloca tudo numa tabela,daki apouco edito e coloco um exemplo da tabela(mais so com ums teris exemplo o resto seria so i adicionado na tabela)

 

--edit--

exemplo de como ficaria o de transform por tabela(so com 4 transforms), so presisaria edita a tabela transforms com as id das voc,id da proxima voc,level nessesario e looktype

transforms = {
--[id da voc atual] = {newvoc = id da proxima voc(transformação), lv = level nessesario para transformar,look = {lookType = numero da looktype da tranform}}
[312] = {newvoc = 313, lv = 50,look = {lookType=357}},
[313] = {newvoc = 314, lv = 100,look = {lookType=358}},
[314] = {newvoc = 315, lv = 150,look = {lookType=359}},
[315] = {newvoc = 316, lv = 200,look = {lookType=360}}

}


ext = 1000

function trans(cid)
if isPlayer(cid) then
x = getPlayerVocation(cid)
if transforms[x] and getPlayerLevel(cid) >= transforms[x].lv and getPlayerMana(cid) >= 0 then
		doPlayerSetVocation(cid,transforms[x].newvoc)
		 doSetCreatureOutfit(cid, transforms[x].look, -1)
		doSendMagicEffect(getPlayerPosition(cid), 191)
		addEvent(trans,ext,cid)
end
end
end


function onCastSpell(cid, var)
x = getPlayerVocation(cid)
if transforms[x] then
if getPlayerLevel(cid) >= transforms[x].lv and getPlayerMana(cid) >= 0 then
addEvent(trans,ext,cid)
else
doPlayerSendCancel(cid, "You need "..transforms[x].lv.." level to use that transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
else
doPlayerSendCancel(cid, "You're at max transform")
end
return TRUE
end

ve como diminui pacas,simplifica,e deixa a edição facil.

e porcausa desses script "macarronicos"(como diria o oneshot),que n mecho com pokemon e wodbo

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

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...