Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Coloquei a vocação Tapion no servidor. O problema é porque quando ele está na ultima transformação quando eu relogo a conta ela volta para a primeira outfit.  Entao eu gostaria que ela ficasse nessa ultima transformaçao mesmo eu deslogando a conta. (serve= wodbo 8.0 )

 

 

Pra mim, pode ser dificil arrumar isso. Mas eu tenho certeza que no forum tem pessoas com conhecimento suficiente para me ajudar. Nem sempre é bom ajudar apenas se pagarem por isso sabem galera? porque a maioria das pessoas que podem me ajudar tem entre 10 a 16 anos e com essa idade nao tem como ter concluido uma faculdade de programaçao... enfim.. essas pessoas aprenderam com amigos.

 

Entao do mesmo jeito que voces gostaram de adquirir conhecimento de forma gratuita e de boa vontade... por favor ajudem quem busca conhecimento tambem.


up

Link para o post
Compartilhar em outros sites
  • Respostas 47
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

O script de transformação provavelmente é feito por uma talkaction, abra a pasta "Data/talkactions" e abra o arquivo talkactions.xml e procure pelo seu comando de transform. Veja o nome do script em

Cara adicionar todas vai ser tenso, vou tentar montar uma gambiarra para não precisar adicionar em todos a storage, se eu conseguir até amanhã eu te passo. Pois adicionar em todas vai ser complicado

Criei uma forma para você adicionar as vocações que você quer que mantenha ao deslogar: Adicione em "Data/creaturescripts/scripts" esses dois scripts: voclogin.lua: function onLogin(cid) local voc

Você pode fazer o seguinte, adicionar a tag:

setPlayerStorageValue(cid, 43553, 1)

No script da transform que deve ser uma talkaction, e depois adicionar no login.lua:

if getPlayerStorageValue(cid, 43553) == 1 then
doCreatureChangeOutfit(cid, IDDOOUTFIT)
end

Creio que isso funcione, nunca mexi com wodbo então não conheço as funções, ai fica tenso ajudar.

Link para o post
Compartilhar em outros sites

O script de transformação provavelmente é feito por uma talkaction, abra a pasta "Data/talkactions" e abra o arquivo talkactions.xml e procure pelo seu comando de transform.

Veja o nome do script em value e me passe ele que eu tento adaptar para você.

Link para o post
Compartilhar em outros sites

Ok só 1 segundo.


na pasta spells, scripts eu encontrei o arquivo transforms.lua

cliquei no arquivo e tinha isso aqui... ah desculpa mas eu nao sei usar os codidos de criar spoiler.

 
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)
 
 
shenrons1 = {lookType=198}
shenrons2 = {lookType=232}
shenrons3 = {lookType=257}
shenrons4 = {lookType=265}
shenrons5 = {lookType=325}
shenrons6 = {lookType=435}
 
 
jenk  = {lookType=446}
jenk2 = {lookType=448}
jenk3 = {lookType=449}
jenk4 = {lookType=450}
jenk5 = {lookType=451}
jenk6 = {lookType=452}
jenk7 = {lookType=453}
jenk8 = {lookType=454}
jenk9 = {lookType=447}
jenk10 = {lookType=455}
jenk11 = {lookType=456}
 
 
turles = {lookType=494}
turles2 = {lookType=495} 
turles3 = {lookType=486} 
turles4 = {lookType=487} 
turles5 = {lookType=488} 
turles6 = {lookType=489}
turles7 = {lookType=490} 
turles8 = {lookType=491} 
turles9 = {lookType=492}
turles10 = {lookType=493}
 
raditz  = {lookType=474}
raditz2 = {lookType=468}
raditz3 = {lookType=469}
raditz4 = {lookType=470}
raditz5 = {lookType=471}
raditz6 = {lookType=471}
raditz7 = {lookType=469}
raditz8 = {lookType=471}
raditz9 = {lookType=470}
raditz10 = {lookType=472}
raditz11 = {lookType=473}
 
android  = {lookType=437}
android2 = {lookType=438}
android3 = {lookType=440}
android4 = {lookType=441}
android5 = {lookType=441}
android6 = {lookType=437}
android7 = {lookType=442}
android8 = {lookType=439}
android9 = {lookType=443}
android10 = {lookType=444}
android11 = {lookType=445}
 
tapion  = {lookType=485}
tapion2 = {lookType=477}
tapion3 = {lookType=475}
tapion4 = {lookType=476}
tapion5 = {lookType=478}
tapion6 = {lookType=479}
tapion7 = {lookType=476}
tapion8 = {lookType=480}
tapion9 = {lookType=482}
tapion10 = {lookType=483}
tapion11 = {lookType=484}
tapion12 = {lookType=543}
 
kame  = {lookType=457}
kame2 = {lookType=458}
kame3 = {lookType=459}
kame4 = {lookType=460}
kame5 = {lookType=461}
kame6 = {lookType=462}
kame7 = {lookType=463}
kame8 = {lookType=464}
kame9 = {lookType=464}
kame10 = {lookType=465}
kame11 = {lookType=466}
kame12 = {lookType=541}
 
bulma  = {lookType=496}
bulma2 = {lookType=497}
bulma3 = {lookType=498}
bulma4 = {lookType=499}
bulma5 = {lookType=500}
bulma6 = {lookType=501}
bulma7 = {lookType=502}
bulma8 = {lookType=503}
bulma9 = {lookType=504}
bulma10 = {lookType=505}
bulma11 = {lookType=506}
 
kingvegeta = {lookType=508}
kingvegeta2 = {lookType=509}
kingvegeta3 = {lookType=510}
kingvegeta4 = {lookType=512}
kingvegeta5 = {lookType=513}
kingvegeta6 = {lookType=514}
kingvegeta7 = {lookType=515}
kingvegeta8 = {lookType=516}
kingvegeta9 = {lookType=517}
kingvegeta10 = {lookType=518}
kingvegeta11 = {lookType=519}
 
zaiko = {lookType=520}
zaiko2 = {lookType=521}
zaiko3 = {lookType=522}
zaiko4 = {lookType=523}
zaiko5 = {lookType=524}
zaiko6 = {lookType=525}
zaiko7 = {lookType=526}
zaiko8 = {lookType=527}
zaiko9 = {lookType=528}
zaiko10 = {lookType=529}
zaiko11 = {lookType=530}
 
yancha = {lookType=531}
yancha2 = {lookType=532}
yancha3 = {lookType=533}
yancha4 = {lookType=534}
yancha5 = {lookType=535}
yancha6 = {lookType=536}
yancha7 = {lookType=537}
yancha8 = {lookType=538}
yancha9 = {lookType=539}
yancha10 = {lookType=540}
yancha11 = {lookType=541}
 
kagome = {lookType=544}
kagome2 = {lookType=545}
kagome3 = {lookType=546}
kagome4 = {lookType=546}
kagome5 = {lookType=547}
kagome6 = {lookType=548}
kagome7 = {lookType=549}
kagome8 = {lookType=549}
kagome9 = {lookType=550}
kagome10 = {lookType=550}
kagome11 = {lookType=551}
kagome12 = {lookType=551}
 
android8 = {lookType=552}
android82 = {lookType=553}
android83 = {lookType=554}
android84 = {lookType=555}
android85 = {lookType=556}
android86 = {lookType=557}
android87 = {lookType=558}
android88 = {lookType=559}
android89 = {lookType=560}
android810 = {lookType=561}
android811 = {lookType=562}
android812 = {lookType=563}
 
ext = 1000
 
--- todos Reborn ---
function todosgt(cid)
if getPlayerVocation(cid) == 404 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 13)                     
            addEvent(todosgt,ext,cid)
 
      end
   end
end
 
 
function todosgt2(cid)
if getPlayerVocation(cid) == 405 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 13)                     
            addEvent(todosgt2,ext,cid)
 
      end
   end
end
 
 
 
 
function todosgt3(cid)
if getPlayerVocation(cid) == 406 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 13)                     
            addEvent(todosgt3,ext,cid)
 
      end
   end
end
 
 
 
function todosgt4(cid)
if getPlayerVocation(cid) == 407 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 278)                     
            addEvent(todosgt4,ext,cid)
 
      end
   end
end
 
 
 
function todosgt5(cid)
if getPlayerVocation(cid) == 408 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 265)                     
            addEvent(todosgt5,ext,cid)
 
      end
   end
end
 
 
function todosgt6(cid)
if getPlayerVocation(cid) == 416 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt6,ext,cid)
 
      end
   end
end
 
 
function todosgt7(cid)
if getPlayerVocation(cid) == 417 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt7,ext,cid)
 
      end
   end
end
 
function todosgt8(cid)
if getPlayerVocation(cid) == 418 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt8,ext,cid)
 
      end
   end
end
 
 
function todosgt9(cid)
if getPlayerVocation(cid) == 419 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt9,ext,cid)
 
      end
   end
end
 
 
function todosgt10(cid)
if getPlayerVocation(cid) == 446 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)                     
            addEvent(todosgt10,ext,cid)
 
      end
   end
end
 
function todosgt11(cid)
if getPlayerVocation(cid) == 437 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt11,ext,cid)
 
      end
   end
end
 
function todosgt12(cid)
if getPlayerVocation(cid) == 438 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt12,ext,cid)
 
      end
   end
end
 
function todosgt13(cid)
if getPlayerVocation(cid) == 439 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt13,ext,cid)
 
      end
   end
end
 
function todosgt14(cid)
if getPlayerVocation(cid) == 440 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt14,ext,cid)
 
      end
   end
end
 
function todosgt15(cid)
if getPlayerVocation(cid) == 441 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)                     
            addEvent(todosgt15,ext,cid)
 
      end
   end
end
--- todos End ---
 
 
function onCastSpell(cid, var)
 
 
--- Shenron ---
if getPlayerVocation(cid) == 398 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,399) 
            doSetCreatureOutfit(cid, shenrons2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 399 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,400) 
            doSetCreatureOutfit(cid, shenrons3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 400 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,401) 
            doSetCreatureOutfit(cid, shenrons4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 401 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,402) 
            doSetCreatureOutfit(cid, shenrons5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 403 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,404) 
      addEvent(todosgt1,ext,cid)
            doSetCreatureOutfit(cid, shenrons2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 404 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,405) 
      addEvent(todosgt2,ext,cid) 
            doSetCreatureOutfit(cid, shenrons3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 405 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,406) 
      addEvent(todosgt3,ext,cid)
            doSetCreatureOutfit(cid, shenrons4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 406 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,407) 
      addEvent(todosgt,ext,cid)
            doSetCreatureOutfit(cid, shenrons5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 407 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,408) 
      addEvent(todosgt,ext,cid)
            doSetCreatureOutfit(cid, shenrons6, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Shenron, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
--- Shenron End ---
 
--- turles ---
elseif getPlayerVocation(cid) == 409 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,410) 
            doSetCreatureOutfit(cid, turles2, -1)
doSendMagicEffect(getPlayerPosition(cid), 33) 
 
else
doPlayerSendCancel(cid, "Turles, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 410 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,411) 
            doSetCreatureOutfit(cid, turles3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Turles, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 411 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,412) 
            doSetCreatureOutfit(cid, turles4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Turles, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 412 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,413) 
            doSetCreatureOutfit(cid, turles5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Turles, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- turles reborn ------
elseif getPlayerVocation(cid) == 414 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,415) 
            doSetCreatureOutfit(cid, turles7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Turles, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 415 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,416) 
            doSetCreatureOutfit(cid, turles7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Turles, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 416 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,417)
            doSetCreatureOutfit(cid, turles8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Turles, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 417 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,418) 
            doSetCreatureOutfit(cid, turles9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Turles, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 418 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,419) 
            doSetCreatureOutfit(cid, turles10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Turles, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- turles end ------
 
--- jenk ---
elseif getPlayerVocation(cid) == 420 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,421) 
            doSetCreatureOutfit(cid, jenk2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 421 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,422) 
            doSetCreatureOutfit(cid, jenk3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 422 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,423) 
            doSetCreatureOutfit(cid, jenk4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 423 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,424) 
            doSetCreatureOutfit(cid, jenk5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- jenk reborn ------
elseif getPlayerVocation(cid) == 425 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,426) 
            doSetCreatureOutfit(cid, jenk7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 426 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,427) 
            doSetCreatureOutfit(cid, jenk8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 427 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,428) 
            doSetCreatureOutfit(cid, jenk9, -1)
doSendMagicEffect(getPlayerPosition(cid), 33) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 428 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,429) 
            doSetCreatureOutfit(cid, jenk10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 429 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,430) 
            doSetCreatureOutfit(cid, jenk11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Jenk, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- jenk end ------
 
--- raditz ---
elseif getPlayerVocation(cid) == 431 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,432) 
            doSetCreatureOutfit(cid, raditz2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 432 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,433) 
            doSetCreatureOutfit(cid, raditz3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 433 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,434) 
            doSetCreatureOutfit(cid, raditz4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 434 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,435) 
            doSetCreatureOutfit(cid, raditz5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- raditz reborn ------
elseif getPlayerVocation(cid) == 436 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,437) 
            doSetCreatureOutfit(cid, raditz7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 437 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,438) 
            doSetCreatureOutfit(cid, raditz8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 438 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,439) 
            doSetCreatureOutfit(cid, raditz9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 439 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,440) 
            doSetCreatureOutfit(cid, raditz10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 440 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,441) 
            doSetCreatureOutfit(cid, raditz11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "Raditz, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- raditz end ------
 
--- android ---
elseif getPlayerVocation(cid) == 442 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,443) 
            doSetCreatureOutfit(cid, android2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 443 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,444) 
            doSetCreatureOutfit(cid, android3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 444 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,445) 
            doSetCreatureOutfit(cid, android4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 445 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,446) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, android5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- android reborn ------
elseif getPlayerVocation(cid) == 447 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,448) 
            doSetCreatureOutfit(cid, android7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 448 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,449) 
            doSetCreatureOutfit(cid, android8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 449 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,450) 
            doSetCreatureOutfit(cid, android9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 450 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,451) 
            doSetCreatureOutfit(cid, android10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 451 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,452) 
            doSetCreatureOutfit(cid, android11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "C16, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- android end ------
 
--- tapion ---
elseif getPlayerVocation(cid) == 501 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,502) 
            doSetCreatureOutfit(cid, tapion2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 502 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,503) 
            doSetCreatureOutfit(cid, tapion3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 503 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,504) 
            doSetCreatureOutfit(cid, tapion4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 504 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,505) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, tapion5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- tapion reborn ------
elseif getPlayerVocation(cid) == 506 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,507) 
            doSetCreatureOutfit(cid, tapion7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 507 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,508) 
            doSetCreatureOutfit(cid, tapion8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 508 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,509) 
            doSetCreatureOutfit(cid, tapion9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 509 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,510) 
            doSetCreatureOutfit(cid, tapion10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 510 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,511) 
            doSetCreatureOutfit(cid, tapion11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 511 then
    if getPlayerLevel(cid) >= 600 then
      doPlayerSetVocation(cid,511) 
            doSetCreatureOutfit(cid, tapion11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "tapion, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- tapion end ------
 
 
--- kame ---
elseif getPlayerVocation(cid) == 520 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,521) 
            doSetCreatureOutfit(cid, kame2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 521 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,522) 
            doSetCreatureOutfit(cid, kame3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 522 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,523) 
            doSetCreatureOutfit(cid, kame4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 523 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,524) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, kame5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- kame reborn ------
elseif getPlayerVocation(cid) == 525 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,526) 
            doSetCreatureOutfit(cid, kame7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 526 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,527) 
            doSetCreatureOutfit(cid, kame8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 527 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,528) 
            doSetCreatureOutfit(cid, kame9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 528 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,529) 
            doSetCreatureOutfit(cid, kame10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 529 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,530) 
            doSetCreatureOutfit(cid, kame11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 530 then
    if getPlayerLevel(cid) >= 600 then
      doPlayerSetVocation(cid,531) 
            doSetCreatureOutfit(cid, kame11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 600 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- kame end ------
 
 
--- bulma ---
elseif getPlayerVocation(cid) == 533 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,534) 
            doSetCreatureOutfit(cid, bulma2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 534 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,535) 
            doSetCreatureOutfit(cid, bulma3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 535 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,536) 
            doSetCreatureOutfit(cid, bulma4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 536 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,537) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, bulma4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- bulma reborn ------
elseif getPlayerVocation(cid) == 538 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,539) 
            doSetCreatureOutfit(cid, bulma6, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 539 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,540) 
            doSetCreatureOutfit(cid, bulma7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 540 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,541) 
            doSetCreatureOutfit(cid, bulma8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kame, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 541 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,542) 
            doSetCreatureOutfit(cid, bulma9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 542 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,543) 
            doSetCreatureOutfit(cid, bulma10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 543 then
    if getPlayerLevel(cid) >= 600 then
      doPlayerSetVocation(cid,544) 
            doSetCreatureOutfit(cid, bulma11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "bulma, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- bulma end ------
 
--- kingvegeta ---
elseif getPlayerVocation(cid) == 546 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,547) 
            doSetCreatureOutfit(cid, kingvegeta2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 547 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,548) 
            doSetCreatureOutfit(cid, kingvegeta3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 548 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,549) 
            doSetCreatureOutfit(cid, kingvegeta4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 549 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,550) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, kingvegeta5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- kingvegeta reborn ------
elseif getPlayerVocation(cid) == 551 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,552) 
            doSetCreatureOutfit(cid, kingvegeta7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 552 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,553) 
            doSetCreatureOutfit(cid, kingvegeta7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 553 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,554) 
            doSetCreatureOutfit(cid, kingvegeta8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta , You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 554 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,555) 
            doSetCreatureOutfit(cid, kingvegeta9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 555 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,556) 
            doSetCreatureOutfit(cid, kingvegeta10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 543 then
    if getPlayerLevel(cid) >= 600 then
      doPlayerSetVocation(cid,544) 
            doSetCreatureOutfit(cid, kingvegeta11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kingvegeta, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- kingvegeta end ------
 
--- zaiko ---
elseif getPlayerVocation(cid) == 558 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,559) 
            doSetCreatureOutfit(cid, zaiko2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 559 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,560) 
            doSetCreatureOutfit(cid, zaiko2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 560 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,561) 
            doSetCreatureOutfit(cid, zaiko3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 561 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,562) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, zaiko4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- zaiko reborn ------
elseif getPlayerVocation(cid) == 563 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,564) 
            doSetCreatureOutfit(cid, zaiko6, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 564 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,565) 
            doSetCreatureOutfit(cid, zaiko7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 565 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,566) 
            doSetCreatureOutfit(cid, zaiko8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 566 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,567) 
            doSetCreatureOutfit(cid, zaiko9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 567 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,568) 
            doSetCreatureOutfit(cid, zaiko10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 568 then
    if getPlayerLevel(cid) >= 600 then
      doPlayerSetVocation(cid,569) 
            doSetCreatureOutfit(cid, zaiko11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "zaiko, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- zaiko end ------
 
--- yancha ---
elseif getPlayerVocation(cid) == 571 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,572) 
            doSetCreatureOutfit(cid, yancha2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 572 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,573) 
            doSetCreatureOutfit(cid, yancha3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 573 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,574) 
            doSetCreatureOutfit(cid, yancha4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 574 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,575) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, yancha4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- yancha reborn ------
elseif getPlayerVocation(cid) == 576 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,577) 
            doSetCreatureOutfit(cid, yancha6, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 577 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,578) 
            doSetCreatureOutfit(cid, yancha7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 578 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,579) 
            doSetCreatureOutfit(cid, yancha8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 579 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,580) 
            doSetCreatureOutfit(cid, yancha9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 580 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,581) 
            doSetCreatureOutfit(cid, yancha10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 581 then
    if getPlayerLevel(cid) >= 600 then
      doPlayerSetVocation(cid,582) 
            doSetCreatureOutfit(cid, yancha11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "yancha, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- yancha end ------
 
--- kagome ---
elseif getPlayerVocation(cid) == 583 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,584) 
            doSetCreatureOutfit(cid, kagome2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 584 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,585) 
            doSetCreatureOutfit(cid, kagome3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 585 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,586) 
            doSetCreatureOutfit(cid, kagome4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 586 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,587) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, kagome5, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- kagome reborn ------
elseif getPlayerVocation(cid) == 588 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,589) 
            doSetCreatureOutfit(cid, kagome7, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 564 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,591) 
            doSetCreatureOutfit(cid, kagome8, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 591 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,592)
addEvent(todosgt10,ext,cid) 
            doSetCreatureOutfit(cid, kagome9, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 592 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,567) 
            doSetCreatureOutfit(cid, kagome10, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 592 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,593) 
            doSetCreatureOutfit(cid, kagome11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 593 then
    if getPlayerLevel(cid) >= 600 then
      doPlayerSetVocation(cid,594)
addEvent(todosgt10,ext,cid) 
            doSetCreatureOutfit(cid, kagome11, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "kagome, You need 600 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- kagome end ------
 
--- android8 ---
elseif getPlayerVocation(cid) == 595 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,596) 
            doSetCreatureOutfit(cid, android82, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 596 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,597) 
            doSetCreatureOutfit(cid, android83, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 597 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,598) 
            doSetCreatureOutfit(cid, android84, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 598 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,599) 
      addEvent(todosgt10,ext,cid)
            doSetCreatureOutfit(cid, android85, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
------- android8 reborn ------
elseif getPlayerVocation(cid) == 600 then
    if getPlayerLevel(cid) >= 50 then
      doPlayerSetVocation(cid,601) 
            doSetCreatureOutfit(cid, android87, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 601 then
    if getPlayerLevel(cid) >= 100 then
      doPlayerSetVocation(cid,602) 
            doSetCreatureOutfit(cid, android88, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 602 then
    if getPlayerLevel(cid) >= 150 then
      doPlayerSetVocation(cid,603) 
            doSetCreatureOutfit(cid, android89, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 603 then
    if getPlayerLevel(cid) >= 200 then
      doPlayerSetVocation(cid,604) 
            doSetCreatureOutfit(cid, android810, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
 
elseif getPlayerVocation(cid) == 604 then
    if getPlayerLevel(cid) >= 400 then
      doPlayerSetVocation(cid,605) 
            doSetCreatureOutfit(cid, android811, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
elseif getPlayerVocation(cid) == 605 then
    if getPlayerLevel(cid) >= 600 then
      doPlayerSetVocation(cid,606) 
            doSetCreatureOutfit(cid, android812, -1)
doSendMagicEffect(getPlayerPosition(cid), 32) 
 
else
doPlayerSendCancel(cid, "android8, You need 600 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
 
-------- android8 end ------
 
 
else
doPlayerSendCancel(cid, "You cannot transform.")
doSendMagicEffect(getPlayerPosition(cid), 2) 
end
end

eu pretendo adicionar todas essas vocaçoes no servidor.. sendo que no momento so consegui adicionar o tapion. Entao se vc puder arrumar pra todas vocaçoes aii ja ficarem configuradas para quando usar a transformacao do level 400 nao voltar a outfit quando relogar o char eu agradeceria muito.


olha em data\creaturescripts\scripts tem o arquivo que vc pediu login.lua e nele tem apenas isso aqui:

 

function onLogin(cid)
 
 
doPlayerAddItem(cid,2148,1)
return 1
end
Editado por jeanchess (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Cara adicionar todas vai ser tenso, vou tentar montar uma gambiarra para não precisar adicionar em todos a storage, se eu conseguir até amanhã eu te passo.

Pois adicionar em todas vai ser complicado e também iria bugar, vou ver o que faço.

Link para o post
Compartilhar em outros sites

Ok mas se vc quiser adiantar so a do tapion aii eu ja faço os testes aqui e se funcionar nele... no restante tb irá pegar... o que vc acha? mas veja aii o que for melhor pra vc brother.


A transformação que eu quero que fique mesmo o char relogando é a do level 400 ta bom?

agradeço toda ajuda que vc puder ok

Link para o post
Compartilhar em outros sites

Criei uma forma para você adicionar as vocações que você quer que mantenha ao deslogar:

Adicione em "Data/creaturescripts/scripts" esses dois scripts:

voclogin.lua:

function onLogin(cid)
local vocations = {
["Tapion"] = {voc = 5, storage = 210000, outfit = 139}, -- ["Nome da vocação"], ID da vocação, storage da vocação( nunca repita a storage em outro outfit!! ) e outfit que vai ganhar ao logar com a vocação!
["Kame"] = {voc = 8, storage = 210001, outfit = 303}
}

for k, v in pairs(vocations) do
local outfit = {lookType = v.outfit , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

if getPlayerStorageValue(cid, v.storage) == 1 then
doPlayerSetVocation(cid, v.voc)
doSetCreatureOutfit(cid, outfit, -1)
end
end

return true
end

voclogout.lua:

function onLogout(cid)

local vocations = {
["Tapion"] = {voc = 5, storage = 210000}, -- ["Nome da vocação"], ID da vocação e storage da vocação( nunca repita a storage em outro outfit!! )
["Kame"] = {voc = 8, storage = 210001}
}

for k, v in pairs(vocations) do
if getPlayerStorageValue(cid, v.storage) == 1 and getPlayerVocation(cid, v.vocation) == false then
setPlayerStorageValue(cid, v.storage, -1)
return true
end

if getPlayerVocation(cid) == v.voc then
setPlayerStorageValue(cid, v.storage, 1)
end
end

return true
end

Depois adicione as tags em "Data/creaturescripts" no arquivo creaturescripts.xml:

<event type="logout" name="VocLogout" event="script" value="voclogout.lua"/>
<event type="login" name="VocLogin" event="script" value="voclogin.lua"/>

Para configurar você deve colocar a mesma vocação nos dois scripts na tabela, a mesma storage pra cada uma( nunca repita a storage para outra vocation ) e na de login você configura também o outfit que vai ficar quando o player logar com tal vocação.

Na hora de adicionar uma nova, você deve copiar a primeira e colar antes da ultima, para separar a linha de cada outfit por uma vírgula.

 

 

Se tiver algum problema/dúvida é só dizer.

Créditos ao fireelement por me ajudar com a parte dos outfits :).

Link para o post
Compartilhar em outros sites

eu vou tentar aqui e ver se funciona obrigado pela ajuda amigo. Como falei antes, sou leigo mas nao desisto de aprender. Qualquer coisa posto aqui para vc ver se eu fiz algo errado.. aii no exemplo vc usou a vocaçao kame e tapion ne?  REP+ para vc viu , vou tentar aqui enquanto isso.

Link para o post
Compartilhar em outros sites

eu vou tentar aqui e ver se funciona obrigado pela ajuda amigo. Como falei antes, sou leigo mas nao desisto de aprender. Qualquer coisa posto aqui para vc ver se eu fiz algo errado.. aii no exemplo vc usou a vocaçao kame e tapion ne?  REP+ para vc viu , vou tentar aqui enquanto isso.

Usei a Kame e Tapion, mais o nome é só para identificar, ele está configurado com outfits e vocations do tibia, para testar.

Configure a vocation e a outfit certinha da vocação desejada :).

Link para o post
Compartilhar em outros sites

ah uma duvida esse wodbo 8.0 tem o sistema de transformaçoes por level.. exemplo:

o player chega no level 50 e escreve transform aii ele ganha uma nova vocaçao e outfit... depois tem nova transformaçao no level 100 , 150, 200... ou seja, terei que configurar todas essas transformaçoes nesse dois scripts que vc passou para as vocaçoes nao voltarem quando eu logar o char?

Link para o post
Compartilhar em outros sites

ah uma duvida esse wodbo 8.0 tem o sistema de transformaçoes por level.. exemplo:

o player chega no level 50 e escreve transform aii ele ganha uma nova vocaçao e outfit... depois tem nova transformaçao no level 100 , 150, 200... ou seja, terei que configurar todas essas transformaçoes nesse dois scripts que vc passou para as vocaçoes nao voltarem quando eu logar o char?

Sim, pois as funções utilizadas não salva as alterações.

Link para o post
Compartilhar em outros sites

Vou colocar um exemplo aqui ( os numeros nao sao reais tah, é so pra supor)  veja se está certo se eu fizer assim na hora de adicionar todas transformaçoes de um char.

exemplo tapion ficaria assim :

 

function onLogin(cid)
local vocations = {
["Tapion"] = {voc = 5, storage = 210000, outfit = 139},{voc = 6, storage = 210000, outfit = 140},{voc = 7, storage = 210000, outfit = 141},{voc = 8, storage = 210000, outfit = 142}  e assim por diante ate completar a transformaçao do level 400?

Link para o post
Compartilhar em outros sites

Vou colocar um exemplo aqui ( os numeros nao sao reais tah, é so pra supor)  veja se está certo se eu fizer assim na hora de adicionar todas transformaçoes de um char.

exemplo tapion ficaria assim :

 

function onLogin(cid)

local vocations = {

["Tapion"] = {voc = 5, storage = 210000, outfit = 139},{voc = 6, storage = 210000, outfit = 140},{voc = 7, storage = 210000, outfit = 141},{voc = 8, storage = 210000, outfit = 142}  e assim por diante ate completar a transformaçao do level 400?

Quase certo, tem que ser uma em baixo da outra e a storage tem que ser uma pra cada vocação:

["Tapion1"] = {voc = 5, storage = 210000, outfit = 139},

["Tapion2"] = {voc = 6, storage = 210001, outfit = 140},

["Tapion3"] = {voc = 7, storage = 210002, outfit = 141},

["Tapion4"] = {voc = 8, storage = 210003, outfit = 142}

 

Se não tiver uma storage para cada, irá bugar.

Link para o post
Compartilhar em outros sites

vou testar e muito obrigado por está me ajudando. Te desejo muito sucesso viu.


Eu fiz tudo o que vc falou, mas continua com o mesmo problema de quando eu transformo e relogo o char perde a outfit... ver se eu fiz certo:

 
function onLogin(cid)
local vocations = {
["tapion"] = {voc = 501, storage = 210000, outfit = 485},
["tapion2"] = {voc = 502, storage = 210001, outfit = 477},
["tapion3"] = {voc = 503, storage = 210002, outfit = 475},
["tapion4"] = {voc = 504, storage = 210003, outfit = 476},
["tapion5"] = {voc = 505, storage = 210004, outfit = 478},
["tapion Gt"] = {voc = 506, storage = 210005, outfit = 479},
["tapion2 Gt"] = {voc = 507, storage = 210006, outfit = 480},
["tapion3 Gt"] = {voc = 508, storage = 210007, outfit = 481},
["tapion4 Gt"] = {voc = 509, storage = 210008, outfit = 482},
["tapion5 Gt"] = {voc = 510, storage = 210009, outfit = 483},
["tapion6 gt"] = {voc = 511, storage = 210010, outfit = 421},
["tapion7 gt"] = {voc = 512, storage = 210011, outfit = 484}
 
 
}
 
for k, v in pairs(vocations) do
local outfit = {lookType = v.outfit , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
 
if getPlayerStorageValue(cid, v.storage) == 1 then
doPlayerSetVocation(cid, v.voc)
doSetCreatureOutfit(cid, outfit, -1)
end
end
 
return true
end

e aqui a outra parte da script...

function onLogout(cid)
 
local vocations = {
["tapion"] = {voc = 501, storage = 210000, outfit = 485},
["tapion2"] = {voc = 502, storage = 210001, outfit = 477},
["tapion3"] = {voc = 503, storage = 210002, outfit = 475},
["tapion4"] = {voc = 504, storage = 210003, outfit = 476},
["tapion5"] = {voc = 505, storage = 210004, outfit = 478},
["tapion Gt"] = {voc = 506, storage = 210005, outfit = 479},
["tapion2 Gt"] = {voc = 507, storage = 210006, outfit = 480},
["tapion3 Gt"] = {voc = 508, storage = 210007, outfit = 481},
["tapion4 Gt"] = {voc = 509, storage = 210008, outfit = 482},
["tapion5 Gt"] = {voc = 510, storage = 210009, outfit = 483},
["tapion6 gt"] = {voc = 511, storage = 210010, outfit = 421},
["tapion7 gt"] = {voc = 512, storage = 210011, outfit = 484}
 
}
 
for k, v in pairs(vocations) do
if getPlayerStorageValue(cid, v.storage) == 1 and getPlayerVocation(cid, v.vocation) == false then
setPlayerStorageValue(cid, v.storage, -1)
return true
end
 
if getPlayerVocation(cid) == v.voc then
setPlayerStorageValue(cid, v.storage, 1)
end
end
 
return true
end
Editado por jeanchess (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

 

vou testar e muito obrigado por está me ajudando. Te desejo muito sucesso viu.

Eu fiz tudo o que vc falou, mas continua com o mesmo problema de quando eu transformo e relogo o char perde a outfit... ver se eu fiz certo:

 
function onLogin(cid)
local vocations = {
["tapion"] = {voc = 501, storage = 210000, outfit = 485},
["tapion2"] = {voc = 502, storage = 210001, outfit = 477},
["tapion3"] = {voc = 503, storage = 210002, outfit = 475},
["tapion4"] = {voc = 504, storage = 210003, outfit = 476},
["tapion5"] = {voc = 505, storage = 210004, outfit = 478},
["tapion Gt"] = {voc = 506, storage = 210005, outfit = 479},
["tapion2 Gt"] = {voc = 507, storage = 210006, outfit = 480},
["tapion3 Gt"] = {voc = 508, storage = 210007, outfit = 481},
["tapion4 Gt"] = {voc = 509, storage = 210008, outfit = 482},
["tapion5 Gt"] = {voc = 510, storage = 210009, outfit = 483},
["tapion6 gt"] = {voc = 511, storage = 210010, outfit = 421},
["tapion7 gt"] = {voc = 512, storage = 210011, outfit = 484}
 
 
}
 
for k, v in pairs(vocations) do
local outfit = {lookType = v.outfit , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
 
if getPlayerStorageValue(cid, v.storage) == 1 then
doPlayerSetVocation(cid, v.voc)
doSetCreatureOutfit(cid, outfit, -1)
end
end
 
return true
end

e aqui a outra parte da script...

function onLogout(cid)
 
local vocations = {
["tapion"] = {voc = 501, storage = 210000, outfit = 485},
["tapion2"] = {voc = 502, storage = 210001, outfit = 477},
["tapion3"] = {voc = 503, storage = 210002, outfit = 475},
["tapion4"] = {voc = 504, storage = 210003, outfit = 476},
["tapion5"] = {voc = 505, storage = 210004, outfit = 478},
["tapion Gt"] = {voc = 506, storage = 210005, outfit = 479},
["tapion2 Gt"] = {voc = 507, storage = 210006, outfit = 480},
["tapion3 Gt"] = {voc = 508, storage = 210007, outfit = 481},
["tapion4 Gt"] = {voc = 509, storage = 210008, outfit = 482},
["tapion5 Gt"] = {voc = 510, storage = 210009, outfit = 483},
["tapion6 gt"] = {voc = 511, storage = 210010, outfit = 421},
["tapion7 gt"] = {voc = 512, storage = 210011, outfit = 484}
 
}
 
for k, v in pairs(vocations) do
if getPlayerStorageValue(cid, v.storage) == 1 and getPlayerVocation(cid, v.vocation) == false then
setPlayerStorageValue(cid, v.storage, -1)
return true
end
 
if getPlayerVocation(cid) == v.voc then
setPlayerStorageValue(cid, v.storage, 1)
end
end
 
return true
end

Apresenta algum erro na distro? Lembrando que ele só vai funcionar com as vocações definidas no script.

Link para o post
Compartilhar em outros sites

No distro acho que nao tem erro algum... e eu estou tentando nessa vocaçao que ta na script tapion...mas acontece a mesma coisa.. eu fiz o teste aqui criei uma acc upei pra level 50. Quando eu sai e entrei no char ela volta a outift... segue a imagem do distro.

 

Screenshot_serv.jpg


O que mais podemos tentar para corrigir esse problema da outfit sair quando o char reloga?

Link para o post
Compartilhar em outros sites

No distro acho que nao tem erro algum... e eu estou tentando nessa vocaçao que ta na script tapion...mas acontece a mesma coisa.. eu fiz o teste aqui criei uma acc upei pra level 50. Quando eu sai e entrei no char ela volta a outift... segue a imagem do distro.

 

Screenshot_serv.jpg

O que mais podemos tentar para corrigir esse problema da outfit sair quando o char reloga?

Creio que apenas em scripts onLogin/onLogout ou alteração nas sources( não sei mexer ), faça um teste para ver se tem problema no script.

Pegue uma storage citada, tipo a do tapion3 e altere o valor dela para 1 e relogue o char, se estiver realmente funcionando a outfit e a vocation irá mudar para tapion3.

Link para o post
Compartilhar em outros sites

é para eu ir na script da storage do tapion 3  ( 210002) e mudar esse valor para ( 1 ) ?


Wakon, tem varios server wodbo 8.0 com novas vocaçoes no otlist... eu acho que eles conseguiram colocar as vocaçoes para nao voltar quando relogar pelo metodo que vc falou no scripts login.lua/logout.lua. em creaturesscripts. O que eu escrevo la entao?

Link para o post
Compartilhar em outros sites

Amigo, esse é o modo que eu coloquei, perceba que nos scripts tem uma função onLogin e uma onLogout :).

Sobre a storage, você pode mudar pela database em player_storage e também em alguns servidores tem o comando:

/storage Wakon, 200001, 1 -- Nome, storage, valor da storage.

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.




×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo