Change your attack mode when there are more than X monsters to defensive, else it will change to ofensive.
increase your profit and exp
auto(100,500)
if maround(1) >= 3 then
setattackmode('defensive','stand')
else
setattackmode('offensive', 'chase')
end