roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,210
- Solutions
- 35
- Reaction score
- 206
Hi, how can i make a spell AREA that break a wall?
1 - have a wall in map ID 2777
2 - player uses spell in area, where spell picks up and has item ID 2777, this item is removed.
3 - getting like img 3

my area spell:
1 - have a wall in map ID 2777
2 - player uses spell in area, where spell picks up and has item ID 2777, this item is removed.
3 - getting like img 3

my area spell:
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, 1)
combat:setParameter(COMBAT_PARAM_EFFECT, 7)
combat:setFormula(COMBAT_FORMULA_LEVELMAGIC, -5.5, -3, -5.7, 3)
local arr = {
{0, 0, 0, 1 ,0 ,0 ,0},
{0, 0, 1, 1 ,1 ,0 ,0},
{0, 1, 1, 1 ,1 ,1 ,0},
{1, 1, 1, 2 ,1 ,1 ,1},
{0, 1, 1, 1 ,1 ,1 ,0},
{0, 0, 1, 1 ,1 ,0 ,0},
{0, 0, 0, 1 ,0 ,0 ,0},
}
combat:setArea(createCombatArea(arr))
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
Last edited: