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

~~ RSBot scriptid ~~

Soovitatud postitused

umm ... kas leidub äkki Keldagrimmi gold mine scripti kuskil et paneb oma gold helmi pähe, laseb end cannonist, mineib seal nats kulda, võtab kiivri ära läheb selle boatmehe juurde (charos sõrmusega) annab kulla ära jne...? :D


I have a wonderful recipe, bring 2 gnomes 2 eggs, beat the Gnomes, separate the eggs, or was it... Meh! Details.

Jaga seda postitust


Postituse link
Share on other sites
import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.script.Script;
import com.speljohan.rsbot.script.wrappers.*;
import java.awt.event.KeyEvent;
import java.awt.*;
import com.speljohan.rsbot.event.listeners.PaintListener;


public class EssenceMiner extends Script implements PaintListener
{

   public String getName()
   {
       return "Jan's Essence Miner";
   }

   public String getScriptCategory() {
	return "Mining";
}

   public double getVersion()
   {
       return 2.0;
   }

   public String getAuthor()
   {
       return "Jan274";
   }

   public boolean onStart(String as[])
   {
    startTime = System.currentTimeMillis();
    Bot.getEventManager().addListener(PaintListener.class, this);
    if(isLoggedIn()){
	    makeSouth();
    }
 return true;	    
   }


   public void onFinish() {
	Bot.getEventManager( ).removeListener(PaintListener.class, this);
}

   public int State = 0;
   public int loadscomplete = 0;
   public int essamount = 0;
   public String position = "none";
   public final int pickaxe[] = {1275, 1265, 1269, 1267, 1273, 1271};
   public final int essrockId = 2491;
   public final int boothId = 11402;
   public final int aubury = 553;
   public final int door = 24381;
   public final int portal = 2492;
   long startTime = 0;

   private final RSTile NWportal[] = {new RSTile(2896, 4845), new RSTile(2885, 4849)};
   private final RSTile NEportal[] = {new RSTile(2923, 4846), new RSTile(2931, 4854)};
   private final RSTile SWportal[] = {new RSTile(2896, 4809), new RSTile(2890, 4812)};
   private final RSTile SEportal[] = {new RSTile(2925, 4819), new RSTile(2933, 4816)};

   private final RSTilePath NWpath= new RSTilePath(NWportal, this);
   private final RSTilePath NEpath= new RSTilePath(NEportal, this);
   private final RSTilePath SWpath= new RSTilePath(SWportal, this);
   private final RSTilePath SEpath= new RSTilePath(SEportal, this);

   private final RSTile MSWposA[] = {
       new RSTile(2906, 4826), new RSTile(2897, 4817)};
   private final RSTilePath MSWPathA= new RSTilePath(MSWposA, this);

   private final RSTile MNEpos[] = {
       new RSTile(2912, 4833), new RSTile(2923, 4846)};
   private final RSTilePath MNEPath= new RSTilePath(MNEpos, this);

   private final RSTile toBankA[] = {
  	  new RSTile(3253, 3402), new RSTile(3260, 3414)};
   private final RSTilePath toBankPathA= new RSTilePath(toBankA, this);

   private final RSTile toBankB[] = {
  	  new RSTile(3260, 3414), new RSTile(3254, 3420)};
   private final RSTilePath toBankPathB= new RSTilePath(toBankB, this);

   private final RSTile toAuburyA[]={
    new RSTile(3253, 3420), new RSTile(3245, 3410)};
   private final RSTilePath toAuburyPathA= new RSTilePath(toAuburyA, this);

   private final RSTile toAuburyB[]={
    new RSTile(3245, 3410), new RSTile(3253, 3402)};
   private final RSTilePath toAuburyPathB= new RSTilePath(toAuburyB, this);

   public boolean openDoor() {//wakka's opener
	RSObject obj = findObject(door);
	if (obj !=null) {
			if (distanceTo(findObject(door)) 				atDoor(findObject(door), "West", "Open");
			wait (random(1000, 2000));
			return true;
			}
		}
	return false;
   }

   public void makeSouth(){	
    setCompass('N');
    wait(random(200, 700));
    Bot.getInputManager().pressKey(
	    ((char) (KeyEvent.VK_LEFT)));
    wait(1900);
    Bot.getInputManager().releaseKey(
	    ((char) (KeyEvent.VK_LEFT)));
   }

   public void onRepaint(Graphics g){
    long runTime = System.currentTimeMillis() - startTime;
	long TotalSecs = runTime / 1000;
	long TotalMins = TotalSecs / 60;
	long TotalHours = TotalMins / 60;
	int seconds = (int) TotalSecs % 60;
	int minutes = (int) TotalMins % 60;
	int hours = (int) TotalHours % 60;
	StringBuilder b = new StringBuilder();
	if (hours 			b.append('0');
	b.append(hours);
	b.append(':');
	if (minutes 			b.append('0');
	b.append(minutes);
	b.append(':');
	if (seconds 			b.append('0');
	b.append(seconds);
if(isLoggedIn()){
	int x = 18;
	int y = 240;
	g.setColor(Color.BLACK);
	g.drawString("Jan274's Essence Miner ", x, y += 15);
	g.setColor(Color.BLUE);
	g.drawString("Ran for: " + b.toString(), x, y += 25);
	g.drawString("Mined: " + essamount + " essence", x, y += 20);
	g.drawString("Completed: " + loadscomplete + " loads", x, y += 20);
}
   }

   public void essAntiBan(){
    int t;
    int u;
	    t = random(0,9);
	    u = random(0,10);
	    if( u == 3 ){
	    try{
		    switch(t){
		    case 0://random mouse
			   moveMouse(0 + random(0, 500), 0 + random(0, 500));
			   wait(random(500, 1000));
		    break;
       	  	   case 4://random tab.
			   openTab(random(1, 15));
			   wait(random(500,1000));
			   break;
		   case 2:
			   moveMouse(0 + random(0, 500), 0 + random(0, 500));
			   wait(random(500, 1000));
		    break;
		   case 3:
		   case 1:
		   case 5:
		   case 8:
		   case 7:
		   case 6://examing object
			   int hu = random(0, 3);
			   if(hu == 1){
			   int robj[] = {743, 2491, 2492, 724, 484, 485, 744};
			   if(atObject(findObject(robj[random(0, 6)]), "amine")){
				wait(random(500,1000));
			   }
			   }else{
			   break; 
			   }
			   break;
		    }
	    }catch(Exception e){ 
		    e.printStackTrace(); 
	    } 
	    }

   }

   public boolean randomPath(int path) throws InterruptedException{
    int rpath = 0;
    if(path == 2){
    rpath = random(0,5);
    if(rpath == 2){
	    toAuburyPathB.walkToStart();
	    wait(random(400,500));
	    toAuburyPathA.walkToStart();
    }
    else{
	    toBankPathA.walkToEnd();
	    wait(random(400,500));
	    toBankPathB.walkToEnd();
    }
    }
    if(path == 1){
	    rpath = random(0,5);
	    if(rpath == 2){
		    toAuburyPathA.walkToEnd();
		    wait(random(400,500));
		    toAuburyPathB.walkToEnd();
	    }
	    else{
		    toBankPathB.walkToStart();
		    wait(random(400,500));
		    toBankPathA.walkToStart();
	    }
   }
   return true;
   }

   public int loop()
   {
    try{
	    if(getMyPlayer().isMoving()){
		    return random(10, 100);
	    }
	    switch(State){
	    case 0:
		    if(distanceTo(toBankA[0]) 			    {
			    State = 1;
		    } else
		    {
			    closeBank();
			    setRun(true);
			    randomPath(1);
			    if(getMyPlayer().isMoving()){
				    return random(10, 100);
			    }
			    openDoor();
		    }
		    return random(100, 500);
	    case 1:
		    if(distanceTo(toBankA[0]) 			    {
		    RSNPC rsnpc = getNearestNPCByID(aubury);
		    if(atNPC(rsnpc, "Teleport"))
			    State = 2;
		    }else{
			    State = 0;
		    }
		    return random(500, 1000);   
	    case 2:
		    if(distanceTo(toBankA[0]) 				    return random(100, 500);
		    }
		    if(distanceTo(MSWposA[0]) 			    {
			    MSWPathA.walkToEnd();
			    position = "SW";
		    }
		    if(distanceTo(MNEpos[0]) 			    {
			    MNEPath.walkToEnd();
			    position = "NE";
		    }
		    State = 3;
		    return random(100, 500);
	    case 3:
		    if(isInventoryFull()){
			    State = 4;
		    }
		    else
		    {
				    if(!(getMyPlayer().getAnimation() == -1)){
				    essAntiBan();
				    return random(100,200);
				    }else{
					    if (getMyPlayer().getAnimation() == -1){
						    wait(random(3000, 4000));
						    if(!getMyPlayer().isMoving() && getMyPlayer().getAnimation() == -1){
							    if(!(atObject(findObject(essrockId), "Mine"))){
					    makeSouth();
				    }
						    }else{
							   essAntiBan();
						    }
					    }
				    }
		    }
		    return random(100, 500);
	    case 4:
		    if(distanceTo(NEportal[0]) 				    NEpath.walkToEnd();
		    if(distanceTo(NWportal[0]) 				    NWpath.walkToEnd();
		    if(distanceTo(SEportal[0]) 				    SEpath.walkToEnd();
		    if(distanceTo(SWportal[0]) 				    SWpath.walkToEnd();
		    if(getMyPlayer().isMoving())
			    return random(10, 100);

		    if(!(distanceTo(toBankA[0]) 				    wait(random(400,500));
			    atObject(findObject(portal), "Use");
			    wait(random(500,800));
		    }else{
			    State = 5;
		    }
		    return random(100, 200);
	    case 5:
		    if(distanceTo(toBankA[0]) 			    openDoor();
			    randomPath(2);
			    essamount += getInventoryCount(1436);
			    loadscomplete++;
			    State = 6;  
		    }
		    return random(100, 200);
	    case 6:
		    if(RSInterface.getInterface(INTERFACE_BANK).isValid())
		    {
			    depositAllExcept(pickaxe);
			    wait(random(500,800));
			    State = 0;

		    }
		    if(atObject(findObject(boothId), "Use-quickly")){
			    wait(random(400, 500));
			    if(RSInterface.getInterface(INTERFACE_BANK).isValid())
		    {
			    depositAllExcept(pickaxe);
			    wait(random(500,800));

			    State = 0;
		    }
		    }
		    return random(100,200);
	    }
    }catch(Exception e){ 
	    e.printStackTrace(); 
    }
    return random(100,500);
   }
}

Jaga seda postitust


Postituse link
Share on other sites
VIP

Keegi head cooking scripti oskab soovitada?

Peale selle mis seal esimeses postis on.

Oleksin väga tänulik.

Jaga seda postitust


Postituse link
Share on other sites

Keegi saaks aidata??? Nii copysyn DraynorAnyChopperi koodi ära ... tegin nex text document... Panin nimeks DraynorAnyChopper.java

siis pastesin kodi sinna textdocumenti. lisasin ta scritpti kausta ja panin compile all aga midagi ei toimund

Jaga seda postitust


Postituse link
Share on other sites
VIP

http://vahvel.net/showthread.php?t=29320

 

Tõmmake sealt, seal lisaks veel igast scripte.

Jaga seda postitust


Postituse link
Share on other sites
VIP

Kui keegi tahab mingit scripti võib ka minu teemasse postitada, ma võin vb mutetseda selle scripti. :ty

Jaga seda postitust


Postituse link
Share on other sites
VIP
See ei puutu siia idioot.

 

Kas keegi saaks anda script koodi see DraynorAnyChopper ?

 

import java.awt.*;
import java.awt.event.KeyEvent;
import java.util.*;
import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.event.listeners.PaintListener;
import com.speljohan.rsbot.accessors.NPC;
import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.script.Script;
import com.speljohan.rsbot.script.Calculations;
import com.speljohan.rsbot.script.wrappers.*;
import com.speljohan.rsbot.script.*;
import com.speljohan.rsbot.plugin.NonPluginClass;

public class DPDraynorWillowChopper extends Script implements PaintListener {

public static int[] tree = { 1308, 5551, 5552, 5553, 8481, 8482,
		8483, 8484, 8485, 8486, 8487, 8488 };

public static int bankBooth = 2213;

public static RSTile treeTile = new RSTile(3086, 3234);

public static RSTile bankTile = new RSTile(3092, 3245);

public final String[] treeNames = {"Willow"};

public RSTile lumbTile = new RSTile(3223, 3218);

public RSTile[] lumbToDraynorBankPath = {
	new RSTile(3222, 3219), new RSTile(3232, 3224), new RSTile(3227, 3234), new RSTile(3222, 3244), new RSTile(3211, 3246), new RSTile(3200, 3247), new RSTile(3189, 3246), new RSTile(3178, 3243), new RSTile(3168, 3238), new RSTile(3157, 3236), new RSTile(3146, 3232), new RSTile(3136, 3227), new RSTile(3125, 3227), new RSTile(3114, 3228), new RSTile(3108, 3238), new RSTile(3103, 3248), 
	new RSTile(3092, 3245)};

public String getName() {
	return "Dontpanic's Draynor Willow Chopper";
}

public double getVersion() {
	return 2.0;
}

public String getAuthor() {
	return "Dontpanic - [email="contact@tsrk.net"]contact@tsrk.net[/email]";
}

public boolean onStart(String[] args) {
	Bot.getEventManager( ).addListener(PaintListener.class, this);
	return(true);
}

public void onFinish() {
	Bot.getEventManager().removeListener(PaintListener.class, this);
}

public DPDraynorWillowChopper() {
	setParameters();
}

private void setParameters() {
	super.setParameter("category", "Dontpanic Scripts");
	super.setParameter("name", "Dontpanic's Draynor Willow Chopper");
	super.setParameter("author", "Dontpanic - [email="contact@tsrk.net"]contact@tsrk.net[/email]");
	super.setParameter("version", 2.0);

	String desc = super.getScriptDescription();

	super.setParameter("description", "Dontpanic's Draynor Willow Chopper

Start anywhere with your axe equipped or in your inventory.");
}

boolean wasMoving = false;

int loads = 0;

public void onRepaint(Graphics g) {
	g.setColor(Color.YELLOW);
	g.drawString("Dontpanic's Draynor Willow Chopper", 260, 20); 
	g.drawString("Loads: " + loads, 260, 38); 
}

boolean cameraMoving = false;

public int loop() {
	if(!isLoggedIn()) {
		return random(100,200);
	}
	if(checkSpinningView()) {
		return random(200, 300);
	}
	if(checkCamera()) {
		return random(500, 800);
	}
	if(getMyPlayer().isMoving()) {
		return random(150, 200);
	}
	if(checkLumb()) {
		return random(800, 1000);
	}
	int checkLostResult = checkLost();
	if(checkLostResult > -1) {
		return checkLostResult;
	}		
	if(checkAttack()) {
		return random(800, 1000);
	}
	if(checkEnt()) {
		return random(800, 1000);
	}
	if(getMyPlayer().getAnimation() != -1) {
		return random(150, 200);
	}
	if(getInventoryCount() != 28) {
		return doChop();
	} else {
		return doBank();
	}
}

public int doChop() {
	if(distanceTo(treeTile) > 10) {
		walkTileMM(treeTile);
		return random(800, 1000);
	}
	if(wasMoving) {
		wasMoving = false;
		return random(500, 700);
	}
	if(clickTree()) {
		return random(800, 1000);
	} else {
		if(distanceTo(treeTile) > 10) {
			walkTileMM(treeTile);
			return random(800, 1000);
		} else {
			return random(100, 200);
		}
	}
}

public boolean checkCamera() {
	if(cameraMoving) {
		if(Bot.getClient().getCameraCurveY() >= 380) {
			Bot.getInputManager().releaseKey((char) KeyEvent.VK_UP);
			cameraMoving = false;
		}
		return true;
	} else if (Bot.getClient().getCameraCurveY() 			Bot.getInputManager().pressKey((char) KeyEvent.VK_UP);
		cameraMoving = true;
		return true;
	}
	return false;
}

public boolean clickTree() {
	RSObject object = findObject(tree);
	/*if (object == null || Calculations.tileToScreen(object.getLocation()).getX() == -1) {
		return false;
	}
	Point point = new Point((int) Calculations.tileToScreen(object.getLocation()).getX() + random(0,5), (int) Calculations.tileToScreen(object.getLocation()).getY() - random(32, 33));
	moveMouse(point);
	clickMouse(point, true);
	wasMoving = true;*/
	if(object == null || distanceTo(object.getLocation()) > 16) {
		return false;
	}
	if(atTile(object.getLocation(), "Chop")) {
		wasMoving = true;
		return true;
	}
	if(distanceTo(object.getLocation()) > 3) {
		return dpWalkTile(object.getLocation());			
	}
	spinView();
	return false;
}

public int doBank() {
	if(distanceTo(bankTile) > 3) {
		walkTileMM(bankTile);
		setRun(true);
		return random(800, 1000);
	}
	if(RSInterface.getInterface(INTERFACE_BANK).isValid()) {
		bank.depositAllExcept(1349, 1351, 1353, 1355, 1357, 1359, 6739);
		loads ++;
		return random(100, 500);
	} else {
		RSObject object = findObject(bankBooth);
		atObject(object, "uickly");
		return random(500,600);
	}
}

public boolean checkEnt() {
	int count = Bot.getClient().getNPCCount();
	NPC[] npcs = Bot.getClient().getNPCArray();
	int[] ints = Bot.getClient().getNPCIndexArray();
	for (int i = 0; i 		{
		RSNPC npc = new RSNPC(npcs[ints[i]]);
		if(getMyPlayer().getInteracting() != null && getMyPlayer().getInteracting().equals(npc) && Arrays.asList(treeNames).contains(npc.getName())) {
			if(!clickTree()) {
				walkTileMM(treeTile);
			}
			return true;
		} 
	}
	return false;
}


public boolean checkAttack() {
	if(getMyPlayer().isInCombat()) {
		if(distanceTo(bankTile) > 3) {
			walkTileMM(bankTile);
		} else {
			walkTileMM(treeTile);
		}
		return true;
	} else {
		return false;
	}
}

/*boolean attacked = false;

int attHP = -1;

public boolean checkAttack() {
	int maxHP = skills.getLvlByExp(skills.getCurrentSkillExp(3));
	int curHP = skills.getCurrentSkillLevel(3);
	if(curHP 			if(attacked) {
			if(curHP > attHP) {
				attHP = curHP;
			}
			if(curHP >= attHP) {
				return false;
			} else {
				attacked = false;
			}
		}
		if(!attacked) {
			if(distanceTo(bankTile) > 3) {
				walkTileMM(bankTile);
			} else {
				walkTileMM(treeTile);
			}
			attHP = -1;
			attacked = true;
			return true;
		}


	} else {
		if(attacked) {
			attacked = false;
		}
		if(attHP != -1) {
			attHP = -1;
		}
	}
	return false;
}*/

public void spinView() {
	Bot.getInputManager().pressKey((char) KeyEvent.VK_RIGHT);
	spinningView = true;
}

boolean spinningView = false;

public boolean checkSpinningView() {
	if(spinningView) {
		Bot.getInputManager().releaseKey((char) KeyEvent.VK_RIGHT);
		spinningView = false;
		return true;
	} else {
		return false;
	}
}

public boolean dpWalkPath(RSTile[] path) {
	for(int i = path.length - 1; i >= 0; i--) {
		if(dpWalkTile(path[i])) {
			return true;
		}
	}		
	return false;
}

public boolean dpWalkTile(RSTile tile) {
	if(distanceTo(tile) 			walkTileMM(tile);
		return true;
	} else {
		return false;
	}
}

public boolean checkLumb() {
	if(distanceTo(lumbTile) 			dpWalkPath(lumbToDraynorBankPath);
		return true;
	}
	return false;
}

boolean lostTriedWalk = false;

public int checkLost() {
	if(homeTeled) {
		homeTeled = false;
		if(getMyPlayer().getAnimation() != -1) {
			return random(11000,12000);
		}
	}
	if((distanceTo(treeTile) > 10) && (distanceTo(bankTile)>5)) {
		if(!lostTriedWalk) {
			lostTriedWalk = true;
			walkTileMM(treeTile);
			return random(800, 1000);
		}
		lostTriedWalk = false;
		homeTele();
		return random(3000, 4000);
	} else if(lostTriedWalk) {
		lostTriedWalk = false;
	}
	return -1;
}

boolean homeTeled = false;

public void homeTele() {
	openTab(Script.TAB_MAGIC);
	castSpell(1);
	homeTeled = true;
}

}

 

 

See on küll draynor willow chopper, kui üles leian lisan Any ka.

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.