
Untitled
By: a guest on
May 24th, 2012 | syntax:
None | size: 1.21 KB | hits: 13 | expires: Never
import org.rsbot.script.Script;
import org.rsbot.script.ScriptManifest;
import org.rsbot.script.wrappers.RSNPC;
@ScriptManifest(authors = { "PowerFishDraynor" }, keywords = "Fishing", name = "PowerFishDraynor", version = 1, description = "PFD")
public class PowerFishDraynore extends Script {
private int fishingRod = 307, Bait = 313, FishSpot = 327;
public int loop() {
if (inventory.getCount() == 28) {
inventory.dropAllExcept(fishingRod, Bait);
return random(2700, 4100);
}
if (inventory.getCount() < 28 && getMyPlayer().getAnimation() != 622
&& inventory.containsOneOf(fishingRod)
&& inventory.containsOneOf(Bait)) {
RSNPC Spot = npcs.getNearest(FishSpot);
if (Spot != null && Spot.getLocation() != null) {
if (calc.distanceTo(Spot) > 3
|| !calc.tileOnScreen(Spot.getLocation())) {
walking.walkTo(Spot.getLocation());
return random(1000, 2500);
}
Spot.doAction("Bait");
return random(2500, 5000);
}
}
return random(4500, 7200);
}
}