DI
spell

[Encerrado] Duvida. transforms.xml [Wodbo]

Por diarmaint, 18 de jan. de 2013 em Tópicos Sem Resposta

wodbo
ajuda
script
15
1.4k
diarmaintD
18 de janeiro de 2013 às 19:59

Bem to com um probleminha e gostaria de uma ajudazinha não sei oq eu fiz de errado

criei 2 novas vocações para meu servidor c16. shenron o c16 ele transforma todas ate depois da rb

mais o shenron não sai nem da outfit iniçial meu script e esse!

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition = createConditionObject(CONDITION_OUTFIT)

setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)

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

setCombatCondition(combat, condition)

 

 

 

outfit = {lookType=438}

outfit1 = {lookType=439}

outfit2 = {lookType=440}

outfit3 = {lookType=441}

 

outfits = {lookType=443}

outfits1 = {lookType=444}

outfits2 = {lookType=445}

outfits3 = {lookType=516}

 

 

 

shenron = {lookType=77}

shenron1 = {lookType=20}

shenron2 = {lookType=232}

shenron3 = {lookType=257}

 

shenrons = {lookType=265}

shenrons1 = {lookType=517}

shenrons2 = {lookType=518}

shenrons3 = {lookType=325}

shenrons4 = {lookType=435}

 

 

 

 

 

 

 

ext = 1000

 

---c16---

function trans(cid)

if getPlayerVocation(cid) == 412 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(trans,ext,cid)

 

end

end

end

 

 

 

function trans1(cid)

if getPlayerVocation(cid) == 413 then

if getPlayerMana(cid) >= 0 then

addEvent(trans1,ext,cid)

end

end

end

 

 

function trans2(cid)

if getPlayerVocation(cid) == 414 then

if getPlayerMana(cid) >= 0 then

addEvent(trans1,ext,cid)

 

end

end

end

 

 

function trans3(cid)

if getPlayerVocation(cid) == 415 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(trans1,ext,cid)

 

end

end

end

 

 

---End c16---

 

 

 

 

 

 

---Reborn c16---

function trans4(cid)

if getPlayerVocation(cid) == 417 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(trans4,ext,cid)

end

end

end

 

 

 

function trans5(cid)

if getPlayerVocation(cid) == 418 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 181)

addEvent(trans5,ext,cid)

end

end

end

 

 

function trans6(cid)

if getPlayerVocation(cid) == 419 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(trans6,ext,cid)

end

end

end

 

 

function trans7(cid)

if getPlayerVocation(cid) == 420 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 14)

addEvent(trans7,ext,cid)

 

end

end

end

--- Reborn c16 End ---

 

 

--- Shenron ---

function shen(cid)

if getPlayerVocation(cid) == 399 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen,ext,cid)

 

end

end

end

 

function shen1(cid)

if getPlayerVocation(cid) == 400 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen1,ext,cid)

 

end

end

end

 

function shen2(cid)

if getPlayerVocation(cid) == 401 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen2,ext,cid)

 

end

end

end

 

function shen3(cid)

if getPlayerVocation(cid) == 402 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen3,ext,cid)

 

end

end

end

 

---shenron reborn---

 

 

function shen4(cid)

if getPlayerVocation(cid) == 404 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen4,ext,cid)

 

end

end

end

 

function shen5(cid)

if getPlayerVocation(cid) == 405 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen5,ext,cid)

 

end

end

end

 

function shen6(cid)

if getPlayerVocation(cid) == 406 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen6,ext,cid)

 

end

end

end

 

function shen7(cid)

if getPlayerVocation(cid) == 407 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen7,ext,cid)

 

end

end

end

 

function shen8(cid)

if getPlayerVocation(cid) == 408 then

if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 190)

addEvent(shen8,ext,cid)

 

end

end

end

 

function onCastSpell(cid, var)

 

 

 

 

 

 

---c16---

 

if getPlayerVocation(cid) == 411 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,412)

doSetCreatureOutfit(cid, outfit, -1)

addEvent(trans,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 438)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 412 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,413)

addEvent(trans1,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, outfit1, -1)

doSetOutfit(cid, 439)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 413 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,414)

addEvent(trans2,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetCreatureOutfit(cid, outfit2, -1)

doSetOutfit(cid, 440)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 414 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,415)

addEvent(trans3,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetCreatureOutfit(cid, outfit3, -1)

doSetOutfit(cid, 441)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

--- Reborn ---

 

elseif getPlayerVocation(cid) == 416 then

if getPlayerLevel(cid) >= 75 then

doPlayerSetVocation(cid,417)

addEvent(trans4,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetCreatureOutfit(cid, outfits, -1)

doSetOutfit(cid, 443)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

elseif getPlayerVocation(cid) == 417 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid,418)

addEvent(trans5,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 33)

doSetCreatureOutfit(cid, outfits1, -1)

doSetOutfit(cid, 444)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

elseif getPlayerVocation(cid) == 418 then

if getPlayerLevel(cid) >= 250 then

doPlayerSetVocation(cid,419)

addEvent(trans6,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetCreatureOutfit(cid, outfits2, -1)

doSetOutfit(cid, 445)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

elseif getPlayerVocation(cid) == 419 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,420)

addEvent(trans7,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetCreatureOutfit(cid, outfits3, -1)

doSetOutfit(cid, 516)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

---End c16? ---

 

 

---shenron---

 

 

if getPlayerVocation(cid) == 398 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,399)

doSetCreatureOutfit(cid, shenron, -1)

addEvent(shen,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 77)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

if getPlayerVocation(cid) == 399 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,400)

doSetCreatureOutfit(cid, shenron1, -1)

addEvent(shen1,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 20)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

if getPlayerVocation(cid) == 400 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid,401)

doSetCreatureOutfit(cid, shenron2, -1)

addEvent(shen2,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 232)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

if getPlayerVocation(cid) == 401 then

if getPlayerLevel(cid) >= 250 then

doPlayerSetVocation(cid,402)

doSetCreatureOutfit(cid, shenron3, -1)

addEvent(shen3,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 257)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

---shenron reborn---

 

 

 

 

if getPlayerVocation(cid) == 403 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid,404)

doSetCreatureOutfit(cid, shenrons, -1)

addEvent(shen4,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 265)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

if getPlayerVocation(cid) == 404 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid,405)

doSetCreatureOutfit(cid, shenrons1, -1)

addEvent(shen5,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 517)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

if getPlayerVocation(cid) == 405 then

if getPlayerLevel(cid) >= 250 then

doPlayerSetVocation(cid,406)

doSetCreatureOutfit(cid, shenrons2, -1)

addEvent(shen6,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 518)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

if getPlayerVocation(cid) == 406 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,407)

doSetCreatureOutfit(cid, shenrons3, -1)

addEvent(shen7,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 325)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

if getPlayerVocation(cid) == 407 then

if getPlayerLevel(cid) >= 400 then

doPlayerSetVocation(cid,408)

doSetCreatureOutfit(cid, shenrons4, -1)

addEvent(shen8,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 23)

doSetOutfit(cid, 435)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

--- shenron reborn End ---

 

 

 

else

doPlayerSendCancel(cid, "You cannot transform.")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

end

end

end

 

 

galera se puder ajudar agradeço .-.

AlexandreKGA
18 de janeiro de 2013 às 20:05

Como voce consegue combinar isso:

 

function trans(cid)
if getPlayerVocation(cid) == 412 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(trans,ext,cid)

end
end
end

 

com isso?

 

outfit = {lookType=438}

diarmaintD
18 de janeiro de 2013 às 20:15

Bem kra essa parte ae ta certa até porque e do c16 e ele esta se transformando certinho.

 

Bem é desse jeito que ta combinado aki .-.

if getPlayerVocation(cid) == 411 then
   if getPlayerLevel(cid) >= 50 then
  doPlayerSetVocation(cid,412)
	 doSetCreatureOutfit(cid, outfit, -1)
  addEvent(trans,ext,cid)
    doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 438)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end

Editado Janeiro 18 por Diarmaint

GearsG
19 de janeiro de 2013 às 02:55

Cara que tal antes de postar dar uma passadinha na regras da seção?

 

http://www.xtibia.com/forum/topic/198007-no-pea-sistemas-de-servidores-derivados-nesta-seo/

 

Pra isso tem a seção de servidores derivados que serve para poketibia,wodbo,narutibia etc passe lá e faça o seu pedido ou tire sua duvida :p

 

http://www.xtibia.com/forum/forum/876-pedidos-e-duvidas-servidores-derivados/

 

Abs

topmasterT
19 de janeiro de 2013 às 06:01

omg quem fés esse script merece meu respeito -- ironic

SlicerS
19 de janeiro de 2013 às 10:42

local incorreto, movido

diarmaintD
19 de janeiro de 2013 às 10:51

Com todo respeito o foda do xtibia que só aparece gente pra falar mau do post, Vlw ae por mover slicer nem prestei atenção .-.

omg quem fés esse script merece meu respeito -- ironic

kra se for pra falar merda peloamor de deus nem comenta, eu pedi ajuda não pedi pra um retardado fala que achou o script ruim. se está ruim na sua opinião faz um melhor :)

SlicerS
19 de janeiro de 2013 às 11:35

mano realmente o script ta um desastre ;x to tentando da um jeito aki mas ta foda ao extremo ;x

reparase q n tem a transformaçao da vocation 415 pra 416? eh pra ser assim ms? ;x

tpw tem aki..

elseif getPlayerVocation(cid) == 414 then

q dai muda pra 415 e depois ja tem..

elseif getPlayerVocation(cid) == 416 then

q muda pra 417, n tem a q muda pra 416...

AlexandreKGA
19 de janeiro de 2013 às 11:40

Tipo

 

[b]if getPlayerVocation(cid) == 411 then
if getPlayerLevel(cid) >= 50 then
	  doPlayerSetVocation(cid,412)
			 doSetCreatureOutfit(cid, outfit, -1)
	  addEvent(trans,ext,cid)
		doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 438)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
 doSendMagicEffect(getPlayerPosition(cid), 2)
end[/b]

 

Ai sim é a função mesmo,só que aquela parte la de cima é de efeito certo?

 

 

 

Eu dei uma mexidinha,e tente por isso no shenrons:

elseif getPlayerVocation(cid) == 403 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,404)
addEvent(shen4,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetCreatureOutfit(cid, shenrons, -1)
doSetOutfit(cid, 265)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end

Editado Janeiro 19 por Mozark001

SlicerS
19 de janeiro de 2013 às 11:52

pega ae o script.. eu n testei, qlqr coisa soh flar..

 

local reborn = {
[411] = {out = 438, lvl = 50, effIni = 23, eff = 190, nextVoc = 412},
[412] = {out = 439, lvl = 100, effIni = 33, eff = 190, nextVoc = 413},
[413] = {out = 440, lvl = 150, effIni = 23, eff = 190, nextVoc = 414},
[414] = {out = 441, lvl = 200, effIni = 23, eff = 190, nextVoc = 415},

[416] = {out = 443, lvl = 75, effIni = 23, eff = 190, nextVoc = 417},
[417] = {out = 444, lvl = 100, effIni = 33, eff = 181, nextVoc = 418},
[418] = {out = 445, lvl = 250, effIni = 23, eff = 190, nextVoc = 419},
[419] = {out = 516, lvl = 400, effIni = 23, eff = 14, nextVoc = 420},

[398] = {out = 77, lvl = 50, effIni = 23, eff = 190, nextVoc = 399},
[399] = {out = 20, lvl = 150, effIni = 23, eff = 190, nextVoc = 400},
[400] = {out = 232, lvl = 200, effIni = 23, eff = 190, nextVoc = 401},
[401] = {out = 257, lvl = 250, effIni = 23, eff = 190, nextVoc = 402},

[403] = {out = 265, lvl = 50, effIni = 23, eff = 190, nextVoc = 404},
[404] = {out = 517, lvl = 150, effIni = 23, eff = 190, nextVoc = 405},
[405] = {out = 518, lvl = 250, effIni = 23, eff = 190, nextVoc = 406},
[406] = {out = 325, lvl = 400, effIni = 23, eff = 190, nextVoc = 407},
[407] = {out = 435, lvl = 400, effIni = 23, eff = 190, nextVoc = 408},
}

local function trans(cid, table)
if isCreature(cid) and getPlayerVocation(cid) == table.nextVoc then
  doSendMagicEffect(getPlayerPosition(cid), table.eff)
  addEvent(trans, 1000, cid, table)
end
end

function onCastSpell(cid, var)

local vocation = reborn[getPlayerVocation(cid)]

if vocation then
  if getPlayerLevel(cid) >= vocation.lvl then
  doPlayerSetVocation(cid, vocation.nextVoc)
  doSetCreatureOutfit(cid, {lookType = vocation.out}, -1)
  doSendMagicEffect(getPlayerPosition(cid), vocation.effIni)
  doSetOutfit(cid, vocation.out)
  addEvent(trans, 1000, cid, vocation)
  else
  doPlayerSendCancel(cid, "You need level ".. vocation.lvl .." to do that!")
  doSendMagicEffect(getPlayerPosition(cid), 2)
  end
else
  doPlayerSendCancel(cid, "You cannot transform.")
  doSendMagicEffect(getPlayerPosition(cid), 2)
end
return true
end

 

Editado Janeiro 19 por Slicer

AlexandreKGA
19 de janeiro de 2013 às 11:55

-Slicer

 

Só para você saber,acho que você está utilizando funções de versao um pouco mais usada.

E a versão que ele ta usando é 8.0 wodbo,não existe as sources.E então acho que usando table nisso não ajudará.

 

-Topic

 

Talves você tenha configurado errado no vocations.xml também.

SlicerS
19 de janeiro de 2013 às 12:23

mano eh uma tabela simples o.O acredito q ja existia isso antes.. ;x se n existia entao fuuuuuuuuu kk, esperar o dono do topico aparecer..

diarmaintD
21 de janeiro de 2013 às 23:51

Ok vo tenta aki galera :)

 

Já resolvi pode fechar o tópico :)

SlicerS
22 de janeiro de 2013 às 11:13

sanado, movido

5 anos depois...
StigalS
20 de abril de 2018 às 00:52
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.