Ir para conteúdo

Posts Recomendados

Bem galera eu tou fazendo um OT de WodBO na versão 8.54 e estou usando como o TheForgottenServ-0.3.6pl1, porem ele não da load no Script de transformação que eu conssegui se alguem poder me ajudar criar um novo script ou, concertar este que vou postar eu darei REP ++ e ficarei agradecido

 

Aki esta a Imagem

 

208fjm8.jpg

 

Aki esta o Script!

 

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)



ichigo1 = {lookType=56}
ichigo2 = {lookType=62}
ichigo3 = {lookType=83}
ichigo4 = {lookType=8}
ichigo5 = {lookType=59}
ichigo6 = {lookType=21}
ichigo7 = {lookType=52}

rukia1 = {lookType=138}
rukia2 = {lookType=125}
rukia3 = {lookType=284}
rukia4 = {lookType=296}
rukia5 = {lookType=251}
rukia6 = {lookType=251}

byakuya1 = {lookType=289}
byakuya2 = {lookType=119}
byakuya3 = {lookType=78}
byakuya4 = {lookType=67}

byakuya1 = {lookType=289}
byakuya2 = {lookType=119}
byakuya3 = {lookType=78}
byakuya4 = {lookType=67}

hitsugaya1 = {lookType=4}
hitsugaya2 = {lookType=3}
hitsugaya3 = {lookType=105}
hitsugaya4 = {lookType=45}
hitsugaya5 = {lookType=11}

zaraki1 = {lookType=100}
zaraki2 = {lookType=115}
zaraki3 = {lookType=63}
zaraki4 = {lookType=135}

renji1 = {lookType=29}
renji2 = {lookType=106}
renji3 = {lookType=124}
renji4 = {lookType=75}

neliel1 = {lookType=194}
neliel2 = {lookType=33}
neliel3 = {lookType=197}
neliel4 = {lookType=160}

grimjow1 = {lookType=159}
grimjow2 = {lookType=54}
grimjow3 = {lookType=112}
grimjow4 = {lookType=215}

ulquiorra1 = {lookType=220}
ulquiorra2 = {lookType=219}
ulquiorra3 = {lookType=9}
ulquiorra4 = {lookType=80}

ext = 1000





function onCastSpell(cid, var)


---Janemba---


if getPlayerVocation(cid) == 13 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 14)
doCreatureChangeOutfit(cid, ichigo1)


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

elseif getPlayerVocation(cid) == 14 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 15)
doCreatureChangeOutfit(cid, ichigo2)


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

elseif getPlayerVocation(cid) == 15 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 16)
doCreatureChangeOutfit(cid, ichigo3)


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

elseif getPlayerVocation(cid) == 16 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 17)
doCreatureChangeOutfit(cid, ichigo4)


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



elseif getPlayerVocation(cid) == 30 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 31)
        	doCreatureChangeOutfit(cid, byakuya1) 


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

elseif getPlayerVocation(cid) == 31 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 32)
        	doCreatureChangeOutfit(cid, byakuya2) 


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

elseif getPlayerVocation(cid) == 32 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 33)
        	doCreatureChangeOutfit(cid, byakuya3) 


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

elseif getPlayerVocation(cid) == 33 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 34)
        	doCreatureChangeOutfit(cid, byakuya4) 


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

elseif getPlayerVocation(cid) == 34 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 35)
        	doCreatureChangeOutfit(cid, byakuya4) 


  	  		doSendMagicEffect(getPlayerPosition(cid), 21) 
else
doPlayerSendCancel(cid, "you Can not Transform More")
	doSendMagicEffect(getPlayerPosition(cid), 2) 
end



elseif getPlayerVocation(cid) == 18 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 19)
        	doCreatureChangeOutfit(cid, hitsugaya1) 


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

elseif getPlayerVocation(cid) == 19 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 20)
        	doCreatureChangeOutfit(cid, hitsugaya2) 


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

elseif getPlayerVocation(cid) == 20 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 21)
        	doCreatureChangeOutfit(cid, hitsugaya3) 


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

elseif getPlayerVocation(cid) == 21 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 22)
        	doCreatureChangeOutfit(cid, hitsugaya4) 


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

elseif getPlayerVocation(cid) == 25 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 26)
        	doCreatureChangeOutfit(cid, rukia1) 


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

elseif getPlayerVocation(cid) == 26 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 27)
        	doCreatureChangeOutfit(cid, rukia2) 


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

elseif getPlayerVocation(cid) == 27 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 28)
        	doCreatureChangeOutfit(cid, rukia3) 


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

elseif getPlayerVocation(cid) == 28 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 29)
        	doCreatureChangeOutfit(cid, rukia4) 


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

elseif getPlayerVocation(cid) == 35 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 36)
        	doCreatureChangeOutfit(cid, zaraki1) 


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

elseif getPlayerVocation(cid) == 36 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 37)
        	doCreatureChangeOutfit(cid, zaraki2) 


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

elseif getPlayerVocation(cid) == 37 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 38)
        	doCreatureChangeOutfit(cid, zaraki3) 


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

elseif getPlayerVocation(cid) == 38 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 39)
        	doCreatureChangeOutfit(cid, zaraki4) 


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

elseif getPlayerVocation(cid) == 44 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 40)
        	doCreatureChangeOutfit(cid, renji1) 


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

elseif getPlayerVocation(cid) == 40 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 41)
        	doCreatureChangeOutfit(cid, renji2) 


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

elseif getPlayerVocation(cid) == 41 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 42)
        	doCreatureChangeOutfit(cid, renji3) 


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

elseif getPlayerVocation(cid) == 42 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 43)
        	doCreatureChangeOutfit(cid, renji4) 


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

elseif getPlayerVocation(cid) == 50 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 51)
        	doCreatureChangeOutfit(cid, neliel1) 


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

elseif getPlayerVocation(cid) == 51 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 52)
        	doCreatureChangeOutfit(cid, neliel2) 


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

elseif getPlayerVocation(cid) == 52 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 53)
        	doCreatureChangeOutfit(cid, neliel3) 


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

elseif getPlayerVocation(cid) == 53 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 54)
        	doCreatureChangeOutfit(cid, neliel4) 


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

elseif getPlayerVocation(cid) == 55 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 56)
        	doCreatureChangeOutfit(cid, grimjow1) 


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

elseif getPlayerVocation(cid) == 56 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 57)
        	doCreatureChangeOutfit(cid, grimjow2) 


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

elseif getPlayerVocation(cid) == 57 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 58)
        	doCreatureChangeOutfit(cid, grimjow3) 


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

elseif getPlayerVocation(cid) == 58 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 59)
        	doCreatureChangeOutfit(cid, grimjow4) 


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


elseif getPlayerVocation(cid) == 60 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 61)
        	doCreatureChangeOutfit(cid, ulquiorra1) 


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

elseif getPlayerVocation(cid) == 61 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 62)
        	doCreatureChangeOutfit(cid, ulquiorra2) 


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

elseif getPlayerVocation(cid) == 62 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 63)
        	doCreatureChangeOutfit(cid, ulquiorra3) 


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

elseif getPlayerVocation(cid) == 63 then	
   if getPlayerLevel(cid) >= 8 then
doPlayerSetVocation(cid, 64)
        	doCreatureChangeOutfit(cid, ulquiorra4) 


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


else
doPlayerSendCancel(cid, "Voce nao pode Transformar!.")
	doSendMagicEffect(getPlayerPosition(cid), 2) 
end
end

Link para o comentário
https://xtibia.com/forum/topic/165047-script-de-transformar/
Compartilhar em outros sites

ta ai simples mais ajuda que vc pode acresental agumas funções

 

 

 

---Transform Version 2.0 By Garep

function onSay(cid, words, param)

if getPlayerVocation(cid) == 2 then ---exenplo

doPlayerSetVocation(cid, 17)

local outfit = { lookType = 31 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

doSetCreatureOutfit(cid, outfit, -1)

doSendMagicEffect(getCreaturePosition(cid), 13)

doPlayerSendCancel(cid, "You transform!")

elseif getPlayerVocation(cid) == 17 then ----exenplo

doPlayerSetVocation(cid, 18)

local outfit = { lookType = 32 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

doSetCreatureOutfit(cid, outfit, -1)

doSendMagicEffect(getCreaturePosition(cid), 13)

doPlayerSendCancel(cid, "You transform!")

else

doPlayerSendCancel(cid, "You can not transform.")

end

 

end

Editado por garep
Link para o comentário
https://xtibia.com/forum/topic/165047-script-de-transformar/#findComment-1086174
Compartilhar em outros sites

Bem eu testei e funcionou, so que porem quando eu dou logout no char sai a Transformação dai quando vou tentar transformar de novo nao vai , alguem poderia me ajuda ?

Editado por Beeki
Link para o comentário
https://xtibia.com/forum/topic/165047-script-de-transformar/#findComment-1086824
Compartilhar em outros sites

×
×
  • Criar Novo...