local healthToCast = 60
local manaToCast = xx
local range = x
local monsterquantity = x
local spellToCast = "exori"
local player = g_game.getLocalPlayer()
if g_game.isAttacking() and player:getHealthPercent() >= healthToCast and player:getManaPercent()>= manaToCast and #g_game.getMonstersAround(range) >= monsterquantity then
g_game.talk(spellToCast)
sleep(900, 1200)
end
auto(100)