Hello,
when a player try's to shoot a mwall on fire.
it wont let to shoot on it.
and than I get this error.
this is my magic wall rune.lua
when a player try's to shoot a mwall on fire.
it wont let to shoot on it.
and than I get this error.
PHP:
[16:5:54.106] [Error - Spell Interface]
[16:5:54.106] data/spells/scripts/support/magic wall rune.lua:onCastSpell
[16:5:54.106] Description:
[16:5:54.106] (luaDoDecayItem) Item not found
this is my magic wall rune.lua
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
function onCastSpell(cid, var)
local pos = variantToPosition(var)
if getTileInfo(getThingPos(cid)).protection or getTileInfo(pos).protection then
return not doPlayerSendDefaultCancel(cid, RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE)
end
doDecayItem(doCreateItem(1497, 1, pos))
return doCombat(cid, combat, var)
end
Last edited: