Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • StrongHold of Security solver


    xpDad

    Recommended Posts

    package main.helper;
    
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.List;
    import java.util.Optional;
    import org.dreambot.api.methods.MethodProvider;
    import org.dreambot.api.methods.dialogues.Dialogues;
    import org.dreambot.api.methods.interactive.GameObjects;
    import org.dreambot.api.methods.map.Area;
    import org.dreambot.api.methods.map.Tile;
    import org.dreambot.api.wrappers.interactive.GameObject;
    import main.actions.WalkingActions;
    
    public class SosWalker extends MethodProvider {
    
    	private static final List<String> ANSWERS = Arrays.asList(
    
    			"Nobody.",
    
    			"Don't tell them anything and ignore them.",
    
    			"Talk to any banker in RuneScape.",
    
    			"Nothing.",
    
    			"Memorable.", "Use the Account Recovery System.",
    			"Politely tell them no and then use the 'Report Abuse' button.",
    			"Virus scan my device then change my password.",
    			"Don't tell them anything and inform Jagex through the game website.",
    
    			"No, it might steal my password.",
    
    			"Don't give them my password.",
    
    			"To recover my account if i don't remember my password.",
    			"Nowhere.", "Don't give out your password to anyone. Not even close friends.",
    			"No.", "Me.",
    			"Through account settings on oldschool.runescape.com.",
    			"To help me recover my password if I forget it or if it is stolen.", "Delete it - it's a fake!",
    			"Read the text and follow the advice given.",
    			"Secure my device and reset my password.",
    			"Recovering your account if you forget your password.",
    			"Decline the offer and report that player.",
    			"Game Inbox on the RuneScape website.",
    			"Set up 2 step authentication with my email provider.", "No, you should never buy an account.",
    			"Do not visit the website and report the player who messaged you.",
    			"Only on the Old School RuneScape website.", "Report the incident and do not click any links.",
    			"Authenticator and two-step login on my registered email.",
    			"Report the player for phishing.",
    			"Don't share your information and report the player.",
    			"The birthday of a famous person or event.", "No, you should never allow anyone to level your account.", "Nothing, it's a fake.",
    			"Report the stream as a scam. Real Jagex streams have a 'verified' mark.", "No way! You'll just take my gold for your own! Reported!");
    
    	private void continueWhilePossible() {
    		while (Dialogues.canContinue() && Dialogues.inDialogue()) {
    			Dialogues.continueDialogue();
    			sleepWhile(Dialogues::isProcessing, Dialogues::canContinue, 300, 1000);
    			sleep(500, 700);
    		}
    	}
    
    	public void solve() {
    		final List<String> options = Arrays.asList(Dialogues.getOptions());
    		final Optional<String> optionalOption = ANSWERS.stream().filter(ans -> options.stream().anyMatch(option -> option.equals(ans))).findFirst();
    		if (optionalOption.isPresent()) {
    			optionalOption.ifPresent((ans) -> {
    				Dialogues.chooseOption(ans);
    				sleepUntil(Dialogues::canContinue, 5000);
    				continueWhilePossible();
    			});
    		} else {
    			log(Arrays.toString(Dialogues.getOptions()));
    		}
    
    	}
    }

    Use the solve() method :) almost got cancer from getting most of the options. (it's not all of them).

    Link to comment
    Share on other sites

    • 1 year 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
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.