Ok so i made a script to hive , targets and everything , but i have a problem with swarms , even if i put swarm with higher lvl danger and everything my character keep ignoring them idk why (sometimes it kills but most of time it lures like 8 swarms -,-) , second problem i got a action for exori and it doesn't work is this one



--[[

Exori Hotkey By: Felfly
Status: Works

]]--


local CONFIG = {
PLAYERS = {
ENABLED = True ,
SAFELIST = {""},
},

MONSTERS = {"Insectoid Worker", "Swarmer" "Waspoid", "Crawler",},

SPELLS = {
FIRST = {words = "exori gran", mp = 340, count = 3},
SECOND = {words = "exori", mp = 120, count = 2},
},
}

--[[ ENGINE ]]--
if (CONFIG.PLAYERS.ENABLED) then
updateworld()
if ((paround(3, true) - (paround(3, true, unpack(CONFIG.PLAYERS.SAFELIST))) == 0)) then
if ((maround(1, unpack(CONFIG.MONSTERS)) >= CONFIG.SPELLS.FIRST.count) and (target.id ~= 0)) then
if ((mp >= CONFIG.SPELLS.FIRST.mp) and (cancast(CONFIG.SPELLS.FIRST.words))) then
cast(CONFIG.SPELLS.FIRST.words)
end
if ((mp >= CONFIG.SPELLS.SECOND.mp) and (cancast(CONFIG.SPELLS.SECOND.words))) then
cast(CONFIG.SPELLS.SECOND.words)
end
elseif ((maround(1, unpack(CONFIG.MONSTERS)) >= CONFIG.SPELLS.SECOND.count) and (target.id ~= 0)) then
if ((mp >= CONFIG.SPELLS.SECOND.mp) and (cancast(CONFIG.SPELLS.SECOND.words))) then
cast(CONFIG.SPELLS.SECOND.words)
end
end
end
elseif (not CONFIG.PLAYERS.ENABLED) then
updateworld()
if ((maround(1, unpack(CONFIG.MONSTERS)) >= CONFIG.SPELLS.FIRST.count) and (target.id ~= 0)) then
if ((mp >= CONFIG.SPELLS.FIRST.mp) and (cancast(CONFIG.SPELLS.FIRST.words))) then
cast(CONFIG.SPELLS.FIRST.words)
end
if ((mp >= CONFIG.SPELLS.SECOND.mp) and (cancast(CONFIG.SPELLS.SECOND.words))) then
cast(CONFIG.SPELLS.SECOND.words)
end
elseif ((maround(1, unpack(CONFIG.MONSTERS)) >= CONFIG.SPELLS.SECOND.count) and (target.id ~= 0)) then
if ((mp >= CONFIG.SPELLS.SECOND.mp) and (cancast(CONFIG.SPELLS.SECOND.words))) then
cast(CONFIG.SPELLS.SECOND.words)
end
end

Well maybe the problem is me idk , and third problem i can't make the exori by target because i can't like double target swarmer or any monster , because it just don't work if i type the same monster twice the second just dont go!