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

Vajan head hunter scripti !

Soovitatud postitused

SUPERVIP

Tere palun andke mulle hea hunter script mis püüab red salamanderid :D

Täänud !^,

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.event.listeners.PaintListener;
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.event.listeners.ServerMessageListener;
import com.speljohan.rsbot.event.events.ServerMessageEvent;

public class RedSalamanderCatcher extends Script implements ServerMessageListener, PaintListener { //Names the script


boolean Pickup = false;
boolean AntiBanDebug = true;
   int avgPerHour;
   long avoidedCombat;
long avoidedSmokingRocks;
   int Caught = 19675; 

   int checkTime;

   int countToNext;

   boolean Debug = false;

   int FailCount = 0;

   long lastAvgCheck;

   long lastCheck;

   int Lizard = 10149;
   int Lizards = 0;
   int Net = 303;
   int NormalTree = 19679;
   int oldExp;
   int oldLevels;
   int oldRockCount; ///////////CREDS TO AELIN
   int Points = 0;
   String PointsString = "LuLWuT?";
   boolean powerMode = false;
   int randomRun = random(40, 75);
   int rockCount;
   int Rope = 954;
   int startExp = 0;
   public int startLevel = 0;
   int StartPoints = 0;
   public long startTime = System.currentTimeMillis();
   public int startXP = 0;
   public long time = System.currentTimeMillis();
   int Trapped = 19678;
   int xpPerRock;

private final RSTile HunterTile = new RSTile(2448, 3226);


//CREDITS TO Nvv FOR THE TILES CASTEL WARS - HUNTER SPOT!


RSTile[] HunterPath = {
new RSTile(2442, 3090), new RSTile(2456, 3100), new RSTile(2450, 3116), new RSTile(2437, 3126), new RSTile(2433, 3138),
new RSTile(2448, 3147), new RSTile(2454, 3162), new RSTile(2466, 3172), new RSTile(2473, 3187), new RSTile(2474, 3204),
new RSTile(2476, 3217), new RSTile(2478, 3233), new RSTile(2474, 3238)};


public static final int[] ReleaseSalamander = new int[] { 10147 };

   public String getAuthor( ) { //Sets the Authors name
       return "Hellfish+TimK+Drizzt";
   } 

   public String getName( ) { //Sets the Scripts name
       return "Red Salamander Catcher";
   }

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

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

   public String getScriptDescription( ) { //Shows a description of the script inside the script dump area
       String html="";
       html += "";
       html += "Description";
       html += "";
       html += ""; 
       return html;
   }

   public boolean onStart( Map args ) { //Loads any commands needed when the script is started
   Bot.getEventManager().addListener(PaintListener.class, this);
       return true;
   }

   public void onFinish( ) { //Loads any commands to do when the script is ended
   Bot.getEventManager().addListener(PaintListener.class, this);
   }

public void serverMessageRecieved(ServerMessageEvent e) {
       String word = e.getMessage().toLowerCase();
       if (word.contains("darts away")) {
           Lizards++;
       }
   }


public void moveMouseAntiBan() { 
int x = random(0, 750);
int y = random(0, 500);
moveMouse(49, 71, x, y);
}
       public void onRepaint(Graphics g) {
       if (isLoggedIn()) {

       //Ty to AELIN for these
       // local objects:
       int index = 21;
       int exp = 0;
       int levels;
       long hours = 0, minutes = 0, seconds = 0;
       long time;

       // Has start time been previously set?
       if (startTime == 0) {
           startTime = System.currentTimeMillis();
       }

       // Calculate hours, minutes and seconds.
       time = System.currentTimeMillis() - startTime;
       seconds = time / 1000;
       if (seconds >= 60) {
           minutes = seconds / 60;
           seconds -= minutes * 60;
       }
       if (minutes >= 60) {
           hours = minutes / 60;
           minutes -= hours * 60;
       }

       // Has variables been previously defined?
       if (startLevel == 0 || startExp == 0) {
           // No, so define them now.
           startLevel = skills.getCurrentSkillLevel(21);
           startExp = skills.getCurrentSkillExp(21);
           oldExp = 0;
       }

       // Calculate catches based on experience changes.
       exp = skills.getCurrentSkillExp(21) - startExp;
       if (exp > oldExp) {
           xpPerRock = exp - oldExp;
           oldExp = exp;
           rockCount++;
           countToNext = skills.getXPToNextLevel(STAT_HUNTER) / xpPerRock + 1;
       }

       // Calculate levels gained.
       levels = skills.getCurrentSkillLevel(index) - startLevel;
       if (levels > oldLevels) {
           oldLevels = levels;
       }

       //
       if (System.currentTimeMillis() - lastAvgCheck >= 60000) {
           lastAvgCheck = System.currentTimeMillis();
           avgPerHour = (rockCount - oldRockCount) * 60;
           oldRockCount = rockCount;
       }

       Color BG = new Color(0, 0, 0, 75);
       Color RED = new Color(255, 0, 0, 255);
       Color GREEN = new Color(0, 255, 0, 255);
       Color BLACK = new Color(0, 0, 0, 255);


       int type = 21;
           long millis = System.currentTimeMillis() - startTime;
           millis -= hours * 1000 * 60 * 60;
           millis -= minutes * 1000 * 60;
           int LevelChange = skills.getCurrentSkillLevel(type) - startLevel;
           int perNextLvl = skills.getPercentToNextLevel(type);
           int nextLvl = skills.getCurrentSkillLevel(type) + 1;
           g.setColor(BG);
           g.fill3DRect(5, 25, 205, 143, true);
           g.setColor(Color.white);
           g.drawString( getName() + " v." + getVersion() + " by Hellfish", 10,40);
           g.drawString("Running for: " + hours + "h " + minutes + "m "
                   + seconds + "s", 10, 60);
           g.drawString("XP Gained: "
                   + exp + "   Lvls Gained: " + LevelChange, 10,
                   80);
           g.drawString("XP To next lvl: "
                   + skills.getXPToNextLevel(type), 10, 100);
           g.drawString("Progress to next lvl:", 10, 120);
           g.setColor(RED);
           g.fill3DRect(10, 130, 100, 10, true); 
           g.setColor(GREEN);
           g.fill3DRect(10, 130, perNextLvl, 10, true); // This is how progress bars are made
           g.setColor(BLACK);
           g.drawString(perNextLvl + "%  to " + nextLvl, 40, 139);
           g.setColor(Color.white);
           g.drawString("Lizards Caught: " + Lizards/2, 10,160);

       }
   }

public boolean atTileTake(RSTile tile, String action) {
       int TempCounter = 0;
       while (true) {
           if (!getMyPlayer().isMoving()) break;
           wait(random(200, 400));
       }
       try {
           Point location = Calculations.tileToScreen(tile);
           if (location.x == -1 || location.y == -1) return false;
           moveMouse(location, 8,8);
           wait(random(50, 100));
           while(!getMenuItems().get(0).toLowerCase().contains(action.toLowerCase()) && TempCounter             location = Calculations.tileToScreen(tile);
           moveMouse(location, 8,8);
           TempCounter++;
           }
           if(getMenuItems().get(0).toLowerCase().contains(action.toLowerCase())) {
           clickMouse(true);
           }
           else {
           clickMouse(false);
           atMenu(action);
           }
           wait(random(50, 100));
           return true;
       } catch (Exception e) {
           return false;
       }
   }

   public void Release() { 
       boolean release = false;
       for (int i = 0; i             for (int element : ReleaseSalamander) {
               if (element == getInventoryItems()[i].getID()) {
                   release = true;

               }
           }
           if (release) {
               atInventoryItem(getInventoryItems()[i].getID(), "Release Red Sala");
               wait(random(10, 20));
                             if(!inventoryContains(10147)) {
            release = false;
           }
                      }
       }
   }



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

//setCameraRotation(181);
setCameraRotation(359);


if(inventoryContains(10147)) {
atInventoryItem(10147, "Release");
}    

RSItemTile rope=getGroundItemByID(Rope);
       if(rope != null && !isInventoryFull()) {
       atTileTake(rope,"Take");
       wait(random(200,900));
       return random(200,400);
       }
       RSItemTile net=getGroundItemByID(Net);
       if(net != null && !isInventoryFull()) {
       atTileTake(net,"Take");
       wait(random(200,900));
       return random(200,400);
       }

if(distanceTo(HunterTile) >= 8) {
walkPathMM(randomizePath(HunterPath,2,2),20);
wait(random(2000,3000));
}





if (getMyPlayer().getAnimation() == 5215) {
         moveMouseAntiBan();
           return random(1000, 2000);
       }

if (getMyPlayer().isMoving()) {
 moveMouseAntiBan();
           return random(150, 200);

       }

if (isInventoryFull()) {

Release();   

}

RSObject CoughtSalamander = findObject(19659);

if (CoughtSalamander != null && distanceTo(CoughtSalamander.getLocation()) 
    wait(random(500,1000));

   Point Sallie1 = new Point(Calculations.tileToScreen(CoughtSalamander.getLocation()));
   Point Sallie2 = new Point(Sallie1.x + random(-0, 0), Sallie1.y
                       + random(-0, 0));
       moveMouse(Sallie2, random(-8,12), random(-5,-5));
       clickMouse(true);
       moveMouseAntiBan();
       wait(random(2000,3000));



}
RSObject YoungTree = findObject(19663);


if (YoungTree != null && distanceTo(YoungTree.getLocation())       
   Point Young1 = new Point(Calculations.tileToScreen(YoungTree.getLocation()));
   Point Young2 = new Point(Young1.x + random(-0, 0), Young1.y
                       + random(-0, 0));
       moveMouse(Young2, random(-3,14), random(-2,-17));
       clickMouse(true);
      moveMouseAntiBan();
   wait(random(2000,3000));

}


       return random(100,150);
   }
}  

 

 

-colnx (TimK) for update!

-Does now have dritzzt's paint!

-Picking up rope and nets.

-Walks from Castel wars.

-Less missclicking. (still some left).

-Never full inventory (does not do that pickup bug.)

-Sets camera to to south.

-MoveMouse antiban.

 

Reqs:

 

-3 Ropes

-3 Small fishing nets

-59 hunter.


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
SUPERVIP
Author of the topic Postitas

Scripte vaja !!!!!!!

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP
Author of the topic Postitas
See vigane v6i ei tööta siis v?

 

jep , vigane

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP
Author of the topic Postitas
kle sa rsbotis ringi ka vaatad

http://www.rsbot.org/vb/showthread.php?t=27684

võta ja boti Nah

 

kui see töötaks siis ma ei teeks siia teemat :D

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.