Ir para conteúdo
  • 0

Erro Na Spell


IsaqueTeixeira

Pergunta

aqui o erro:

 

[04/08/2012 21:08:21] [Error - Spell Interface]

[04/08/2012 21:08:21] data/spells/scripts/naruto/Senpo Rasenshuriken.lua:onCastSpell

[04/08/2012 21:08:21] Description:

[04/08/2012 21:08:21] (luaGetThingPosition) Thing not found

[04/08/2012 21:08:21] [Error - Spell Interface]

[04/08/2012 21:08:21] data/spells/scripts/naruto/Senpo Rasenshuriken.lua:onCastSpell

[04/08/2012 21:08:21] Description:

[04/08/2012 21:08:21] data/spells/scripts/naruto/Senpo Rasenshuriken.lua:11: attempt to index a boolean value

[04/08/2012 21:08:21] stack traceback:

[04/08/2012 21:08:21] data/spells/scripts/naruto/Senpo Rasenshuriken.lua:11: in function <data/spells/scripts/naruto/Senpo Rasenshuriken.lua:9>

 

 

 

Aqui a spell:

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

min = -(level * 0.28 + maglevel * 1.48) * 1.4

max = -(level * 0.34 + maglevel * 2.34) * 1.4

return min, max

end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)

target = getCreatureTarget(cid)

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

doSendMagicEffect(position, 135)

return doCombat(cid, combat, var)

end

 

 

 

Aqui a tag:

 

<instant name="Senpo RasenShuriken!" words="senpo rasenshuriken" lvl="150" mana="8000" prem="0" casterTargetOrDirection="1" range="4" blockwalls="1" exhaustion="5000" needlearn="0" event="script" value="naruto/Senpo Rasenshuriken.lua">

<vocation id="42"/>

<vocation id="43"/>

<vocation id="44"/>

<vocation id="45"/>

<vocation id="46"/>

<vocation id="47"/>

<vocation id="48"/>

<vocation id="49"/>

<vocation id="50"/>

<vocation id="51"/>

 

 

lembrando que a spell pega normalmente no serve, mais da esse erro ai.

Link para o comentário
Compartilhar em outros sites

  • Respostas 31
  • Created
  • Última resposta

Top Posters For This Question

Top Posters For This Question

Posts Recomendados

Visitante
Este tópico está impedido de receber novos posts.

×
×
  • Criar Novo...