So I'm currently working on rooftop agility courses and made this very quickly to get the animations thought it may be of some use to someone else also.
Code:
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
@ScriptManifest(author = "01053", info = "Animation Grabber", name = "Animation Grabber", version = 1, logo = "")
public class Animation extends Script {
@Override
public int onLoop() throws InterruptedException {
return random(200, 300);
}
@Override
public void onPaint(Graphics2D gr) {
gr.setFont(new Font("Ariel", 0, 20));
gr.setColor(Color.BLACK);
gr.drawString("Current Animation: " + myPlayer().getAnimation(), 150, 384);
}
}
Download for the jar, add it into OSBot > Scripts directory and it will become a local script for when you use OSBot.
Download Animation.Grabber.jar @ UppIT
What it does: