Version 2 of timefighter. It will eat lobs. (not tested as I do not have an acc that can test)
To change the food go into the script and search for: if(itemCount(373) >= 1) { change the number 373 to the id of the food you want the script to eat.
Script:
-TimeDead
To change the food go into the script and search for: if(itemCount(373) >= 1) { change the number 373 to the id of the food you want the script to eat.
Script:
- Code:
import bot.*;
public class TimeFighter extends Methods {
public TimeFighter(Client mc) {
super(mc);
}
int modstatus;
public void main(String args[]) {
try {
int npcID = Integer.parseInt(args[1]);
printMessage("TimeFighter Started...");
printMessage("@gre@Fighter by TimeDead");
while(running()) {
int[] Npc = getNPCIndex(npcID);
if(fatigue() == 100L && !sleeping()) {
useItem(getItemSlot(1263));
wait(1000);
while(sleeping())
wait(1000);
}
if(getStatCurrent(3) <= 30) {
if(itemCount(373) >= 1) {
useItem(getItemSlot(376));
wait(1000);
}
}
if (Npc[0] != -1 && !inCombat(ourPlayer()));
{
attackNPC(Npc[0]);
wait(random(500, 1000));
}
wait(random(500, 1000));
}
} catch (Exception e) {
printMessage("@dre@Error, wrong arguments. use ::on TimeFighter npcID" );
}
}
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(" ");
}
}
public void onStop() {
handleCommand("status");
printMessage("@or2@Fighter: @yel@stopped");
}
public void onChatMessage(int modstatus, String name, String message) { //onchat
String s = name.toLowerCase();
if (modstatus != 4 && modstatus != 7) { //if loop
printMessage("@red@Warning: @whi@Mod detected");
String m = message.toLowerCase();
if (m.contains("YOUR NAME HERE")) { //if loop
printMessage("@ran@Mod is talking! Abandoning script! Respond if you can!");
stop();
} //end if
if(s.startsWith("Mod") || s.contains("mod") || s.contains("bot") || s.contains("Bot") || s.contains("Pyru") || s.contains("Lister")){ //if loop
speak("Hey");
stop();
printMessage("Mod detected, script and ocr stopped");
}
}
}//end if
}
-TimeDead
Last edited by TimeDead on Wed Dec 08, 2010 6:52 pm; edited 1 time in total