Features:
-Fishes all 3 spots, Shrimps, Tuna/Swords, and Sharks.I did not add in lobs.
-Auto-banks, grabbing what you need and depositing what you dont.
-Updates you every time you bank with a load amount and approx fish amount.
-Quick, Easy, Simple!
Info:
Script will determine what to fish. Start it in cathy near the fishing spots.
Source:
95% Credit to me.
5% Credit to whoever wrote the original messagehandler.
-Fishes all 3 spots, Shrimps, Tuna/Swords, and Sharks.I did not add in lobs.
-Auto-banks, grabbing what you need and depositing what you dont.
-Updates you every time you bank with a load amount and approx fish amount.
-Quick, Easy, Simple!
Info:
Script will determine what to fish. Start it in cathy near the fishing spots.
Source:
- Code:
import bot.*;
import java.awt.*;
public class iFishPro extends Methods {
int[] toFish;
int[] toFish2;
int[] toFish3;
int loads = 0;
int players = playerCount();
public iFishPro(Client mc) {
super(mc);
}
public boolean draw = true;
public void main(String args[]) {
while(running()) {
try{
printMessage("@whi@[@lre@AntiBan@whi@]@gre@ Started");
printMessage("@gre@Currently Banked "+loads+" loads.");
printMessage("@gre@Approx Fish Caught "+loads * 28);
toFish = getObjectIndex(193);
toFish2 = getObjectIndex(194);
toFish3 = getObjectIndex(261);
if(toFish[0] != -1 && !sleeping() && fatigue() != 97) {
while(inventoryCount() < 30) {
if(getStatCurrent(10) < 35) {
if(itemCount(376) >= 1) {
useObject(toFish[1],toFish[2]);
wait(random(1500,3700));
} else {
printMessage("You need a small net!");
doBank();
}
}
if(getStatCurrent(10) > 34 && getStatCurrent(10) < 76) {
if(itemCount(379) >= 1) {
useObject(toFish2[1],toFish2[2]);
wait(random(1500,3700));
} else {
printMessage("You need a harpoon!");
doBank();
}
}
if(getStatCurrent(10) > 75) {
if(itemCount(379) >= 1) {
useObject2(toFish3[1],toFish3[2]);
wait(random(1500,3700));
} else {
printMessage("You need a harpoon!");
doBank();
}
}
}
}
while(inventoryCount() >= 29) {
doBank();
}
} catch(Exception e) {
printMessage(e);
}
}
}
public void doBank() {
loads++;
if(!imAt(430,498)) {
walkToWait(430,498);
}
if(!imAt(440,498) && imAt(430,498)) {
walkToWait(440,498);
}
if(!imAt(441,494) && imAt(440,498)) {
walkToWait(441,494);
}
useItem(getItemSlot(1263));
wait(1000);
while(!inBank()) {
talkToNPC(getNPCIndex(95)[0]);
wait(random(3000, 4000));
answerQuestion(0);
}
while(inBank()) {
wait(700);
if(itemCount(366) > 0) {
depositAll(366);
wait(500);
}
if(itemCount(349) > 0) {
depositAll(349);
wait(500);
}
if(itemCount(369) > 0) {
depositAll(369);
wait(500);
}
if(itemCount(351) > 0) {
depositAll(351);
wait(500);
}
if(getStatCurrent(10) > 34) {
depositAll(376);
wait(500);
}
if(itemCount(545) > 1) {
depositAll(545);
wait(500);
}
if(itemCount(379) < 1) {
withdraw(379,1);
wait(500);
}
if(getStatCurrent(10) < 34 && itemCount(376) < 1) {
withdraw(376,1);
wait(500);
}
closeBank();
}
if(!imAt(441,494)) {
walkToWait(441,494);
}
if(!imAt(440,498) && imAt(441,494)) {
walkToWait(440,498);
}
if(!imAt(430,498) && imAt(440,498)) {
walkToWait(430,498);
}
if(!imAt(421,498) && imAt(430,498)) {
walkToWait(421,498);
}
if(!imAt(409,501) && imAt(421,498)) {
walkToWait(409,501);
}
}
//////////////////////////////////////////////////
/*Credits to the person that wrote this anti-mod*/
/////////////////////////////////////////////////
public void onChatMessage(int modstatus, String name, String message) {
String s = name.toLowerCase();
if (modstatus != 4 && modstatus != 7) {
printMessage("@red@Warning: @whi@Mod detected");
String m = message.toLowerCase();
if (m.contains("arrav")) {
printMessage("@ran@Mod is talking to you! Respond we are stopping.");
stop();
}
if(s.startsWith("Mod") || s.contains("mod") || s.contains("bot") || s.contains("Bot") || s.contains("Pyru") || s.contains("Lister")){
speak("Hey");
stop();
printMessage("Mod detected, script and ocr stopped");
}
}
}
public void onStop() {
printMessage("Done");
}
public boolean onServerMessage(String s) {
s = s.toLowerCase();
return false;
}
public void handleCommand(String s) {
int index = s.indexOf(" ");
String cmd = s;
String args[] = new String[0];
if(index != -1) {
cmd = s.substring(0, index).trim();
args = s.substring(index + 1).trim().split(" ");
}
}
}
95% Credit to me.
5% Credit to whoever wrote the original messagehandler.
Last edited by Sikuma on Wed Dec 08, 2010 2:11 pm; edited 3 times in total