Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Weird issue (Hill Giants)

Featured Replies

Pretty much explains for itself, probably missed something easy but whatever.

https://i.gyazo.com/0a7eda278dde65adb81946e74c60d26b.mp4

my code:

So basically it walks down and starts walking to giantarea, but then suddenly starts climbing up (though i dont have any climb up code added yet???)

Shit logic i know

 @Override
    public int onLoop() throws InterruptedException{
    	
    		if(getInventory().contains("Trout"))
    		{
    			getWalking().webWalk(doorArea);
    		}
    		
    		if(doorArea.contains(myPosition()) && !ladderAreaUp.contains(myPosition()))
    		{
    			Entity door = objects.closest("Door");
                if (door.hasAction("Open"))
                {
                    door.interact("Open");
                    sleep(3000);
                }
    		}
    		
    		if(ladderAreaUp.contains(myPosition()) && !doorArea.contains(myPosition()))
    		{
    			Entity ladder = objects.closest("ladder");
                if (ladder.hasAction("Climb-down"))
                {
                	ladder.interact("Climb-down");
                	sleep(3000);
                }
    		}
    		
    		if(ladderAreaDown.contains(myPosition()))
    		{
    			getWalking().webWalk(giantArea);
    		}
    		
    		{


        }
        return random(500,1000);
    }

 

Edited by atoo

if(getInventory().contains("Trout"))
    		{
    			getWalking().webWalk(doorArea);
    		}

That portion of code is checked constantly, and since you have Trout in the inventory obviously, it webWalks walks back to the 'giantarea'.  webWalk handles ladders I'm pretty sure.

EDIT: You might want to nest multiple If functions if you do indeed need to get through the door yourself; so like:

If !giantArea.contains(myPlayer) && !doorArea.Contains(myPlayer) && getInventory.contains("Trout") {

... }

 

so that once you're in the dungeon, it doesn't walk out immediately. There's cleaner/better logic but I'm studying for an exam right now and cba to write it out; I'm sure you can get it though!

Edited by Magarac

Cant you use web walk to just walk straight to hill giants ? and if its the one near varrock (if it does walk there) youd only need to make sure the invent contained the key;

  • Author

Thanks for both replies, didnt know webwalk did everything for me.

Thanks guys!

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.