ďťż

Ng łatwy skrypt !!!

PRzeSteR

Ng łatwy skrypt !!!
  Witam
Prosilbym o skrypt na to, ze gdy mnie wyloguje to zeby mnie automatycznie zalogowalo spowrotem. Nie chce funkcji reconnect, tylko skrypt :)



  Znalazłem coś takiego, nie wiem, czy działa:

Kod: const
  Account = 'xxx';
  Password = 'xxx';
  Character = 'xxx';
  World = 'xxx';

while not Terminated do
begin
  UpdateWorld;
  if not Self.Connected then
  begin
    Self.Login(Account, Password, Character, World, '');
    Sleep(3000);
    if Self.Connected then
    begin
      Self.Backpack.Open;
    end;
  end;
  Sleep(100);
end;

  Raczej nie, bo to do otsa.

  No a to?

Kod: const
  Account = 'xxxxxxx';
  Password = 'xxxxxx';
  Character = 'xxxxx';
  World = 'xxxxx';
  Ip = 'xxxxx';
  NumberOfBackpacks = 1;
       
var
  x: integer;

    procedure Login;
begin
  repeat
    Sleep(120)
    Self.Login(Account, Password, Character, World, Ip);
    for x := 0 to 200 do
    begin
      if Self.Connected then Break;
      Sleep(100);
    end;
    Sleep(2000);
  until Self.Connected;
end;

begin
  while not Terminated do
  begin
    if not Self.Connected then
    begin
      Login;
      UpdateWorld;
      Self.Backpack.OpenInNewWindow;
      for x := 0 to NumberOfBackpacks - 1 do
      begin
        if x >= NumberOfBackpacks then Break;
        Sleep(2000);
        UpdateWorld;
        Self.Containers.Container[0].Item[x].OpenInNewWindow;
      end;
    end;
    Sleep(1000);
  end;
end;
Copyright (c) 2009 PRzeSteR | Powered by Wordpress. Fresh News Theme by WooThemes - Premium Wordpress Themes.