Jump to content

NMZ Flicker script


7331337

Recommended Posts

Flicks prayer to stay at one, doesn't use pots or special attack. Useful for afking for 40-90 minutes at a time depending on what you're wearing. Also has a slight anti-ban, I wasn't banned and I used this for approx 60 hours 14hr/s a day. I suggest changing the Sleep() timers to be more unique for yourself.

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.api.ui.RS2InterfaceChild;
import org.osbot.rs07.api.ui.Tab;
import org.osbot.rs07.api.ui.Message.MessageType;

import java.awt.*;
import java.util.List;

@ScriptManifest(
		author = "7331337", 
		info = "Assist NMZ training, automatic hp flicker.", 
		name = "EzEMZAssister", 
		version = 0.2, 
		logo = "")

public class main extends Script{
	int[] hardFlick = {707,260,723,275};
	int totalFlicks = 0;
	
    @Override
    public void onStart() {
    	log("Started");
    }
	
    @Override
    public void onExit() {
        //Code here will execute after the script ends
    }
    
    @Override
    public int onLoop() throws InterruptedException {
    	int prayX = random(hardFlick[0], hardFlick[2]);
    	int prayY = random(hardFlick[1], hardFlick[3]);
    	int [] slightFlick = {(prayX + random (0, 4) - 2), (prayY + random (0, 4) - 2)};
    	int flickChance = random(0,100);
    	inventory.interact("Absorption", "Drink");
    	
    	if (getTabs().getOpen() == Tab.PRAYER){
    		totalFlicks++;
    		getMouse().click(prayX,prayY, false);
    		sleep(random(79,438));
    		if (flickChance > 85){
    			getMouse().click(slightFlick[0], slightFlick[1], false);
    			return random(14721,37197);
    		}
    		if (flickChance < 2){
    	    	prayX = random(hardFlick[0], hardFlick[2]);
    	    	prayY = random(hardFlick[1], hardFlick[3]);
    	    	getMouse().click(prayX,prayY, false);
    	    	log ("Yolo flick occured");
    			return random(13147,37971);
    		}
    		
    		getMouse().click(prayX,prayY, false);
    		log("Times flicked; " + totalFlicks);
    		return random(12475,37741);
    	} else {
    		getTabs().open(Tab.PRAYER);
    		log("Prayer is closed opening tab...");
    	}
    	
        return random(121,1047); //The amount of time in milliseconds before the loop starts over
    }


    @Override
    public void onPaint(Graphics2D g) {
        //This is where you will put your code for paint(s)
    }
    
    
}

Download; http://multiupload.biz/ls75gecueu9r/nmzFlicker_MultiUpload.biz.jar.html

Link to comment
Share on other sites

Flicks prayer to stay at one, doesn't use pots or special attack. Useful for afking for 40-90 minutes at a time depending on what you're wearing. Also has a slight anti-ban, I wasn't banned and I used this for approx 60 hours 14hr/s a day. I suggest changing the Sleep() timers to be more unique for yourself.

import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.api.ui.RS2InterfaceChild;
import org.osbot.rs07.api.ui.Tab;
import org.osbot.rs07.api.ui.Message.MessageType;

import java.awt.*;
import java.util.List;

@ScriptManifest(
		author = "7331337", 
		info = "Assist NMZ training, automatic hp flicker.", 
		name = "EzEMZAssister", 
		version = 0.2, 
		logo = "")

public class main extends Script{
	int[] hardFlick = {707,260,723,275};
	int totalFlicks = 0;
	
    @Override
    public void onStart() {
    	log("Started");
    }
	
    @Override
    public void onExit() {
        //Code here will execute after the script ends
    }
    
    @Override
    public int onLoop() throws InterruptedException {
    	int prayX = random(hardFlick[0], hardFlick[2]);
    	int prayY = random(hardFlick[1], hardFlick[3]);
    	int [] slightFlick = {(prayX + random (0, 4) - 2), (prayY + random (0, 4) - 2)};
    	int flickChance = random(0,100);
    	inventory.interact("Absorption", "Drink");
    	
    	if (getTabs().getOpen() == Tab.PRAYER){
    		totalFlicks++;
    		getMouse().click(prayX,prayY, false);
    		sleep(random(79,438));
    		if (flickChance > 85){
    			getMouse().click(slightFlick[0], slightFlick[1], false);
    			return random(14721,37197);
    		}
    		if (flickChance < 2){
    	    	prayX = random(hardFlick[0], hardFlick[2]);
    	    	prayY = random(hardFlick[1], hardFlick[3]);
    	    	getMouse().click(prayX,prayY, false);
    	    	log ("Yolo flick occured");
    			return random(13147,37971);
    		}
    		
    		getMouse().click(prayX,prayY, false);
    		log("Times flicked; " + totalFlicks);
    		return random(12475,37741);
    	} else {
    		getTabs().open(Tab.PRAYER);
    		log("Prayer is closed opening tab...");
    	}
    	
        return random(121,1047); //The amount of time in milliseconds before the loop starts over
    }


    @Override
    public void onPaint(Graphics2D g) {
        //This is where you will put your code for paint(s)
    }
    
    
}

Download; http://multiupload.biz/ls75gecueu9r/nmzFlicker_MultiUpload.biz.jar.html

 

Good Job! ^_^ might want to consider widgets for selecting prayer? 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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