const Account = 'XXXXXXXXX'; Password = 'XXXXXXX'; World = 'Swiat'; Character = 'Nick'; ServerIP = '';
var i:integer;
procedure Login(Account: string; Password: string; Character: string; World: string; ServerIP: string); var x: integer; begin repeat Self.Login(Account, Password, Character, World, ServerIP); Sleep(3000); for x := 0 to 200 do begin UpdateWorld; Sleep(100); if Self.Connected then Break; end; until Self.Connected; end;
begin while not terminated do begin UpdateWorld; Sleep(10000);
If Self.Connected = False Then Begin Login(Account, Password, Character, World, ServerIP); Sleep(100); UpdateWorld;
repeat Self.Backpack.Use; Sleep(1000); UpdateWorld; until Self.Containers.Count = 1;
For I := 0 to Self.Containers.Container[0].Count -1 Do Begin If Self.Containers.Container[0].Item[i].Properties.Container = True Then Begin Self.Containers.Container[0].Item[i].OpenInNewWindow; Sleep(500); UpdateWorld; End; End; end; end; end;
|