Const
Manarune_ID = 3157 //Here ID From manarune
MinMana = 100 //Here Mininum mana
MaxMana = 200 //Here Maximum mana
while not terminated do
begin
UpdateWorld;
if Self.Mana <= MinMana then
while Self.Mana < MaxMana do
begin
if terminated then break;
self.containers.useitemwithself(ManaRune_ID);
sleep(1000); //Here change speed 1000 its every sec
UpdateWorld;
end;
sleep(100);
end;