This could be used for either rune making or just simple mana waste. It will start casting spell at max_mana until it reaches min_mana when no one is on screen.
local Spell_To_Cast = 'adura vita'
local Spell_Mana = 100
local Max_Mana = 700
local Min_Mana = 0
if (mp() >= Max_Mana and paround() == 0 and cancast()) then
Cast_Times = ((Max_Mana-Min_Mana)/Spell_Mana)
while(Cast_Times >= 1) do
Cast_Times = Cast_Times-1
if(paround() == 0) then
say(Spell_To_Cast)
wait(2500)
end
end
end