Mine sisusse
Otsi siit
  • Rohkem valikuid...
Otsi tulemusi mis sisaldab...
Otsi tulemusi...
Jälgi teemat sisse logides  

keegi saaks cake stealer scripti anda?

Soovitatud postitused

VIP

New site can be found here: http://98.142.208.12/, rsbot.org will be set to that soon


29p9m4x.gif

Jaga seda postitust


Postituse link
Share on other sites
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.*;

import com.speljohan.rsbot.event.events.*;
import com.speljohan.rsbot.event.listeners.*;
import com.speljohan.rsbot.accessors.*;
import com.speljohan.rsbot.account.*;
import com.speljohan.rsbot.bot.*;
import com.speljohan.rsbot.script.wrappers.*;
import com.speljohan.rsbot.script.*;
import com.speljohan.rsbot.script.Calculations;

public class CakeStealer extends Script { //Names the script

int eatAT = 18;

public long lastCheck;
public long checkTime;

public int[] Food = new int[] { 1895,1893,1891, 4293, 2142, 4291, 2140, 3228, 9980, 7223, 6297, 6293, 6295, 6299, 7521, 9988, 7228, 2878, 7568, 2343, 1861, 13433, 315, 325, 319, 3144, 347, 355, 333, 339, 351, 329, 3381, 361, 10136, 5003, 379, 365, 373, 7946, 385, 397, 391, 3369, 3371, 3373, 2309, 2325, 2333, 2327, 2331, 2323, 2335, 7178, 7180, 7188, 7190, 7198, 7200, 7208, 7210, 7218, 7220, 2003, 2011, 2289, 2291, 2293, 2295, 2297, 2299, 2301, 2303, 1891, 1893, 1895, 1897, 1899, 1901, 7072, 7062, 7078, 7064, 7084, 7082, 7066, 7068, 1942, 6701, 6703, 7054, 6705, 7056, 7060, 2130, 1985, 1993, 1989, 1978, 5763, 5765, 1913, 5747, 1905, 5739, 1909, 5743, 1907, 1911, 5745, 2955, 5749, 5751, 5753, 5755, 5757, 5759, 5761, 2084, 2034, 2048, 2036, 2217, 2213, 2205, 2209, 2054, 2040, 2080, 2277, 2225, 2255, 2221, 2253, 2219, 2281, 2227, 2223, 2191, 2233, 2092, 2032, 2074, 2030, 2281, 2235, 2064, 2028, 2187, 2185, 2229 };

public RSTile TradingGuy = new RSTile(2655, 3310);

RSTile[] BankPath = {new RSTile(2656, 3308), new RSTile(2657, 3301), new RSTile(2650, 3292), new RSTile(2654, 3283)};

RSTile[] BackPath = reversePath(BankPath);

   public String getAuthor( ) { //Sets the Authors name
       return "Hellfish and Nvv, Cake by Free";
   } 

   public String getName( ) { //Sets the Scripts name
       return "Cake Stealer";
   }

   public double getVersion( ) { //Sets the Version number of the script
       return 1.0;
   }

   public String getScriptCategory() { //Sets the category that the script fit's into
       return "Thieving"; //ex Woodcutting, Fishing, Money Making, Quests
   }

   public String getScriptDescription( ) { //Shows a description of the script inside the script dump area
       String html="";
       html += "";
       html += "This steals cake in East Ardounge market place. Start near stall.
Stick whatever food you wanna eat in your first bank slot. Take note that you eat at 18 health.
I would advise cake in first slot since you won't run out of it.";
       html += "";
       html += ""; 
       return html;
   }

   public boolean onStart( Map args ) { //Loads any commands needed when the script is started
       return true;
   }

   public void onFinish( ) { //Loads any commands to do when the script is ended
   }

   public int loop( ) { //This is the area of the script where you code out the things you want the bot to do

    if (getMyPlayer().isMoving()) {
                   antiBan();
               } else {
  antiBan();
}

if (getMyPlayer().isInCombat()) {
         NeedEat();
       return random(1000,1500);
}
if(distanceTo(TradingGuy) RSTile tile = new RSTile(2658, 3310);
atTile(tile, "Walk Here");

log("Please don't post bugs on forums");

}
if(isInventoryFull()) {
walkPathMM(randomizePath(BankPath,2,2),13);

RSObject Bank = findObject(34752);

  if (Bank != null && distanceTo(Bank.getLocation())     atObject(Bank,"Use-quickly Bank booth");

log("Please don't post bugs on forums");

   if (RSInterface.getInterface( INTERFACE_BANK ).isValid()) {

    int DepositX = (random(400, 410));
    int DepositY = (random(305, 310));
     clickMouse(DepositX, DepositY, true);
wait(random(30,60));
    int WithdrawX = (random(54, 60));
    int WithdrawY = (random(110, 120));
     clickMouse(WithdrawX, WithdrawY, true);
wait(random(30,60));
   int WithdrawOX = (random(54, 60));
   int WithdrawOY = (random(110, 120));
   clickMouse(WithdrawOX, WithdrawOY, true);
wait(random(30,60));
   int WithdrawOOX = (random(54, 60));
   int WithdrawOOY = (random(110, 120));
   clickMouse(WithdrawOOX, WithdrawOOY, true);
wait(random(30,60));
    int WithdrawOOOX = (random(54, 60));
   int WithdrawOOOY = (random(110, 120));
   clickMouse(WithdrawOOOX, WithdrawOOOY, true);
wait(random(30,60));
    int BankCloseX = (random(488, 490));
    int BankCloseY = (random(32, 40));
     clickMouse(BankCloseX, BankCloseY, true);

}
}
}



if(!isInventoryFull() && !RSInterface.getInterface( INTERFACE_BANK ).isValid()) {
  walkPathMM(randomizePath(BackPath,2,2),13);
  RSObject stall = findObject(34384);
           if(stall != null && !getMyPlayer().isInCombat()) {
       Point First = new Point(Calculations.tileToScreen(stall.getLocation()));
       Point Second = new Point(First.x + random(-3, 3), First.y
                       + random(-5, 5));
       moveMouse(Second);
	wait(random(20, 40));
       clickMouse(true);
       log("dirty and fast clicking");
       wait(random(2000, 2600));
       turnToObject(stall);

   } else {

}
}

return random(200,350);
}

//Modified Anti-Ban from ProFisher2

int antiBan() {
       int GambleInt = random(1, 6);

       switch (GambleInt) {
           case 1:
               wait(random(1000, 1500));
               break;

           case 2:
               if ( random(1, 4) == 1 ) {
                   int x = random(0, 750);
                   int y = random(0, 500);
                   moveMouse(0, 0, x, y);
               }
               return random(1000, 1500);

           case 3:
               // Is the current tab the inventory?
               if (getCurrentTab() != TAB_INVENTORY) {
                   // No, so switch to the inventory tab.
                   openTab(TAB_INVENTORY);
                   return random(500, 750);
               } else {
                   // No, so return
                   return random(500, 750);
               }

           case 4:
               // If the player is moving, then abort.
               if (getMyPlayer().isMoving()) {
                   return random(750, 1000);
               }

               if (System.currentTimeMillis() - lastCheck >= checkTime) {
                   lastCheck = System.currentTimeMillis();
                   checkTime = random(60000, 180000);

                   if (getCurrentTab() != TAB_STATS) {
                       openTab(TAB_STATS);
                   }
                   moveMouse(625, 336, 6, 9);
                   return random(5000, 8000);
               }

           case 5:
               if (random(1, 8) == 2) {
                   int angle = getCameraAngle() + random(-90, 90);
                   if (angle                         angle = 0;
                   }
                   if (angle > 359) {
                       angle = 0;
                   }

                   setCameraRotation(angle);
               }
               return random(500, 750);
       }

       return random(500, 1000);
   }

void NeedEat() {
       int php = skills.getCurrentSkillLevel(3);
       if (php             EatCheck();
       } else {
           wait(random(20, 30));
       }
   }


private void EatCheck(){
       RSItem food = getInventoryItemByID(Food);            
       if(getInventoryCount(food.getID()) >= 1) {
           eat(food.getID());
       }
       else 
       {
           log("Please don't post bugs in t3h forums");
       }            
       return;
   }

   private void eat(int id){
       log("Eating: "+id+".");
       atInventoryItem(id, "Eat");
       wait(random(1500,2500));
       return;
   }
}


gamefr34ker.png

panda.jpg

RsBot Helper

X-Fire: daddystrikes

Peab Olema TeamViewer, Muidu Ei Aita

http://www.TeamViewer.com

MSN: [email:1k3vtx1m]Hansik007@hotmail.com[/email:1k3vtx1m]

Just Got Respected!

Jaga seda postitust


Postituse link
Share on other sites

Kommentaari lisamiseks loo konto või logi sisse

Kommenteerimiseks peate olema liige

Loo konto

Liituge meie kommuuni uue kontoga. See on lihtne!

Loo uus konto

Logi sisse

On juba konto? Logi sisse siit.

Logi sisse nüüd
Jälgi teemat sisse logides  

×
×
  • Loo uus...

Oluline informatsioon

Selle veebisaidi paremaks muutmiseks oleme teie seadmesse paigutanud küpsised . Võite kohandada oma küpsiste seadeid , vastasel juhul eeldame, et te olete küpsiste kasutamisega nõus kui jätkate veebisaidil sirvimist.. Palun lugege läbi Kasutustingimused ja Privaatsuspoliitika.