Ir para conteúdo

[Resolvido] Arruma Essa Spell


verajicus

Posts Recomendados

ajuda aqui

na verdade o meu pedido é que alguem conserte o script do exori flux pra mim

o meu ot é 8.5

 

 

ela ta sem exaste e sem gasta mana ajuda!!!!

 

script

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.4, -40, -1.0, 0)


local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 0.4, -40, -1.0, 0)


local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.4, -40, -2.0, 0)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.5, -40, -1.0, 0)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.4, -50, -2.0, 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

local function onCastSpell4(parameters)
doCombat(parameters.cid, parameters.combat4, parameters.var)
end
local function onCastSpell5(parameters)
doCombat(parameters.cid, parameters.combat5, parameters.var)
end

function onCastSpell(cid, var)

doSendAnimatedText(getPlayerPosition(cid), "Dead!", TEXTCOLOR_BLUE)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 500, parameters)
addEvent(onCastSpell3, 1000, parameters)
addEvent(onCastSpell4, 1500, parameters)
addEvent(onCastSpell5, 2000, parameters)
end 

 

 

Tag do spells.xml

	<instant name="Exori Flux" words="exori flux" lvl="70" mana="400" prem="0" range="7" needtarget="1" exhaustion="2000" blockwalls="1" needlearn="0" script="exori flux.lua">
	<vocation name="Royal Paladin"/>
	<vocation name="Paladin"/>
</instant> 

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

No Final Da Spell Tem Os Logais Paramets apage e Adicione este abaixo

 

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

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 800, parameters)

addEvent(onCastSpell3, 900, parameters)

addEvent(onCastSpell4, 1000, parameters)

addEvent(onCastSpell5, 1500, parameters)

 

return TRUE

end

 

 

Caso Não de Certo posso refazer a Spell Para Você

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

af cara

agora a magia nao ta mas atacando =/

tem como vc fazer outro script????

 

da esse erro =[

[31/03/2010 11:02:03] Lua Script Error: [spell Interface]

[31/03/2010 11:02:03] in a timer event called from:

[31/03/2010 11:02:03] data/spells/scripts/exori flux.lua:onCastSpell

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

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, TRUE)

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 36)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.4, -40, -1.0, 0)

 

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, TRUE)

setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 36)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 0.4, -40, -1.0, 0)

 

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_BLOCKARMOR, TRUE)

setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 36)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.4, -40, -2.0, 0)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_BLOCKARMOR, TRUE)

setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 36)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.5, -40, -1.0, 0)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_BLOCKARMOR, TRUE)

setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 36)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.4, -50, -2.0, 0)

 

function onTargetTile1(cid, pos)

doCombat(cid,combat1,positionToVariant(pos))

end

 

function onTargetTile2(cid, pos)

doCombat(cid,combat2,positionToVariant(pos))

end

 

function onTargetTile3(cid, pos)

doCombat(cid,combat3,positionToVariant(pos))

end

 

function onTargetTile4(cid, pos)

doCombat(cid,combat4,positionToVariant(pos))

end

function onTargetTile5(cid, pos)

doCombat(cid,combat5,positionToVariant(pos))

end

 

 

setCombatCallback(scom1, CALLBACK_PARAM_TARGETTILE, "onTargetTile1")

setCombatCallback(scom2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")

setCombatCallback(scom3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3")

setCombatCallback(scom4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4")

setCombatCallback(scom5, CALLBACK_PARAM_TARGETTILE, "onTargetTile5")

 

local function onCastSpell1(parameters)

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

end

 

local function onCastSpell2(parameters)

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

end

 

local function onCastSpell3(parameters)

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

end

 

local function onCastSpell4(parameters)

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

end

local function onCastSpell5(parameters)

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

end

 

function onCastSpell(cid, var)

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

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

addEvent(onCastSpell3, 400, parameters)

addEvent(onCastSpell4, 500, parameters)

addEvent(onCastSpell5, 600, parameters)

 

return TRUE

end

 

 

Ve ai p ainda nao testei

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

Tenta esse:

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.4, -40, -1.0, 0)


local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 0.4, -40, -1.0, 0)


local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.4, -40, -2.0, 0)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.5, -40, -1.0, 0)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.4, -50, -2.0, 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

local function onCastSpell4(parameters)
doCombat(parameters.cid, parameters.combat4, parameters.var)
end
local function onCastSpell5(parameters)
doCombat(parameters.cid, parameters.combat5, parameters.var)
end

function onCastSpell(cid, var)

doSendAnimatedText(getPlayerPosition(cid), "Dead!", TEXTCOLOR_BLUE)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 500, parameters)
addEvent(onCastSpell3, 1000, parameters)
addEvent(onCastSpell4, 1500, parameters)
addEvent(onCastSpell5, 2000, parameters)
return TRUE
end 

 

flw

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

Ve ai p ainda nao testei

[31/03/2010 18:58:49] Lua Script Error: [spell Interface]

[31/03/2010 18:58:49] in a timer event called from:

[31/03/2010 18:58:49] data/spells/scripts/exori flux.lua:onCastSpell

 

[31/03/2010 18:58:49] luaDoCombat(). Combat not found

 

 

da esse erro

 

RESOLVIDO POR APOCARAI

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...