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

Runescape Bot [RSBOT] | Versioonid, scriptid, õpetused!

Soovitatud postitused

tere et kas kellekil oleks anda mingid head scripti mis treeniks strd ja atti lisage [email:34f2vbmh]sanderaun@hotmail.com[/email:34f2vbmh] v2i siis pm

 

ere et kas kellekil oleks anda mingid head scripti mis treeniks strd ja atti lisage [email:34f2vbmh]sanderaun@hotmail.com[/email:34f2vbmh] v2i siis pm

Jaga seda postitust


Postituse link
Share on other sites

Milleks küsida mingeid idiootlike küsimusi siin a la "kust seda ja kust toda saab"

Võtke see foorum ette ja kammige läbi. Seal pole minuteada ühtegi sellist teemat mis oleks "ebavajalik"

Igalt poolt saab midagi uut ja huvitavat teada, uusi scripte ja tweake jne.

Ise sobrada on litsalt kasulikum, siis tead kuidas bottida ka ;)

Jaga seda postitust


Postituse link
Share on other sites
/* Guild Coal Miner by pazila

*

* Credits to Alowaniak (I used some methods from his Chopniak script)

* and TheDestroyer (I used his method for re-attaching pick-axe heads)

*

* Features:

* - anti-ban

* - runs from combat

* - anti smoking rock

* - re-attaches pick-axe heads

* - MINES!!!!!

* - banks, no power-mining, banking is faster

* - small paint, showing: coal mined, current level, percent to level, coal to level.

*

* Save this script as: GuildCoalMiner.java

*

* Start at Falador bank, the Mining Guild or the ladder with a pick-axe wielded or in inventory.

*/

 

import java.awt.Graphics;

import java.awt.event.KeyEvent;

import com.speljohan.rsbot.event.events.ServerMessageEvent;

import com.speljohan.rsbot.event.listeners.ServerMessageListener;

import com.speljohan.rsbot.event.listeners.PaintListener;

import com.speljohan.rsbot.bot.Bot;

import com.speljohan.rsbot.script.Script;

import java.util.EventListener;

import com.speljohan.rsbot.script.wrappers.*;

 

public class GuildCoalMiner extends Script implements ServerMessageListener, PaintListener {

 

public RSTile[] coalLocations = new RSTile[] {

new RSTile(3032, 9737), new RSTile(3028, 9737),

new RSTile(3028, 9739), new RSTile(3031, 9739),

new RSTile(3032, 9741), new RSTile(3034, 9739),

new RSTile(3035, 9742), new RSTile(3032, 9735),

new RSTile(3029, 9734), new RSTile(3037, 9739),

new RSTile(3037, 9735), new RSTile(3035, 9734),

new RSTile(3037, 9733), new RSTile(3039, 9733),

new RSTile(3040, 9732), new RSTile(3039, 9738),

new RSTile(3039, 9741), new RSTile(3042, 9739),

new RSTile(3044, 9737), new RSTile(3042, 9734)

};

 

int lastCoalIndex;

 

int coalMined;

 

int startLevel = 0;

 

int startEXP = 0;

 

public boolean justDied = false;

 

int ladderTopID = 2113;

int ladderBottomID = 30941;

 

int[] coalIDs = new int[] {

31068,

31069,

31070

};

 

int[] pickIDs = new int[] {

1275,

1265,

1269,

1267,

1273,

1271

};

 

int[] pickHeads = new int[] {

480,

482,

484,

486,

488,

490

};

 

int bankBoothID = 11758;

 

RSTile[] BankToLadder = new RSTile[] {

new RSTile(3015, 3355),

new RSTile(3017, 3342)

};

RSTilePath bank2Ladder = new RSTilePath(BankToLadder, this);

 

RSTile[] LadderToMine = new RSTile[] {

new RSTile(3023, 9739), new RSTile(3026, 9739),

new RSTile(3030, 9738), new RSTile(3034, 9737)

 

};

RSTilePath ladder2Mine = new RSTilePath(randomizePath(LadderToMine, 2, 2), this);

 

RSTile[] LadderToBank = reversePath(BankToLadder);

RSTilePath ladder2Bank = new RSTilePath(LadderToBank, this);

 

RSTile[] MineToLadder = reversePath(LadderToMine);

RSTilePath mine2Ladder = new RSTilePath(randomizePath(MineToLadder, 2, 2), this);

 

 

public double getVersion( ) {

return( 1.00 );

}

 

public String getName( ) {

return( "Guild Coal Miner by pazila" );

}

 

public String getAuthor( ) {

return( "pazila" );

}

 

public String getScriptCategory() {

return( "Mining" );

}

 

public String getScriptDescription( ) {

String html = "";

 

html += "\n";

html += "

\n";

html += "

html += "body {background-color: black;}\n";

html += "h2 {color: white;}\n";

html += "p {color: white;}\n";

html += "\n";

html += "\n";

html += "

\n";

html += "

" + getName( ) + " v" + getVersion( ) + "

\n";

html += "Author: " + getAuthor( ) + "

 

\n";

html += "

\n";

html += "

 

Mines COAL at the Mining Guild and banks it.

\n";

html += "

 

Start at Fallador bank with a pickaxe.

\n";

html += "

\n";

html += "\n";

html += "\n";

 

return( html );

}

 

public boolean onStart( String[ ] args ) {

Bot.getEventManager( ).addListener(ServerMessageListener.class, this);

 

return( true );

}

 

public void onFinish( ) {

Bot.getEventManager( ).removeListener(ServerMessageListener.class, this);

}

 

public boolean moveViewUp() {

Bot.getInputManager().pressKey((char) KeyEvent.VK_UP);

wait(random(800, 1200));

Bot.getInputManager().releaseKey((char) KeyEvent.VK_UP);

return true;

}

 

public void serverMessageRecieved(ServerMessageEvent e) {

if (e.getMessage().contains("you are dead")) {

justDied = true;

}

if (e.getMessage().contains("manage to mine some coal")) {

coalMined ++;

}

}

 

public int closestCoalMine(RSTile[] tiles) {

int closest = -1;

for(int i = 0; i

RSTile tile = tiles;

if(getObjectAt(tile) != null) {

if(closest == -1 && isCoalMine(getObjectAt(tile).getID())) {

closest = i;

continue;

}

if(closest == -1) {

continue;

}

if(isCoalMine(getObjectAt(tile).getID()) &&

distanceTo(getObjectAt(tile))

closest = i;

}

}

return closest;

}

public boolean isCoalMine(int coalID) {

for(int id : coalIDs) {

if(id == coalID)

return true;

}

return false;

}

 

public boolean isDead() {

if (justDied == true) {

justDied = false;

return true;

}

else {

return false;

}

}

public boolean rotateView() {

Bot.getInputManager().pressKey((char) KeyEvent.VK_LEFT);

wait (random(500, 850));

Bot.getInputManager().releaseKey((char) KeyEvent.VK_LEFT);

return true;

}

public void checkForPick() {

RSItemTile pickHead = getGroundItemByID(pickHeads);

if(pickHead != null) {

atTile(pickHead, "Take");

}

if(inventoryContains(pickHeads) && !inventoryContains(466)) {

openTab(4);

atInterface(83, 0);

}

if(inventoryContains(pickHeads) && inventoryContains(466)) {

RSItem pickaxehead = getInventoryItemByID(pickHeads);

RSItem pickaxehandle = getInventoryItemByID(466);

useItem(pickaxehead, pickaxehandle);

wait(random(500, 1000));

if(inventoryContains(1275)) {

atInventoryItem(1275, "Wield");

}

if(inventoryContains(1265)) {

atInventoryItem(1265, "Wield");

}

if(inventoryContains(1269)) {

atInventoryItem(1269, "Wield");

}

if(inventoryContains(1267)) {

atInventoryItem(1267, "Wield");

}

if(inventoryContains(1273)) {

atInventoryItem(1273, "Wield");

}

if(inventoryContains(1271)) {

atInventoryItem(1271, "Wield");

}

}

}

public void pazilasSuperDuperAntiBanLOL() {

int p = random(1, 200);

int min1 = random(300, 600);

int max1 = random(700, 1500);

int min2 = random(100, 200);

int max2 = random(300, 600);

int randomLR = random(1, 20);

 

if (p == 1) {

AntiBanView(randomLR, min1, max1);

}

if (p == 2) {

AntiBanView(randomLR, min2, max2);

}

if (p == 4) {

AntiBanView(randomLR, min2, max1);

}

if (p == 5) {

try {

clickCharacter(getNearestPlayerByLevel(1,138), "Cancel");

}

catch (Exception e) {}

}

if (p == 6) {

if (getCurrentTab() != TAB_STATS) {

openTab(TAB_STATS);

int X1 = random(670, 710);

int Y1 = random(232, 252);

moveMouse(X1, Y1);

wait(random(1000, 1500));

}

}

if (p == 7) {

if (getCurrentTab() != TAB_INVENTORY) {

openTab(TAB_INVENTORY);

}

}

if (p == 8) {

int X2 = random(1, 700);

int Y2 = random(1, 500);

moveMouse(X2, Y2);

}

if (p == 9) {

int X3 = random(1, 700);

int Y3 = random(1, 500);

moveMouse(X3, Y3);

}

if (p == 10) {

AntiBanView(randomLR, min1, max1);

if (getCurrentTab() != TAB_FRIENDS) {

openTab(TAB_FRIENDS);

}

}

if (p == 11) {

AntiBanView(randomLR, min2, max1);

int X4 = random(1, 700);

int Y4 = random(1, 500);

moveMouse(X4, Y4);

}

if (p == 12) {

if (getCurrentTab() != TAB_STATS) {

openTab(TAB_STATS);

int X1 = random(670, 710);

int Y1 = random(232, 252);

moveMouse(X1, Y1);

wait(random(1000, 1500));

}

}

if (p == 13) {

int X5 = random(1, 700);

int Y5 = random(1, 500);

moveMouse(X5, Y5);

wait(random(200, 300));

moveMouse(X5, Y5);

}

if (p == 14) {

AntiBanView(2, min2, max2);

AntiBanView(19, min2, max2);

}

if (p == 15) {

if (getCurrentTab() != TAB_INVENTORY) {

openTab(TAB_INVENTORY);

}

}

 

}

 

public void AntiBanView(int LR, int min, int max) {

if (LR

Bot.getInputManager().pressKey((char) KeyEvent.VK_RIGHT);

wait (random(min, max));

Bot.getInputManager().releaseKey((char) KeyEvent.VK_RIGHT);

}

if (LR > 10) {

Bot.getInputManager().pressKey((char) KeyEvent.VK_LEFT);

wait (random(min, max));

Bot.getInputManager().releaseKey((char) KeyEvent.VK_LEFT);

}

}

 

 

public int loop( ) {

try {

RSObject bankBooth = findObject(bankBoothID);

RSObject ladderTop = findObject(ladderTopID);

RSObject ladderBottom = findObject(ladderBottomID);

pazilasSuperDuperAntiBanLOL();

moveViewUp();

if (getEnergy() > random(40, 60)) {

setRun(true);

}

if (bankBooth != null) {

if (distanceBetween(getMyPlayer().getLocation(), bankBooth.getLocation())

if (isInventoryFull()) {

if (tileOnScreen(bankBooth.getLocation())) {

atObject(bankBooth, "use-quickly");

}

if (!tileOnScreen(bankBooth.getLocation())) {

walkTileMM(bankBooth.getLocation());

}

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

bank.depositAllExcept(pickIDs);

}

if (!isInventoryFull()) {

try {

bank2Ladder.walkToEnd();

}

catch (Exception e) {}

}

}

if (!isInventoryFull()) {

try {

bank2Ladder.walkToEnd();

}

catch (Exception e) {}

}

}

}

if (ladderTop != null) {

if (distanceBetween(getMyPlayer().getLocation(), ladderTop.getLocation())

if (tileOnScreen(ladderTop.getLocation())) {

 

setCameraRotation(random(160, 200));

 

atTile(new RSTile(3019, 3340), "climb");

}

if (!tileOnScreen(ladderTop.getLocation()) || distanceBetween(getMyPlayer().getLocation(), ladderTop.getLocation())

walkTileMM(ladderTop.getLocation());

}

}

if (distanceBetween(getMyPlayer().getLocation(), ladderTop.getLocation())

try {

ladder2Bank.walkToEnd();

}

catch (Exception e) {}

}

}

if (ladderBottom != null) {

if (distanceBetween(getMyPlayer().getLocation(), ladderBottom.getLocation())

try {

ladder2Mine.walkToEnd();

}

catch (Exception e) {}

}

if (distanceBetween(getMyPlayer().getLocation(), ladderBottom.getLocation())

if (tileOnScreen(ladderBottom.getLocation())) {

setCameraRotation(0);

atObject(ladderBottom, "climb");

}

if (!tileOnScreen(ladderBottom.getLocation())) {

walkTileMM(ladderBottom.getLocation());

}

}

}

if (coalLocations[1] != null) {

if (distanceBetween(getMyPlayer().getLocation(), coalLocations[1])

checkForPick();

if (getMyPlayer().isInCombat()) {

RSTile previousLoc = getMyPlayer().getLocation();

int runX = getMyPlayer().getLocation().getX() - 7;

int runY = getMyPlayer().getLocation().getY() - 7;

RSTile runLoc = new RSTile(runX, runY);

try {

setRun(true);

walkTileMM(runLoc);

wait(random(2000, 3000));

walkTileMM(previousLoc);

}

catch (Exception e) {}

}

if (!isInventoryFull()) {

if (!isInventoryFull()) {

int coalIndex = closestCoalMine(coalLocations);

if(coalIndex == -1 && getMyPlayer().getAnimation() != -1)

walkTileMM(coalLocations[random(0, coalLocations.length-1)]);

if(coalIndex != -1 && distanceTo(coalLocations[coalIndex])

if(getMyPlayer().getAnimation() != -1 && lastCoalIndex == coalIndex)

return random (100, 200);

lastCoalIndex = coalIndex;

if(tileOnScreen(coalLocations[coalIndex])) {

atTile(coalLocations[coalIndex], "mine");

return (random(500, 1000));

}

walkTileMM(coalLocations[coalIndex]);

return (random(100, 200));

}

}

}

if (isInventoryFull()) {

try {

mine2Ladder.walkToEnd();

}

catch (Exception e) {}

}

}

}

}

catch (Exception e) {}

 

return( random(500, 1000) );

}

 

public interface PaintListener extends EventListener {

public void onRepaint(Graphics haha);

}

public void onRepaint(Graphics haha) {

int currentLVL = skills.getCurrentSkillLevel(STAT_MINING);

int nextLVL = currentLVL + 1;

int coalToLVL = (skills.getXPToNextLevel(STAT_MINING) / 50) + 1;

if (startLevel == 0 || startEXP == 0) {

startLevel = skills.getCurrentSkillLevel(STAT_MINING);

startEXP = skills.getCurrentSkillExp(STAT_MINING);

}

haha.drawString("Coal mined:", 300, 365);

haha.drawString("Current level:", 300, 380);

haha.drawString("Percent to lvl " + nextLVL + ":" , 300, 395);

haha.drawString("Coal to lvl " + nextLVL + ":", 300, 410);

haha.drawString("" + coalMined, 420, 365);

haha.drawString("" + currentLVL, 420, 380);

haha.drawString("" + skills.getPercentToNextLevel(STAT_MINING), 420, 395);

haha.drawString("" + coalToLVL, 420, 410);

 

}

 

}

Mining guildi script.

Pead compilema selle .java .class failiks.


Jep

Jaga seda postitust


Postituse link
Share on other sites
VIP

paned save as .java ja compiled siis tuleb class file .


[sIGPIC][/sIGPIC]

images?q=tbn:ANd9GcQRvgSY6NuXU3nRFiFklJXo-w2wNpgBxvu3Z8SsNK-nrcDxVkUM8MrTHL5H

images?q=tbn:ANd9GcQsJlL3Pym6X2PRhms2lTQzJ8Jlnuepm49yoRYohAHG-20YF9bD7Uo95c-B

chicago-bulls-fan.gif

"Offense sells tickets, defense wins games, rebounding wins championships."

Jaga seda postitust


Postituse link
Share on other sites
VIP

Ega see niilihtne polegi ;)


[sIGPIC][/sIGPIC]

images?q=tbn:ANd9GcQRvgSY6NuXU3nRFiFklJXo-w2wNpgBxvu3Z8SsNK-nrcDxVkUM8MrTHL5H

images?q=tbn:ANd9GcQsJlL3Pym6X2PRhms2lTQzJ8Jlnuepm49yoRYohAHG-20YF9bD7Uo95c-B

chicago-bulls-fan.gif

"Offense sells tickets, defense wins games, rebounding wins championships."

Jaga seda postitust


Postituse link
Share on other sites
VIP
seal 6petad

 

Vaevalt (H)


[sIGPIC][/sIGPIC]

images?q=tbn:ANd9GcQRvgSY6NuXU3nRFiFklJXo-w2wNpgBxvu3Z8SsNK-nrcDxVkUM8MrTHL5H

images?q=tbn:ANd9GcQsJlL3Pym6X2PRhms2lTQzJ8Jlnuepm49yoRYohAHG-20YF9bD7Uo95c-B

chicago-bulls-fan.gif

"Offense sells tickets, defense wins games, rebounding wins championships."

Jaga seda postitust


Postituse link
Share on other sites
VIP

Miks sa nii kindel oled , et ma õpetan ?


[sIGPIC][/sIGPIC]

images?q=tbn:ANd9GcQRvgSY6NuXU3nRFiFklJXo-w2wNpgBxvu3Z8SsNK-nrcDxVkUM8MrTHL5H

images?q=tbn:ANd9GcQsJlL3Pym6X2PRhms2lTQzJ8Jlnuepm49yoRYohAHG-20YF9bD7Uo95c-B

chicago-bulls-fan.gif

"Offense sells tickets, defense wins games, rebounding wins championships."

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.