Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold
Sign in to follow this  
johnyboyyy

Not another worldhopper rant

Recommended Posts

I realize the worldhopper is broken, but i'm having a scripting related issue. Could anyone tell me why, with this snippet, my char still hops into world 45, 18, etc.? I manually log it into 44 and see it choose 45 from the list. WorldHopper2.class is paint based world hopper that someone posted on here earlier this year, I only use it to perform the actual hop action.

I've debugged to the point of seeing the script go into "in if statement of hop worlds" so i know that the && statements work, but the bot will still hop into all of the worlds i have listed.

Sorry i can only provide a screenshot and not a copy paste, the code is running on a VM.

Im not the most advanced scripter, but I cant tell if its my mistake or if theres a class thats broken and i'm wasting my time debugging.

Thanks for your help in advance671343549_IhhnYmW1.png.97756bad9f2102046b4582dc5157488c.png

 

 

 

  • Like 1

Share this post


Link to post
Share on other sites
7 hours ago, Encoded said:

Does changeWorld in WorldHopper2 make a call to the API method? Also print out nextWorld and see what its value is.

This is awkward, WorldHopper2 is actually your script, the only thing i changed was the name because I wasnt sure if i'd still be able to use the changeWorld method from the built in worldhopper.

I've updated my code, thinking it could've been a logical error, but now through printing out the world, i can see the script print out  w18, then hop into it, despite (nextWorld != 18) being in my if-statement.

 

Here is an updated snippet, sorry if this turns out to be a dumb logical error on my end, i had this method working for months and just recently broke.

923857487_OynKmI61.png.48482b9f9508dc0b3e0d03312cac34f2.png

Share this post


Link to post
Share on other sites
32 minutes ago, johnyboyyy said:

This is awkward, WorldHopper2 is actually your script, the only thing i changed was the name because I wasnt sure if i'd still be able to use the changeWorld method from the built in worldhopper.

I've updated my code, thinking it could've been a logical error, but now through printing out the world, i can see the script print out  w18, then hop into it, despite (nextWorld != 18) being in my if-statement.

 

Here is an updated snippet, sorry if this turns out to be a dumb logical error on my end, i had this method working for months and just recently broke.

923857487_OynKmI61.png.48482b9f9508dc0b3e0d03312cac34f2.png

This has creased me ? @Deluxes

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Our picks

    • Over the past few months, I’ve been working diligently on a new project - TRiBot X. Everything has been written from the ground up, with all of the best practices of software engineering. Every aspect of TRiBot has been re-imagined to support three main goals: flexibility, useability, and reliability.
        • Like
      • 27 replies
    • Come give us feedback on the next version of TRiBot!
        • Thanks
        • Like
      • 70 replies
    • TRiBot is looking to improve a lot of its customer relationship management, customer on boarding process, customer experience, design elements, community engagement and pretty much everything else you can imagine when it comes to marketing.

      Our goal: To ensure that the marketing done TRULY reflects the experience and does not shine an inaccurate light on what TRiBot is lacking in.

      So I ask, what do you love about TRiBot and what do you hate about TRiBot? What does O S Bot, Rune M8, PowR Bot and Dre amBot do better? (yes I purposely didn't spell it right 😂).

      Love, 

      RileyZ
        • Like
      • 23 replies
    • Over the last three weeks, I've been working on upgrading our server infrastructure. It's finally ready and is now live!

      Why?

      Increased reliability - less server errors


      Increased availability - less downtime


      Increased security - keeping us and you secure


      Increased capacity - ability to serve you better


      Increased speed - less waiting for things to load


      Faster development - server and service updates will come faster


      What are the changes?

      Move from a single AWS EC2 instance to AWS ECS (Elastic Container Service)


      Distributed computing


      Load balancing


      Git management of server files and filesystem


      Redis caching


      How?

      AWS ECS (with 10 EC2 instances)


      AWS ElastiCache (Redis)


      AWS Load Balancing


      AWS EFS (Elastic file system)


      Please bare with us as I continue to tune the server for maximum performance. Slow loading speeds may occur temporarily. I thank everyone for their patience.

      Please post on this thread if you experience any issues other than slow loading times.
        • Like
      • 51 replies
    • This release will:

      Fix prayers and world hopper API (Thanks @JoeDezzy1 and @erickho123)


      Improve banking API (Thanks @Encoded)


      Adds methods for returning and using Java Lists, rather than arrays


      Slightly randomizes some hardcoded behaviour


      Removes sleeps from waitConditions; the efficiency saving potential is negligible in these use-cases, therefore cleaner code is preferable


      Other back-end improvements





      Note: If you are using LG, please restart both the RS client and TRiBot.
        • Sad
        • Haha
        • Thanks
        • Like
      • 90 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...