I made this persistent just for this double xp / skill. I did not bother to arrange it for being fast and efficient, it is more used for training that the player is in the computer.
auto(800)
local Potion = 'great spirit potion'
local Spell1 = 'exevo mas san'
local Spell2 = 'exana ina'
local Spell3 = 'exura gran san'
--====================================================
if getsetting('PotionHealer/Enabled') == 'yes' then
if $mppc < 90 then
if itemcount(Potion) > 0 then
useoncreature(Potion, $self) wait(200, 500)
end
end
end
if getsetting('ManaTrainer/Enabled') == 'yes' then
if $mppc >= 10 then
if cancastspell(Spell1) then
cast(Spell1)
wait(100)
end
if cancastspell(Spell2) then
cast(Spell2)
wait(100)
end
if cancastspell(Spell3) then
cast(Spell3)
wait(100)
end
end
end
if getsetting('PotionHealer/Enabled') == 'no' and getsetting('ManaTrainer/Enabled') == 'no' then
setsetting('ManaTrainer/Enabled', 'yes')
end
if $mppc > 10 and $mppc >= 90 then
setsetting('PotionHealer/Enabled', 'no')
setsetting('ManaTrainer/Enabled', 'yes')
elseif $mppc < 10 and $mppc < 90 then
setsetting('PotionHealer/Enabled', 'yes')
setsetting('ManaTrainer/Enabled', 'no')
end