Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.scripts;
- import java.awt.*;
- import com.kbot2.scriptable.Script;
- import com.kbot2.scriptable.methods.wrappers.NPC;
- import com.kbot2.scriptable.methods.wrappers.GroundItem;
- import com.kbot2.scriptable.methods.wrappers.Tile;
- import com.kbot2.scriptable.methods.data.Skills;
- import com.kbot2.handlers.eventSystem.eventListeners.PaintListener;
- /**
- * Created by IntelliJ IDEA.
- * User: Henry
- * Date: 30-May-2009
- * Time: 22:30:28
- * To change this template use File | Settings | File Templates.
- */
- public class FlaxSpinner extends Script implements PaintListener {
- Tile frontOfdoorTile = newTile(2307, 3214);
- @Override
- public boolean onStart() {
- Status = "Starting Up";
- log("Welcome to ILiked's Flax Spineer");
- startTime = System.currentTimeMillis();
- return true;
- }
- public String getName() {
- return "FlaxSpinner";
- }
- public String getAuthor() {
- return "ILikedRSBot";
- }
- public String getDescription() {
- return "Spins Flax at lumbridge, start in Lumbridge bank";
- }
- /* Your created methods, specific for this script goes under here */
- /* Main Loop */
- public int loop() {
- f(!isLoggedIn()) {
- return random(100, 200);
- }
- if (getEnergy() >= random(60, 100)) {
- setRun(true);
- wait(random(400, 500));
- }
- try {
- if (getMyPlayer().isMoving()) {
- wait(random(25,50));
- Point stairsPoint = getCalculations().tileToScreen(new Tile(3205, 3208));
- clickMouse(stairsPoint, 10, 10, true);
- return random(200,300);
- if(!tileOnScreen(frontOfdoorTile))
- walkTileMM(frontOfdoorTile);
- }
- }
Add Comment
Please, Sign In to add comment