Jump to content

sergiox57

Registered
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sergiox57

  • Rank
    New Botter

Recent Profile Visitors

1,905 profile views
  1. Thanks for replying, i guess i will have to execute the custom login method inside the same thread of the script code to avoid any thread interference.
  2. Hi thanks for replying, i already have done this setLoginBotState(false), and i run my custom login method in a separate thread, also i have tried putting all my script code inside a custom thread called thread1, but the same problem appears that is why i came to the conclusion that the deadlock was being generated when the thread was suspended while calling this method DynamicClicking.clickRSObject() , i guess the solution would be like Fluffe said adding a block of code that would idle the script code while not ingame or using a volatile boolean variable that the custom login would change t
  3. Hello, currently i am writing a custom login method for my scripts but sometimes the script gets deadlocked when the customLogin method is called, the scriptThread.suspend() method inside the customLogin method makes the script thread get into a deadlock when it is executing DynamicClicking.clickRSObject(), i know this deadlock occurs because DynamicClicking.clickRSObject() is not thread safe. To suspend the script thread this is what i do: Set<Thread> threadSet = Thread.getAllStackTraces().keySet(); Thread[] threadArray = threadSet.toArray(new Thread[threadSet.size()]
×
×
  • Create New...