Results 1 to 6 of 6

Thread: D/c logging in help

  1. #1
    Join Date
    Mar 2007
    Location
    Eugene, Oregon
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default D/c logging in help

    I always log off because i have a bad connection at my house and the internet will randomly just die every once in a while. When this happens most of the scripts that I run stop because they think the player has become inactive. Could someone maybe help me out with a general script that could help the player 1. Not become inactive and 2. Reclick the "Click here to play" button right after someone logs in. That is the screen it always takes me to after it boots me. It doesn't completely log me out.

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Double thread, might wanna fix
    But to your question, Well if you loose connection to your internet then yes, your player does become inactive so the script ends. If the script you're using has multiplayer then it will log in the next person. If you only want to auto on one account put your character in two of the declare players spot and that should fix that. Hope it helps.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    You only option would be to create a new LoggedIn.

  4. #4
    Join Date
    Mar 2007
    Location
    Eugene, Oregon
    Posts
    195
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I didn't see the double post. Sorry the connection is awful and I might of clicked post more than once. How would I go about making a new LoggedIn?

  5. #5
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Here try this, I just wrote it. It looks like it should work, just put in in the script then call it. Hope it works.
    SCAR Code:
    function ReLogin: boolean;
    Var
      Counter : Integer;
    begin
      Repeat
      if not (LoggedIn) then
        wait(5000);
        if not (LoggedIn) then LoginPlayer;
          Inc(Counter);
      until ((Result = True) or (Counter = 10));
        if (Counter=10) then
        begin
          WriteLn('Couldn''t login player');
          TerminateScript;
        end;
    end;

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  6. #6
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Why not make a function that finds the black lag connection lost thing... put it in the main loop, if true wait until not loggedin or not lagging
    then relogin and continue, it should not make your player inactive

    SCAR Code:
    repeat
     
        If Lagging then
        begin
           repeat
             wait(100);
           until not (loggedin and lagging) //this can also be written as (not loggedin) or (not lagging)
           if not loggedin then
             repeat
               LoginPlayer
             until loggedin;
               
        end;
        //blah blah
      until whatever

    you will likely have to fix my logic as i am too lazy to actually make it work properly

    this is also assuming that the mainscript will loop all the way through while it is still lagging...
    ~ Metagen

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. logging in
    By facebooknega in forum OSR Help
    Replies: 5
    Last Post: 03-03-2008, 02:51 PM
  2. logging out for nothing??
    By macromacro123 in forum OSR Help
    Replies: 5
    Last Post: 10-21-2007, 09:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •