Ir para conteúdo

Raios Nas Vocations Sem Bugs [8.00]


gustavo3754

Posts Recomendados

Sim prescisa essa é a função que vai mudar o outfit do player.

Não posso adiciona msn por que o meu ta lotado wacko.png

 

Olha dei uma olhada no script vo postar outro ve se funciona..

 

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)
c16 = {lookType=467}
c161 = {lookType=471}
c162 = {lookType=468}
c163 = {lookType=469}
c164 = {lookType=470}
c165 = {lookType=472}
c166 = {lookType=473}
c167 = {lookType=474}
c168 = {lookType=475}
gotenksgtssj = {lookType=169}
gotenksgtssj3 = {lookType=170}
shenrons1 = {lookType=198}
shenrons2 = {lookType=77}
shenrons3 = {lookType=257}
shenrons4 = {lookType=232}
shenrons5 = {lookType=20}
shenrons6 = {lookType=265}
ext = 1000
---C16---
function trans(cid)
if getPlayerVocation(cid) == 412 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 278)		 
								    addEvent(trans,ext,cid)
			  end
  end
end
---End c16---
---Reborn c16---
function trans4(cid)
if getPlayerVocation(cid) == 416 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid),278)
								    addEvent(trans4,ext,cid)
			  end
  end
end
function trans5(cid)
if getPlayerVocation(cid) == 417 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 278)															   
								    addEvent(trans5,ext,cid)
			  end
  end
end
function trans6(cid)
if getPlayerVocation(cid) == 418 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 278)																			   
								    addEvent(trans6,ext,cid)
			  end
  end
end
function trans7(cid)
if getPlayerVocation(cid) == 419 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 278)																		 
								    addEvent(trans7,ext,cid)
			  end
  end
end
function trans8(cid)
if getPlayerVocation(cid) == 514 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 294)																		 
								    addEvent(trans8,ext,cid)
			  end
  end
end
--- Reborn c16 End ---
--- Gotenks ---
function trans(cid)
if getPlayerVocation(cid) == 84 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 14)										  
								    addEvent(fusion,ext,cid)
			  end
  end
end
function fusion1(cid)
if getPlayerVocation(cid) == 85 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 234)																 
								    addEvent(fusion1,ext,cid)
			  end
  end
end
function fusionchibi(cid)
if getPlayerVocation(cid) == 317 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 14)										  
								    addEvent(fusionchibi,ext,cid)
			  end
  end
end
function fusionchibi2(cid)
if getPlayerVocation(cid) == 318 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 234)																 
								    addEvent(fusionchibi2,ext,cid)
			  end
  end
end
--- Gotenks End ---
--- Gotenks Reborn ---
function fusion2(cid)
if getPlayerVocation(cid) == 320 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 14)										  
								    addEvent(fusion2,ext,cid)
			  end
  end
end
function fusion3(cid)
if getPlayerVocation(cid) == 321 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 234)																 
								    addEvent(fusion3,ext,cid)
			  end
  end
end
function fusionchibigt(cid)
if getPlayerVocation(cid) == 323 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 14)										  
								    addEvent(fusionchibigt,ext,cid)
			  end
  end
end
function fusionchibigt1(cid)
if getPlayerVocation(cid) == 324 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 234)																 
								    addEvent(fusionchibigt1,ext,cid)
			  end
  end
end
--- Chibi Trunks Transform ---
--- Gotenks Reborn End ---
--- Shenron ---
function shenron(cid)
if getPlayerVocation(cid) == 330 then
if getPlayerMana(cid) >= 0 then		
 doSendMagicEffect(getPlayerPosition(cid), 13)						
								    addEvent(shenron,ext,cid)
			  end
  end
end
function shenron2(cid)
if getPlayerVocation(cid) == 331 then
if getPlayerMana(cid) >= 0 then 
 doSendMagicEffect(getPlayerPosition(cid), 13)						  
								    addEvent(shenron2,ext,cid)
			  end
  end
end
function shenron3(cid)
if getPlayerVocation(cid) == 332 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 13)														
								    addEvent(shenron3,ext,cid)
			  end
  end
end
function shenron4(cid)
if getPlayerVocation(cid) == 333 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 13)														
								    addEvent(shenron4,ext,cid)
			  end
  end
end
function shenron5(cid)
if getPlayerVocation(cid) == 334 then
if getPlayerMana(cid) >= 0 then 
 doSendMagicEffect(getPlayerPosition(cid), 13)										  
								    addEvent(shenron5,ext,cid)
			  end
  end
end
function shenron6(cid)
if getPlayerVocation(cid) == 335 then
if getPlayerMana(cid) >= 0 then		
 doSendMagicEffect(getPlayerPosition(cid), 13)						  
								    addEvent(shenron6,ext,cid)
			  end
  end
end
--- Shenron Reborn ---
function shenrongt(cid)
if getPlayerVocation(cid) == 337 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 180)																		 
								    addEvent(shenrongt,ext,cid)
			  end
  end
end
function shenrongt1(cid)
if getPlayerVocation(cid) == 338 then
if getPlayerMana(cid) >= 0 then
 doSendMagicEffect(getPlayerPosition(cid), 180)																		 
								    addEvent(shenrongt1,ext,cid)
			  end
  end
end
function shenrongt2(cid)
if getPlayerVocation(cid) == 339 then
if getPlayerMana(cid) >= 0 then 
 doSendMagicEffect(getPlayerPosition(cid), 180)															   
								    addEvent(shenrongt2,ext,cid)
			  end
  end
end
function shenrongt3(cid)
if getPlayerVocation(cid) == 340 then
if getPlayerMana(cid) >= 0 then		
 doSendMagicEffect(getPlayerPosition(cid), 180)											   
								    addEvent(shenrongt3,ext,cid)
			  end
  end
end
--- Shenron End ---
function onCastSpell(cid, var)
---Janemba---
if getPlayerVocation(cid) == 303 then
    if getPlayerLevel(cid) >= 50 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,304)
							 doSetCreatureOutfit(cid, outfit, -1)
			  addEvent(trans,ext,cid)
				    doSendMagicEffect(getPlayerPosition(cid), 233)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 304 then
    if getPlayerLevel(cid) >= 100 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,305)
			  addEvent(trans1,ext,cid)
											  doSendMagicEffect(getPlayerPosition(cid), 33)
								    doSetCreatureOutfit(cid, outfit1, -1)
else
doPlayerSendCancel(cid, "You need 100 level to next transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 305 then
    if getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,306)
			  addEvent(trans2,ext,cid)
			 doSendMagicEffect(getPlayerPosition(cid), 18)
								    doSetCreatureOutfit(cid, outfit2, -1)
else
doPlayerSendCancel(cid, "You need 150 level to next transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 306 then
    if getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,307)
			  addEvent(trans3,ext,cid)
			 doSendMagicEffect(getPlayerPosition(cid), 243)
								    doSetCreatureOutfit(cid, outfit3, -1)
else
doPlayerSendCancel(cid, "You need 200 level to next transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- Reborn ---
elseif getPlayerVocation(cid) == 308 then
    if getPlayerLevel(cid) >= 50 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,309)
			  addEvent(trans4,ext,cid)
				    doSendMagicEffect(getPlayerPosition(cid), 7)
								    doSetCreatureOutfit(cid, outfits, -1)
else
doPlayerSendCancel(cid, "You need 50 level to next transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 309 then
    if getPlayerLevel(cid) >= 100 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,310)
			  addEvent(trans5,ext,cid)
							   doSendMagicEffect(getPlayerPosition(cid), 33)
								    doSetCreatureOutfit(cid, outfits1, -1)
else
doPlayerSendCancel(cid, "You need 100 level to next transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 310 then
    if getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,311)
			  addEvent(trans6,ext,cid)
			 doSendMagicEffect(getPlayerPosition(cid), 18)
								    doSetCreatureOutfit(cid, outfits2, -1)
else
doPlayerSendCancel(cid, "You need 150 level to next transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 311 then
    if getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,312)
			  addEvent(trans7,ext,cid)
			 doSendMagicEffect(getPlayerPosition(cid), 243)
								    doSetCreatureOutfit(cid, outfits3, -1)
else
doPlayerSendCancel(cid, "You need 200 level to next transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
---End Janemba? ---
--- Gotenks ---
elseif getPlayerVocation(cid) == 313 then
    if getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,314)
			  addEvent(fusion,ext,cid)
								    doSetCreatureOutfit(cid, gotenksssj, -1)
			  setPlayerStorageValue(cid,20235,1)
 doSendMagicEffect(getPlayerPosition(cid), 63)
else
doPlayerSendCancel(cid, "Gotenks! You need 150 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 314 then
    if getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,315)
			  addEvent(fusion1,ext,cid)
								    doSetCreatureOutfit(cid, gotenksssj3, -1)
			  setPlayerStorageValue(cid,20235,2)
 doSendMagicEffect(getPlayerPosition(cid), 64)
else
doPlayerSendCancel(cid, "Gotenks! You need 200 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- Chibi ---
elseif getPlayerVocation(cid) == 316 then
    if getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,317)
			  addEvent(fusionchibi,ext,cid)
								    doSetCreatureOutfit(cid, gotenksssj, -1)
			  setPlayerStorageValue(cid,20235,1)
 doSendMagicEffect(getPlayerPosition(cid), 63)
else
doPlayerSendCancel(cid, "Gotenks! You need 150 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 317 then
    if getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,318)
			  addEvent(fusionchibi2,ext,cid)
								    doSetCreatureOutfit(cid, gotenksssj3, -1)
			  setPlayerStorageValue(cid,20235,2)
 doSendMagicEffect(getPlayerPosition(cid), 64)
else
doPlayerSendCancel(cid, "Gotenks! You need 200 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- Reborn ---
--- Goten ---
elseif getPlayerVocation(cid) == 319 then
    if getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,320)
			  addEvent(fusion,ext,cid)
								    doSetCreatureOutfit(cid, gotenksgtssj, -1)
			  setPlayerStorageValue(cid,20236,3)
 doSendMagicEffect(getPlayerPosition(cid), 63)
else
doPlayerSendCancel(cid, "Gotenks GT! You need 150 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 320 then
    if getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,321)
			  addEvent(fusion1,ext,cid)
								    doSetCreatureOutfit(cid, gotenksgtssj3, -1)
			  setPlayerStorageValue(cid,20236,4)
 doSendMagicEffect(getPlayerPosition(cid), 64)
else
doPlayerSendCancel(cid, "Gotenks GT! You need 200 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- Chibi Trunks ---
elseif getPlayerVocation(cid) == 322 then
    if getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,323)
			  addEvent(fusionchibigt,ext,cid)
								    doSetCreatureOutfit(cid, gotenksgtssj, -1)
			  setPlayerStorageValue(cid,20236,3)
 doSendMagicEffect(getPlayerPosition(cid), 63)
else
doPlayerSendCancel(cid, "Gotenks GT! You need 150 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 323 then
    if getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,324)
			  addEvent(fusionchibigt1,ext,cid)
								    doSetCreatureOutfit(cid, gotenksgtssj3, -1)
			  setPlayerStorageValue(cid,20236,4)
 doSendMagicEffect(getPlayerPosition(cid), 64)
else
doPlayerSendCancel(cid, "Gotenks GT! You need 200 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
---End Janemba---
--- Shenron ---
elseif getPlayerVocation(cid) == 329 then
    if getPlayerLevel(cid) >= 30 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,330)
			  addEvent(shenron,ext,cid)
								    doSetCreatureOutfit(cid, shenrons1, -1)
 doSendMagicEffect(getPlayerPosition(cid), 75)
else
doPlayerSendCancel(cid, "Shenron, You need 30 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 330 then
    if getPlayerLevel(cid) >= 50 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,331)
			  addEvent(shenron2,ext,cid)
								    doSetCreatureOutfit(cid, shenrons2, -1)
 doSendMagicEffect(getPlayerPosition(cid), 233)
else
doPlayerSendCancel(cid, "Shenron, You need 50 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 331 then
    if getPlayerLevel(cid) >= 75 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,332)
			  addEvent(shenron3,ext,cid)
								    doSetCreatureOutfit(cid, shenrons3, -1)
 doSendMagicEffect(getPlayerPosition(cid), 75)
else
doPlayerSendCancel(cid, "Shenron, You need 75 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 332 then
    if getPlayerLevel(cid) >= 100 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,333)
			  addEvent(shenron4,ext,cid)
								    doSetCreatureOutfit(cid, shenrons4, -1)
 doSendMagicEffect(getPlayerPosition(cid), 75)
else
doPlayerSendCancel(cid, "Shenron, You need 100 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 333 then
    if getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,334)
			  addEvent(shenron5,ext,cid)
								    doSetCreatureOutfit(cid, shenrons5, -1)
 doSendMagicEffect(getPlayerPosition(cid), 233)
else
doPlayerSendCancel(cid, "Shenron, You need 150 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 334 then
    if getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,335)
			  addEvent(shenron6,ext,cid)
								    doSetCreatureOutfit(cid, shenrons6, -1)
 doSendMagicEffect(getPlayerPosition(cid), 75)
else
doPlayerSendCancel(cid, "Shenron, You need 200 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- Shenron Reborn ---
elseif getPlayerVocation(cid) == 336 then
    if getPlayerLevel(cid) >= 50 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,337)
			  addEvent(shenrongt,ext,cid)
								    doSetCreatureOutfit(cid, shenrons2, -1)
 doSendMagicEffect(getPlayerPosition(cid), 75)
else
doPlayerSendCancel(cid, "Shenron, You need 50 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 337 then
    if getPlayerLevel(cid) >= 100 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,338)
			  addEvent(shenrongt1,ext,cid)
								    doSetCreatureOutfit(cid, shenrons3, -1)
 doSendMagicEffect(getPlayerPosition(cid), 75)
else
doPlayerSendCancel(cid, "Shenron, You need 100 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 338 then
    if getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,339)
			  addEvent(shenrongt2,ext,cid)
								    doSetCreatureOutfit(cid, shenrons4, -1)
 doSendMagicEffect(getPlayerPosition(cid), 233)
doPlayerSendCancel(cid, "Success Transform.")
else
doPlayerSendCancel(cid, "Shenron, You need 150 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 339 then
    if getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'Transforms', TALKTYPE_ORANGE_1)
			  doPlayerSetVocation(cid,340)
			  addEvent(shenrongt3,ext,cid)
								    doSetCreatureOutfit(cid, shenrons6, -1)
 doSendMagicEffect(getPlayerPosition(cid), 75)
else
doPlayerSendCancel(cid, "Shenron, You need 200 level to transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- Shenron End ---
else
doPlayerSendCancel(cid, "You cannot transform.")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end
end

 

Se não funciona usa o meu server que ta na minha assinatura. Ele tem muit mais coisa e sem bugs.

Link para o comentário
Compartilhar em outros sites

  • Respostas 35
  • Created
  • Última resposta

Top Posters In This Topic

Cara vlw deu certinho aki muito obrigado kra levo meu rep+

 

ahh kra se possível me der uma ajuda eu gostaria de colocar shop no meu site eu uso o nicaw acc.

um shop pagseguro ou paypal tipo o desse site

http://www.dbzuniononline.com/dbzunion/buypoints.php

Link para o comentário
Compartilhar em outros sites

  • 3 weeks later...

@iFaxBr

 

Bom vou postar pra você um começ meu ai se ve o que pode faser, tipo o efeito pode não esta funcionando por que alguns servers de tibia que usam como base pode ter o maximo de efeitos 67 ou menos por isso tem que saber editar soucer como eu falei happy.png

 

[~Download~]

 

Servidor Base 8.54 Project 0.0.2 + Client 8.54 DBOBR

 

 

--- EDIT ---

 

Se alguem souber mecher com soucer e aumentar o numero maximo de efeito nesse projeto eu agradeço.

 

http://www.xtibia.com/forum/topic/137748-tutorialadicionando-efeitos/

Link para o comentário
Compartilhar em outros sites

  • 5 weeks later...

×
×
  • Criar Novo...