Jump to content

7qp F2P Quester


Recommended Posts

Posted (edited)

Script that completes Restless Ghost, Rune Mysteries and Romeo & Juliet quest for 7 quest points. No items required.

Quests that this script is doing:

  • Restless Ghost
  • Rune Mysteries
  • Romeo & Juliet

As it's my first script, I would love to take your criticism.

If you experience any bug, please let me know.

Source: https://bitbucket.org/smykolas/7qp_osbot

Jar: https://bitbucket.org/smykolas/7qp_osbot/downloads/7qp.jar

Improvements that I will make:

Spoiler

Paint.

Add more quests to reduce ban rate.

Improve webwalking.

Changelog:

Spoiler

V1.0 - Initial release. (2018/09/24)

V1.01 - Just added paint which will show time elapsed, mouse and task. (2018/09/27)

V1.1 - Added Cook's Assistant quest, but I'll need to add it manually, because I will create GUI for that. (2018/10/03)

Thanks to @billyboy420 and @The Undefeated for configs.

Edited by smy
Posted (edited)

Looks good, had a quick look at the source and noticed you'll try and pick from the Cadava bush even if there's no berries to be picked.

Here's a snippet that will pick from the closest bush with berries:

Entity bush = getObjects().closest(b -> b != null && b.getName().equals("Cadava bush") && b.getModelIds().length > 1);
if (bush != null) {
    if (bush.interact("Pick-from")) {
    	new ConditionalSleep(5000) {
            @Override
            public boolean condition() throws InterruptedException {
                return getInventory.contains("Cadava berries");
            }
        }.sleep();
    }
}

 

Edited by Ragnar Lothbrok
remove custom sleep method
Posted
4 minutes ago, Ragnar Lothbrok said:

Looks good, had a quick look at the source and noticed you'll try and pick from the Cadava bush even if there's no berries to be picked.

Here's a snippet that will pick from the closest bush with berries:


Entity bush = getObjects().closest(b -> b != null && b.getName().equals("Cadava bush") && b.getModelIds().length > 1);
if (bush != null) {
    if (bush.interact("Pick-from")) {
    	new ConditionalSleep(5000) {
            @Override
            public boolean condition() throws InterruptedException {
                return getInventory.contains("Cadava berries");
            }
        }.sleep();
    }
}

 

Thanks, I knew this mistake, but I didn't knew the approach. I will fix it

  • 3 months later...
Posted

Maybe easier to just use a switch statement with a value rather than have a bunch of if statements. 

 

if(api.configs.get(29) == 0)
		{
			//code
		}
if(api.configs.get(29) == 1)
	{
	//code
	}
etc
to something like

switch(api.configs.get(29)){
	case 0:
	//code
	return 600; //Default sleep or just break

	case 1:
	//code
	return 600;
}

 

  • 2 weeks later...
Posted

Thanks for this great script! Few bugs:

Typo in paint

Sometimes dies at dark wizards

Sometimes when Juliet isn't on the balcony but in the room, it will get stuck between walking to the balcony and clicking on her.

Sometimes during rune mysteries it gets stuck in the basement, not sure why. this happens rarely.

Posted
On 9/24/2018 at 10:03 AM, Ragnar Lothbrok said:

Looks good, had a quick look at the source and noticed you'll try and pick from the Cadava bush even if there's no berries to be picked.

Here's a snippet that will pick from the closest bush with berries:


Entity bush = getObjects().closest(b -> b != null && b.getName().equals("Cadava bush") && b.getModelIds().length > 1);
if (bush != null) {
    if (bush.interact("Pick-from")) {
    	new ConditionalSleep(5000) {
            @Override
            public boolean condition() throws InterruptedException {
                return getInventory.contains("Cadava berries");
            }
        }.sleep();
    }
}

 

ConditionalSleep2 pls :doge:

  • 2 months later...
  • 1 year later...
  • 1 month later...
  • 4 months later...
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...