Hello guys!

I'm currently using "Auto Area Attack 5.0.00 by Syntax" as safe exori script for my knight. I need to tweak it a little bit to make it ignore some attacks and attack no matter what ( e.x. exori hur/ico). I've tried all i could think of but nothing worked really well. U can see my latest attempt with "if not ignoreComp then" down in the code!

I hope some1 could help me with this

Code:
attack = {}
attack[1] = {words="exori gran", mana=340, min=3, needsTarget=true, distance=1, padding=5, multiFloor=false, ignoreParty = true }
attack[2] = {words="exori", mana=115, min=2, needsTarget=true, distance=1, padding=5, multiFloor=false, ignoreParty = true }
attack[3] = {words="exori ico", mana=30, min=1, needsTarget=true, distance=1, multiFloor=false, ignoreParty = true  }
attack[4] = {words="exori hur", mana=40, min=1, needsTarget=true, distance=5, multiFloor=false, ignoreParty = true  }

function getTargetCount(distance, padding, multiFloor, ignoreParty, whiteList, targetList )
local n = 0
padding = padding or 0
whiteList = whiteList or {}
targetList = targetList or {}
for i = CREATURES_LOW, CREATURES_HIGH do
local cid = Creature.GetFromIndex(i)
local checkPad = cid:isPlayer() and padding or 0
--if not ignoreComp then
if(cid:isValid() and cid:isVisible() and cid:isAlive() and cid:DistanceFromSelf() <= (distance + checkPad) and not cid:isSelf())then
if(getSelfPosition().z == cid:Position().z or (multiFloor and cid:isPlayer()))then
if(cid:isPlayer() and (not cid:isPartyMember() or not ignoreParty) and not table.find(whiteList, cid:Name(), false) )then
return 0
elseif(cid:isMonster() and (table.find(targetList, cid:Name(), false) or #targetList<1))then
n = n + 1
end
end
end
end
--end
return n
end

function main()
for i = 1, #attack do
local atk = attack[i]
local count = getTargetCount(atk.distance, atk.padding, atk.multiFloor, atk.ignoreParty, atk.whiteList, atk.targetList)
if(count > 0)then
if(count >= atk.min and count <= ((atk.max == nil) and count or atk.max))then
if(type(atk.words) == 'number')then
Self.UseItemWithMe(atk.words)
wait(900, 1200)
elseif(Self.CanCastSpell(atk.words) and (not atk.mana or Self.Mana() >= atk.mana))then
local target = Creature.GetByID(Self.TargetID())
if(atk.needsTarget or atk.needsDirection)then
if(target:isOnScreen() and target:isVisible() and target:isAlive())then
if(target:DistanceFromSelf() <= atk.distance)then
if(atk.needsDirection)then
local pos, toPos = getSelfPosition(), target:Position()
local dir = pos.x > toPos.x and WEST or pos.x < toPos.x and EAST or pos.y > toPos.y and NORTH or SOUTH
Self.Turn(dir)
wait(100, 200)
else
Self.Say(atk.words)
end
end
end
end
if(not atk.needsTarget)then
Self.Say(atk.words)
end
wait(600, 1000)
end
end
end
end
end

print([[
Name: Auto Area Attack
Description: Shoots area spells/rune on certain conditions
Author: Cavitt Glover (Syntax)
Version: 5.0.00 (updated 11.26.2012)]])
wait(2000)

registerEventListener(TIMER_TICK, "main")

greets Xukania