• Log in or sign up for an account here: https://www.sythe.org/login

Looking for: Magic cammy/anywhere teleport

krysto

Active Member

Banned
Joined
Jul 13, 2008
Sythe Gold
0
Messages
163
Hello,
RSbot is offline but I really need a magic script that automaticly does my camelot teleports, please post it here. I Will thank you.
 
i got one but i do not know if it works

import java.awt.*;
import java.util.Map;
import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.script.Script;
import com.speljohan.rsbot.event.listeners.PaintListener;
import java.awt.Graphics;


public class AutoTele extends Script implements PaintListener{


public String where="";
public int spell=0;
public int times=0;
public boolean teled=false;

public double getVersion() {

return 1.1;

}

public String getScriptCategory() {

return "Magic";

}

public String getName() {

return "AutoTele";

}

public String getAuthor() {

return "Tom331";

}

public boolean onStart(Map<String, String> args) {
//Starting Code goes here
Bot.getEventManager().addListener(PaintListener.class, this);

where=args.get("where");
if (where.equals("Varrock")){
where="var";
spell=15; //16;
}else if(where.equals("Lumbridge")){
where="lum";
spell=18; //19;
}else if(where.equals("Falador")){
where="fal";
spell=21; //23;
}else if(where.equals("House")){
where="house";
spell=23; //25;
}else if(where.equals("Camelot")){
where="cam";
spell=26; //28;
}else if(where.equals("Ardgoune")){
where="ard";
spell=32; //34;
}else if(where.equals("Watchtower")){
where="wat";
spell=37; //39;
}else if(where.equals("Trollheim")){
where="troll";
spell=44; //46;
}else if(where.equals("Ape Atoll")){
where="ape";
spell=47; //49;
}
return true;
}

public int loop() {
try{
//code goes here
if(!inventoryContains(563)){
log("You have no law runes!");
log("You teleported "+times + "times");
return -1;
}
if(getMyPlayer().getAnimation()==-1){
openTab(TAB_MAGIC);
atInterface(192,spell);
wait(random(500,800));
if(teled=true){
times=times+1;
teled=false;
}
}else if (getMyPlayer().getAnimation()!=-1);{
teled=true;
}
}catch(Exception e){
log("An exception has occurred.");
}
return 0;
}

public String getScriptDescription() {
String html = "";

html += "<html>\n";
html += "<body>\n";
html += "<center>\n";
html += "<font size=\"5\">AutoTele by Tom331</font><br><br>";
html += "</center>";
html += "<select name=\"where\"><option selected>Varrock<option>Lumbridge<option>Falador<option>House<option>Camelot<option>Ardougne<option>Watchtower<option>Trollheim<option>Ape Atoll</select>";
html += "</body>";
html += "</html>";

return( html );
}
public void onRepaint(Graphics g) {
g.setColor(Color.BLUE);
g.drawString("Teleported " + times + " times" ,333,16);

}
public void onFinish(){
Bot.getEventManager().removeListener(PaintListener.class, this);
}
}
 
Thanks man, it works.
Finally my zerker pure will say: Taste vengeance!!
ty.
 
Runescape Gamblingrunescape gambling
Back
Top