Easy to use, eats any cooked food in inv.
- Code:
import bot.*;
import javax.swing.*;
public class SikFighter extends Methods {
int[] cooked = {350,355,357,359,362,364,367,370,373,546,551,553,555};
public SikFighter(Client mc) {
super(mc);
}
public void main(String[] args) {
String id = JOptionPane.showInputDialog(null, "Enter Npc ID");
int toFight = Integer.parseInt(id);
if(toFight < 0) {
printMessage(id+" is not a number. Stopping");
stop();
}
while(running()) {
while(getStatCurrent(3) <= 10) {
if(inCombat(ourPlayer())) {
walkTo(myPos()[0]+2,myPos()[1]+2);
wait(random(100,300));
}
for(int i = 0; i < cooked.length; i++) {
useItem(getItemSlot(cooked[i]));
wait(random(100,500));
}
}
while(!inCombat(ourPlayer())) {
attackNPC(getNPCIndex(toFight)[0]);
wait(random(100,300));
}
}
}
}