Neon Bot
Welcome to NBot! NBot says to Login or Register!
iThieveTrue Rawrbotad

Join the forum, it's quick and easy

Neon Bot
Welcome to NBot! NBot says to Login or Register!
iThieveTrue Rawrbotad
Neon Bot
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Neon Bot
NBot build 11.2a launched! Click Here!
Bad Ideas make for great stories
We need more site Activity! Don't let us lose hope in everyone!

You are not connected. Please login or register

iThieveTrue

3 posters

Go down  Message [Page 1 of 1]

1iThieveTrue Empty iThieveTrue Sat Dec 11, 2010 12:15 pm

Sikuma



Script will thieve designated NPC.
Auto-Run away.
Auto-Eat.

Code:
import bot.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class iThieveTrue extends Methods {

   public iThieveTrue(Client mc) {
      super(mc);
   }
   
   boolean food = true;
   int toEat,combatAttempt;
   int[] cooked = {350,355,357,359,362,364,367,370,373,546,551,553,555};
   
   public void main(String args[]) {
      String name = JOptionPane.showInputDialog(null, "Enter Npc ID to thieve.");
      int toThieve = Integer.parseInt(name);
      
      printMessage(toThieve);
      if(toThieve < 0) {
         printMessage(toThieve+" is not a number. Stopping");
         stop();
      }
      while(running()) {
      int[] letGet = getNPCIndex(toThieve);
         if(inventoryCount() < 29) {
            printMessage("@red@Warning!!! Starting Script without food!");
            food = false;
         }
         while(getStatCurrent(3) <= getStatBase(3) / 3 && food) {
            if(inventoryCount() > 29) {
               for(int i = 0; i < cooked.length; i++) {
                  useItem(getItemSlot(cooked[i]));
                  wait(random(100,500));
               }
            }
         }
         while(getStatCurrent(3) >= getStatBase(3) / 3) {
            if(inCombat(ourPlayer())) {
               printMessage("In Combat, running away!");
               walkTo(myPos()[0]+2,myPos()[1]+2);
               combatAttempt++;
               wait(random(300,600));
            }
            while(!imAt(getNPCIndex(toThieve)[1], getNPCIndex(toThieve)[2])) {
               walkTo(getNPCIndex(toThieve)[1],getNPCIndex(toThieve)[2]);
               wait(random(400,600));
               
            }
            while(imAt(getNPCIndex(toThieve)[1], getNPCIndex(toThieve)[2])) {
               thieveNPC(getNPCIndex(toThieve)[0]);
               wait(random(1400,1600));
               
            }

            wait(random(1500,2500));
         }
      }

    }
   
   public void onStop() {
      printMessage("Thiever Stopped");
      printMessage("In Combat "+combatAttempt+" times");
   }

}








2iThieveTrue Empty Re: iThieveTrue Sat Dec 11, 2010 5:34 pm

Lowrider

Lowrider

Not a bad script at all thanks man. Ive gotten 45 thieving so far Smile

3iThieveTrue Empty Re: iThieveTrue Sat Dec 11, 2010 6:05 pm

Sikuma



no problem man thanks for the feedback

4iThieveTrue Empty Re: iThieveTrue Sat Dec 11, 2010 11:54 pm

TimeDead

TimeDead
Admin

Posted in wrong section. Moved to appropriate area on forums.

-TimeDead

https://nbot.iftopic.com

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum