Alert When X Cap Left
Const
  Cap = 0 // If cap equals or below this then bot alerts.
  AlertFrom = 'C:/Windows/Media/Notify.wav' // ONLY WAV FILES!
  Logout = 0 // 0: no logout. 1: logout. 2:force logout.
While not terminated do
begin
  UpdateWorld;
  if self.connected then
  If Self.Capacity <= Cap then 
  begin
    PlaySound(AlertFrom);
    if Logout = 1 then Self.Logout(False);
    if Logout = 2 Then Self.Logout(True);
  end;
  sleep(1000);
end;
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License