beenii
Well-Known Member
- Joined
- Jul 26, 2010
- Messages
- 586
- Solutions
- 1
- Reaction score
- 58
I have this script:
console is crashed and say: (getArea) Object on the stack is not a table
any have idea how fix?
or how make this rune in spells but remove item.uid on use?
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_STUN)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_CAKE)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.2, 2)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onUse(cid, item, frompos, item2, topos)
return doCombat(cid, combat, positionToVariant(topos))
end
console is crashed and say: (getArea) Object on the stack is not a table
any have idea how fix?
or how make this rune in spells but remove item.uid on use?