Const Manarune_ID = 3182 MinMana = 2500 MaxMana = 3030 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(200); UpdateWorld; end; sleep(200); end;