1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question A few questions I could never find the answers to

Discussion in 'Developer Support' started by Serene, Jul 6, 2016.

  1. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    What could a workaround for that be? My while loops are only there for missclicking, and I thought the onLoop wouldn't be called until login handler and lobby handler were done executing.
    --- Double Post Merged, Jul 15, 2016, Original Post Date: Jul 11, 2016 ---
    Any update on how I can deal with the lobbyhandler so that it'll activate before my onLoop is called?
     
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    uhm, if RuneScape.isLoggedIn() perform onLoop, otherwise return.
     
  3. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,216
    Likes Received:
    1,043
    Don't use while loops that could end up infinitely looping, or at least make sure that they'll stop looping if RuneScape.isLoggedIn() returns false.
    If you're going to use a loop, at least try adding a timeout to it to prevent infinite loops, e.g. a limit on how many times it loops.
     

Share This Page

Loading...