Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

script crashes stealth after 3+ hours

Ask for help
Post Reply
themaskedwolf
Posts: 3
Joined: 22.05.2018 23:21

script crashes stealth after 3+ hours

Post by themaskedwolf »

this code seems to crash stealth after some time. it works perfectly till sometime after i go to sleep basicly a auto party invite.

Code: Select all

Program New;
var
i,k: Integer;
plist:array [1..12] of Integer;
flaginparty: Boolean;

begin
  plist[1]:=1477405;     
  plist[2]:=845656;     
  plist[3]:=472288;      
  plist[4]:=424031;      
  plist[5]:=1437837;    
  plist[6]:=1743999;   
  plist[7]:=2701064;    
  plist[8]:=1157204;    
  plist[9]:=2047781;    
  plist[10]:=1324970;    
  plist[11]:=731296;     
  plist[12]:=5755626;    
  while true do
  begin
    for i:=1 to 12 do
    begin

      if (IsObjectExists(plist[i])) and (GetDistance(plist[i])<7) then
      begin
        if InParty() then
        begin
          flaginparty:=false;
          for k:=0 to PartyMembersList.Count-1 do
          begin
            if IntToStr(plist[i])=PartyMembersList[k] then 
            begin
                flaginparty:=true;
            end;
          end;
          if flaginparty=false then
          begin
            InviteToParty(plist[i]); 
            AddToSystemJournal('Inviting: ' + GetName(plist[i]));
            wait(1000)
          end;
        end
        else
        begin
          InviteToParty(plist[i]); 
          AddToSystemJournal('Inviting: ' + GetName(plist[i]));
          wait(1000)
        end;
      end;
      wait(10);
    end;

     if(not Hidden) then
  begin
    UseSkill('Hiding');
  end;
  end; 
end.
themaskedwolf
Posts: 3
Joined: 22.05.2018 23:21

Re: script crashes stealth after 3+ hours

Post by themaskedwolf »

no one has any ideas? :(
GeeZeR
Apprentice
Apprentice
Posts: 226
Joined: 28.01.2012 19:48

Re: script crashes stealth after 3+ hours

Post by GeeZeR »

the code looks ok, try to gather some info (Settings -> Logs -> logs checkboxes) and send the logfiles to Vizit0r after crashes
Stealth 8.10.2 | Клиент: 7.0.13.4
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: script crashes stealth after 3+ hours

Post by Vizit0r »

awaiting for char(s?) from author to test it on my dev PC.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Post Reply