Ir para conteúdo
  • 0

Spell Complicada Cima, Baixo, Direita, Esquerda


IsaqueTeixeira

Pergunta

Gente vou mostrar umas ss aqui de como é +ou - essa spell ok, vamos lá

Para Baixo:

baixonh.png

Para esquerda:

esquerdat.png

para cima:

cimah.png

Para direita:

direital.png

 

 

 

 

QUADRADOS VERMELHOS: Local de onde saira o effect, no caso o que eu tenho aqui são aqueles effects direcionados

QUADRADOS PRETOS: Local do dano da spell

Vlw espero que entendam, demorou pra fazer isso uheheuhe.

Link para o comentário
Compartilhar em outros sites

Posts Recomendados

  • 0

Aee blz mano, vlw pegou de boinha mesmo.

 

Mais da uma olhada nessa spell, fico arretado quando não consigo fazer os treco direito.

 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

arr1 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

arr2 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

local function onCastSpell1(parameters)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

doSendMagicEffect(position, 144)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)

end

local function onCastSpell2(parameters)

target = getCreatureTarget(cid)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

doSendMagicEffect(position, 145)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)

end

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

end

 

 

tag:

 

<instant name="Dual Tsuuga!" words="dual tsuuga" lvl="75" mana="3000" range="5" needtarget="1" blockwalls="1" exhaustion="2000" event="script" value="kiba/Dual Tsuuga.lua">

 

 

error:

 

[10/08/2012 22:37:30] [Error - Spell Interface]

[10/08/2012 22:37:30] In a timer event called from:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 22:37:30] Description:

[10/08/2012 22:37:30] (luaGetThingPosition) Thing not found

[10/08/2012 22:37:30] [Error - Spell Interface]

[10/08/2012 22:37:30] In a timer event called from:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 22:37:30] Description:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:40: attempt to index a boolean value

[10/08/2012 22:37:30] stack traceback:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:40: in function <data/spells/scripts/kiba/Dual Tsuuga.lua:39>

[10/08/2012 22:37:30] [Error - Spell Interface]

[10/08/2012 22:37:30] In a timer event called from:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 22:37:30] Description:

[10/08/2012 22:37:30] (luaGetCreatureTarget) Creature not found

[10/08/2012 22:37:30] [Error - Spell Interface]

[10/08/2012 22:37:30] In a timer event called from:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 22:37:30] Description:

[10/08/2012 22:37:30] (luaGetThingPosition) Thing not found

[10/08/2012 22:37:30] [Error - Spell Interface]

[10/08/2012 22:37:30] In a timer event called from:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 22:37:30] Description:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:48: attempt to index a boolean value

[10/08/2012 22:37:30] stack traceback:

[10/08/2012 22:37:30] data/spells/scripts/kiba/Dual Tsuuga.lua:48: in function <data/spells/scripts/kiba/Dual Tsuuga.lua:46>

 

 

Editado por isaque555
Link para o comentário
Compartilhar em outros sites

  • 0

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

 

arr1 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

arr2 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

 

local function onCastSpell1(parameters)

target = getCreatureTarget(cid)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

doSendMagicEffect(position, 144)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

target = getCreatureTarget(cid)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

doSendMagicEffect(position, 145)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

end

 

 

Verifica ai.

Link para o comentário
Compartilhar em outros sites

  • 0

continua...

 

[10/08/2012 23:02:37] [Error - Spell Interface]

[10/08/2012 23:02:37] In a timer event called from:

[10/08/2012 23:02:37] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 23:02:37] Description:

[10/08/2012 23:02:37] (luaGetCreatureTarget) Creature not found

[10/08/2012 23:02:37] [Error - Spell Interface]

[10/08/2012 23:02:37] In a timer event called from:

[10/08/2012 23:02:37] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 23:02:37] Description:

[10/08/2012 23:02:37] (luaGetThingPosition) Thing not found

[10/08/2012 23:02:37] [Error - Spell Interface]

[10/08/2012 23:02:37] In a timer event called from:

[10/08/2012 23:02:37] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 23:02:37] Description:

[10/08/2012 23:02:37] data/spells/scripts/kiba/Dual Tsuuga.lua:50: attempt to index a boolean value

[10/08/2012 23:02:37] stack traceback:

[10/08/2012 23:02:37] data/spells/scripts/kiba/Dual Tsuuga.lua:50: in function <data/spells/scripts/kiba/Dual Tsuuga.lua:48>

 

 

Link para o comentário
Compartilhar em outros sites

  • 0

 

local target = getCreatureTarget(cid)

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

 

arr1 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

arr2 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

 

local function onCastSpell1(parameters)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

doSendMagicEffect(position, 144)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

doSendMagicEffect(position, 145)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

end

 

 

Again.

Link para o comentário
Compartilhar em outros sites

  • 0

Continua mais ja saiu o

[10/08/2012 23:02:37] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 23:02:37] Description:

[10/08/2012 23:02:37] (luaGetCreatureTarget) Creature not found

 

ai so ficou esse error

[[10/08/2012 23:08:19] [Error - Spell Interface]

[10/08/2012 23:08:19] In a timer event called from:

[10/08/2012 23:08:19] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 23:08:19] Description:

[10/08/2012 23:08:19] data/spells/scripts/kiba/Dual Tsuuga.lua:44: attempt to index a boolean value

[10/08/2012 23:08:19] stack traceback:

[10/08/2012 23:08:19] data/spells/scripts/kiba/Dual Tsuuga.lua:44: in function <data/spells/scripts/kiba/Dual Tsuuga.lua:43>

 

[10/08/2012 23:08:19] [Error - Spell Interface]

[10/08/2012 23:08:19] In a timer event called from:

[10/08/2012 23:08:19] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 23:08:19] Description:

[10/08/2012 23:08:19] (luaGetThingPosition) Thing not found

 

[10/08/2012 23:08:19] [Error - Spell Interface]

[10/08/2012 23:08:19] In a timer event called from:

[10/08/2012 23:08:19] data/spells/scripts/kiba/Dual Tsuuga.lua:onCastSpell

[10/08/2012 23:08:19] Description:

[10/08/2012 23:08:19] data/spells/scripts/kiba/Dual Tsuuga.lua:50: attempt to index a boolean value

[10/08/2012 23:08:19] stack traceback:

[10/08/2012 23:08:19] data/spells/scripts/kiba/Dual Tsuuga.lua:50: in function <data/spells/scripts/kiba/Dual Tsuuga.lua:49>

 

Editado por isaque555
Link para o comentário
Compartilhar em outros sites

  • 0

 

local target = getCreatureTarget(cid)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

 

arr1 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

arr2 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

 

local function onCastSpell1(parameters)

doSendMagicEffect(position, 144)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

doSendMagicEffect(position, 145)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

end

 

 

Again.

Link para o comentário
Compartilhar em outros sites

  • 0

Mano tipo não deu erro algum mais também não pegou, tipo eu quero 2 effects ao mesmo tempo saca

75485358.png

 

tipo quando eu falar DUAL TSUUGA acontecer isso

 

Effect para a direita>>> Target <<<<Effect para esquerda

como se estivesse pegando alvo de 2 lados sabe..

Link para o comentário
Compartilhar em outros sites

  • 0

Agora se não funcionar vou matar a .lua.

 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

 

arr1 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

arr2 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

 

local function onCastSpell1(parameters)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

local target = getCreatureTarget(cid)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

local position2 = {x=getPlayerPosition(target).x-1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

doSendMagicEffect(position, 144)

doSendMagicEffect(position2, 145)

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 100, parameters)

end

 

Editado por LuckOake
Link para o comentário
Compartilhar em outros sites

  • 0

kkkkkkkkkkkkkkkkk

blz maninho vlw, ta do geito certinho que eu queria

 

Tem como adicionar nela um tipo de

Dosendanimatext algo assim não me recordo, por que tipo ela e algumas skills não falam o nome da spell sabe.(em laranja)

Link para o comentário
Compartilhar em outros sites

  • 0

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.9, 1, -3.9, 1)

 

arr1 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

arr2 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

 

local function onCastSpell1(parameters)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)

end

 

local function onCastSpell2(parameters)

return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

local target = getCreatureTarget(cid)

local position = {x=getPlayerPosition(target).x+1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

local position2 = {x=getPlayerPosition(target).x-1, y=getPlayerPosition(target).y+1, z=getPlayerPosition(target).z}

doSendMagicEffect(position, 144)

doSendMagicEffect(position2, 145)

doCreatureSay(cid, "dual tsuuga", TALKTYPE_MONSTER)

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 100, parameters)

end

 

 

Edite em vermelho.

Editado por LuckOake
Link para o comentário
Compartilhar em outros sites

  • 0

Maninho to indo dormir blz? Fica com + esse REP+ Ae.

Valeu, valendo mesmo.

Amanha tenho mais spells pra tu ehuuehue.

 

Mano essa minha spell os effects so vão no player certo, mais eu quero mais uma, que quando eu usar a spell o effect apareça em mim, e os outros no alvo mesmo

so adicionar essa tag acho.

 

essa tag :

doSendMagicEffect(getThingPosition(cid), CONST_ME_CLOUDS)

 

nessa spell:

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -20.0, 0, -20.5, 0)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -15.0, 0, -15.5, 0)

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -10.0, 0, -10.5, 0)

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, parameters.combat1, parameters.var)

end

local function onCastSpell2(parameters)

doCombat(parameters.cid, parameters.combat2, parameters.var)

end

local function onCastSpell3(parameters)

doCombat(parameters.cid, parameters.combat3, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3}

addEvent(onCastSpell1, 0, parameters)

addEvent(onCastSpell2, 300, parameters)

addEvent(onCastSpell3, 600, parameters)

doCreatureSay(cid, "Amaterasu!", TALKTYPE_MONSTER)

end

 

Editado por isaque555
Link para o comentário
Compartilhar em outros sites

  • 0

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -20.0, 0, -20.5, 0)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -15.0, 0, -15.5, 0)

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -10.0, 0, -10.5, 0)

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, parameters.combat1, parameters.var)

end

local function onCastSpell2(parameters)

doCombat(parameters.cid, parameters.combat2, parameters.var)

end

local function onCastSpell3(parameters)

doCombat(parameters.cid, parameters.combat3, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var }

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_CLOUDS)

addEvent(onCastSpell1, 0, parameters)

addEvent(onCastSpell2, 300, parameters)

addEvent(onCastSpell3, 600, parameters)

doCreatureSay(cid, "Amaterasu!", TALKTYPE_MONSTER)

end

 

 

Here.

Editado por LuckOake
Link para o comentário
Compartilhar em outros sites

  • 0

Mano o effect no player pegou, mais o efffect que tava no alvo saiu.

 

 

[11/08/2012 13:27:37] [Error - Spell Interface]

[11/08/2012 13:27:37] In a timer event called from:

[11/08/2012 13:27:37] data/spells/scripts/sasuke/Amaterasu.lua:onCastSpell

[11/08/2012 13:27:37] Description:

[11/08/2012 13:27:37] (luaDoCombat) Combat not found

[11/08/2012 13:27:38] [Error - Spell Interface]

[11/08/2012 13:27:38] In a timer event called from:

[11/08/2012 13:27:38] data/spells/scripts/sasuke/Amaterasu.lua:onCastSpell

[11/08/2012 13:27:38] Description:

[11/08/2012 13:27:38] (luaDoCombat) Combat not found

[11/08/2012 13:27:38] [Error - Spell Interface]

[11/08/2012 13:27:38] In a timer event called from:

[11/08/2012 13:27:38] data/spells/scripts/sasuke/Amaterasu.lua:onCastSpell

[11/08/2012 13:27:38] Description:

[11/08/2012 13:27:38] (luaDoCombat) Combat not found

 

 

Link para o comentário
Compartilhar em outros sites

  • 0

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -20.0, 0, -20.5, 0)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -15.0, 0, -15.5, 0)

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 79)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -10.0, 0, -10.5, 0)

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, parameters.combat1, parameters.var)

end

local function onCastSpell2(parameters)

doCombat(parameters.cid, parameters.combat2, parameters.var)

end

local function onCastSpell3(parameters)

doCombat(parameters.cid, parameters.combat3, parameters.var)

end

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3 }

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_CLOUDS)

addEvent(onCastSpell1, 0, parameters)

addEvent(onCastSpell2, 300, parameters)

addEvent(onCastSpell3, 600, parameters)

doCreatureSay(cid, "Amaterasu!", TALKTYPE_MONSTER)

end

 

 

Desculpe, erro meu.

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...