Skip 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.

Perfect 1 Tick Prayer Flicker [Open Source]

Featured Replies

Hi,

I've been meaning to write this for a while now and have always gotten carried away with other projects.

To set up, just select your quick prayers, and the script will do the rest. It activates your quick prayers, then identifies the game's tick, and then double clicks in a loop every time the tick changes (I've left a random wait in the middle, feel free to remove or adjust if you'd like).

Hope you enjoy! 🙂 <3

 

Spoiler
package Osbot;

import java.awt.Color;
import java.awt.Graphics2D;

import org.osbot.rs07.listener.GameTickListener;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.api.ui.PrayerButton;

@ScriptManifest(author = "LolMarcus", name = "Prayer Flicker", info = "Flicks the quick prayers.", version = 1.0, logo = "")
public class prayerFlick extends Script implements GameTickListener {

    private int tickCount = 0;
    private int previousTickCount = 0;

    @Override
    public void onStart() {
    	if (!isOverheadPrayerActive()){
        getPrayer().setQuickPrayer(true);
        log("Starting PrayerFlicking script...");
        getBot().addGameTickListener(this);
    	}
    }

    @Override
    public void onGameTick() {
        tickCount++;
        log("Game tick: " + tickCount);
    }

    @Override
    public int onLoop() throws InterruptedException {
    	if (!isOverheadPrayerActive()){
            getPrayer().setQuickPrayer(true);
    	}else
    		if (tickCount != previousTickCount) {
    			getMouse().click(false);
    			sleep(random(0, 5));
    			getMouse().click(false);
    			previousTickCount = tickCount;
    		}
    	return random(100, 200);
    }
    
    @Override
    public void onPaint(Graphics2D g) {
        g.setColor(Color.WHITE);
        g.drawString("Game Ticks: " + tickCount, 10, 50);
    }

    @Override
    public void onExit() {
        log("Stopping PrayerFlicking script...");
        getBot().removeGameTickListener(this);
    }
    
    private boolean isOverheadPrayerActive() {
        return getPrayer().isActivated(PrayerButton.PROTECT_FROM_MAGIC) ||
               getPrayer().isActivated(PrayerButton.PROTECT_FROM_MISSILES) ||
               getPrayer().isActivated(PrayerButton.PROTECT_FROM_MELEE) ||
               getPrayer().isActivated(PrayerButton.RETRIBUTION) ||
               getPrayer().isActivated(PrayerButton.REDEMPTION) ||
               getPrayer().isActivated(PrayerButton.SMITE);
    }
}

 

 

Edited by Lol_marcus
Refined code.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.