Jump to content

7qp F2P Quester


smy

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 3 months later...

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;
}

 

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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

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.

  • Recently Browsing   0 members

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