X0
dúvida

Ajuda Com Spell De Transform

Por x0wner, 11 de ago. de 2012 em Scripts

transform
duvida
ajuda
spell
script
runa
sd
maspoxavida
ah vai tomar no cu
14
2.4k
x0wnerX
11 de agosto de 2012 às 23:22

Retired.

Editado Agosto 13 por x0wner

12 de agosto de 2012 às 01:19

pode ser outro script ?? o que eu uso ??

aki vai o script q eu uso e como configurar ele;

em data/spells/scripts cria um arquivo.lua com o nome de sua preferencia e bota isso dentro

 

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)

 

 

 

 

shenron2 = {lookType=looktype do shneorn transformado}

shenron3 = {lookType=looktye do shenron ransformado}

shenron4 = {lookType=looktype do shenron transformado}

 

ext=1000

 

---Shenron---

 

elseif getPlayerVocation(cid) == id da vocação normal then

if getPlayerLevel(cid) >= level necessario para transformar then

doPlayerSetVocation(cid,vocation transformada)

doSetCreatureOutfit(cid, shenron2, -1)

doSendMagicEffect(getPlayerPosition(cid), efeito)

 

else

doPlayerSendCancel(cid, "Mensagem se n transformar.")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

else

doPlayerSendCancel(cid, "You cannot transform.")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

onde ta em negrito ai se coloca o nome do looktype q se boto la em cima

shenron2 = {lookType=looktype do shneorn transformado}

shenron3 = {lookType=looktye do shenron ransformado}

shenron4 = {lookType=looktype do shenron transformado}

 

em verde bota o id da vocação normal

level necessario para transformar

id da vocação transformada

número do efeito que vai aparecer

mensagem se n transformar

no ultimo tem q ter 2 ends ao inves de um

 

aki vai a tag

<instant name="Transformar" words="transformar" aggressive="0" params="1" lvl="1" maglv="0" mana="0" soul="0" exhaustion="1" prem="0" enabled="1" script="transforms.lua"></instant>

 

palavra para transformar

nome do seu script.lua

Editado Agosto 12 por PostadorHunter

x0wnerX
13 de agosto de 2012 às 13:25

Uma pergunta, por que 2 mensagens de "não transformação"

Muito obrigado pela ajuda.

______________________________________________________________________________________________

EDIT:

Outra coisa, será que tem como por comandos para executar na database, e salvar as vocações e outfis transformadas?

URGENTE, PRECISO DE SCRIPTERS BONS ! :D

______________________________________________________________________________________________

EDIT:

Exemplo: db.executeQuery?

Editado Agosto 13 por x0wner

ddkD
13 de agosto de 2012 às 13:33

O meu esta assim.

 

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

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

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

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

---End Shenron---

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

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

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

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

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

13 de agosto de 2012 às 15:04

Uma pergunta, por que 2 mensagens de "não transformação"

Muito obrigado pela ajuda.

______________________________________________________________________________________________

EDIT:

Outra coisa, será que tem como por comandos para executar na database, e salvar as vocações e outfis transformadas?

URGENTE, PRECISO DE SCRIPTERS BONS ! :D

______________________________________________________________________________________________

EDIT:

Exemplo: db.executeQuery?

um se n tiver lvl e um se ja tiver transformado

n sei se tem isso de database n

SkyLighS
13 de agosto de 2012 às 15:45

Removido !

Editado Agosto 14 por SkyLigh

x0wnerX
13 de agosto de 2012 às 18:25

Puta cara, se isso funcionar... Te dou 7 dias de REP.

Mas mesmo assim, vout e dar um rep amanhã por ter tentado ajudar.

SkyLighS
13 de agosto de 2012 às 18:44

Mas o script funciono ai se for me fala se nao for me fala também pra corrigi

RaidouR
13 de agosto de 2012 às 19:41

SkyLight

 

Esse script,é pra qual versao?

SkyLighS
13 de agosto de 2012 às 19:50

Editei pra 8.60 mas funciona em outras versões também eu acho

Editado Agosto 13 por SkyLigh

RaidouR
13 de agosto de 2012 às 19:57

Ah legal,parabens.

Muito bom o script,porem nao testei,mais pelas funçao que tem gostei :D

x0wnerX
13 de agosto de 2012 às 21:33

Como SKY, você criou?

 

Moderação por favor, excluir o tópico !

 

@MODERADODES, por favor, excluir completamente o tópico.

SkyLighS
13 de agosto de 2012 às 21:36

Como SKY, você criou?

 

Moderação por favor, excluir o tópico !

 

@MODERADODES, por favor, excluir completamente o tópico.

 

KKK , Falei sem querer que ele pergunto a versao que eu dei uma editada no seu script pra remover os erros

 

Reportado Pra Ser Movido O Tópico

Duvida Sanada

6 meses depois...
manitousM
17 de fevereiro de 2013 às 17:40

alguem pode me ajuda ae quero coloca transform do bianco v6.0