Welcome to pure-k0 here you can find the latest infomation about the server.
Welcome to pure-k0 here you can find the latest infomation about the server.
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomePortalLatest imagesRegisterLog inRsAutoPure-k0 Client
Pure-k0 is under going a massive update to the site.

 

 Unique | iTele™ | AIO

Go down 
5 posters
AuthorMessage
Dead 4 Real
Administrator
Administrator
Dead 4 Real


Posts : 72
Join date : 2010-02-01
Age : 30
Location : Canada

Unique | iTele™ | AIO Empty
PostSubject: Unique | iTele™ | AIO   Unique | iTele™ | AIO I_icon_minitimeMon Mar 07, 2011 2:25 pm

Features
• Does 20+ teles a minute
• Supports 7+ Teleports
• Appealing Paint
• Progress bar

Update logs
March 8
• New Paint
• New Progress bar
• Changed Speeds

Save script as iTele.java
Code:
/*
 *  .::Credits::.
 * @Author lolpl0xme
 */
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Dimension;
import javax.swing.JButton;
import java.awt.Rectangle;
import javax.swing.JComboBox;
import org.rsbot.script.Script;
import org.rsbot.script.ScriptManifest;
import org.rsbot.script.methods.Game;
import org.rsbot.script.methods.Magic;
import org.rsbot.script.methods.Skills;
import org.rsbot.event.events.MessageEvent;
import org.rsbot.event.listeners.MessageListener;
import org.rsbot.event.listeners.PaintListener;

import javax.imageio.ImageIO;
import java.io.IOException;
import java.net.URL;
import java.awt.Color;
import java.awt.Component;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.BasicStroke;
import java.awt.Image;
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.Toolkit;
import java.awt.event.WindowListener;
 
@ScriptManifest(authors = "Lolpl0xme", keywords = "Magic", name = "iTele", version = 1.3,
description = "Unique | iTele™️ | AIO")
public class iTele extends Script implements PaintListener, MessageListener  {
   
private iTeleGUI gui = null;
private String location = null;
private String status = "null";
public long startTime = System.currentTimeMillis();
double version = 1.3;
public int expLevel;
private int xpHour;
private int startXp;
public int Teles = 0;
public int startExp;
public int expGained = 0;
public int startLvl;
public int gainedLvls;
public int xpLevel;
private int currentLevel;
private int xpGained;
private int currentXp;
long runTime = 0;
long seconds = 0;
long minutes = 0;
long hours = 0;
 
public void Antiban(){
switch (random(1, 20)) {
 
 case 1:
 camera.setAngle(random(-180,180));
 status = "Antiban";
 break;
 case 2:
 mouse.moveSlightly();
 status = "Antiban";
 break;
 case 3:
 mouse.moveRandomly(1,2);
 status = "Antiban";
 break;
 case 4:
 if (random(1, 18 ) == 1) {
 mouse.moveOffScreen();
 status = "Antiban";
 sleep(random(20000,50000));
 break;
 }
 case 5:
 game.openTab(Game.TAB_STATS);
 skills.doHover(Skills.INTERFACE_MAGIC);
 status = "Antiban";
 sleep(random(1000, 2100));
 break;
  }
}
@Override
public boolean onStart(){
    gui = new iTeleGUI();
    gui.setVisible(true);
    gui.addWindowListener(new WindowListener() {

        public void windowClosing(java.awt.event.WindowEvent e) {
            log("iTele has been stopped");
            stopScript();
        }

        public void windowOpened(java.awt.event.WindowEvent e) {
        }

        public void windowClosed(java.awt.event.WindowEvent e) {
        }

        public void windowIconified(java.awt.event.WindowEvent e) {
        }

        public void windowDeiconified(java.awt.event.WindowEvent e) {
        }

        public void windowActivated(java.awt.event.WindowEvent e) {
        }

        public void windowDeactivated(java.awt.event.WindowEvent e) {
        }
    });
    while (gui.isVisible()) {
        sleep(200, 300);
    }
    if (location.equals("Varrock")) {
        magic.castSpell
        (Magic.SPELL_VARROCK_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
}
    if (location.equals("Camelot")) {
              magic.castSpell
            (Magic.SPELL_CAMELOT_TELEPORT);
              status = "Teleporting";
            Teles++;
            Antiban();
            status = "Antiban";
            sleep(random(2400, 3000));
    }
    if (location.equals("Lumbridge")) {
        magic.castSpell
        (Magic.SPELL_LUMBRIDGE_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
}
    if (location.equals("Falador")) {
        magic.castSpell
        (Magic.SPELL_FALADOR_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
    }
    if (location.equals("Watch Tower")) {
        magic.castSpell
        (Magic.SPELL_WATCHTOWER_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
            sleep(random(2400, 3000));
    }
    if (location.equals("Trollheim")) {
    magic.castSpell
    (Magic.SPELL_TROLLHEIM_TELEPORT);
    status = "Teleporting";
    Teles++;
    Antiban();
    status = "Antiban";
    sleep(random(2400, 3000));
    }
    if (location.equals("Ardougne")) {
    magic.castSpell
    (Magic.SPELL_ARDOUGNE_TELEPORT);
    status = "Teleporting";
    Teles++;
    Antiban();
    status = "Antiban";
    sleep(random(2400, 3000));
    }
        startXp = skills.getCurrentExp(8);
            mouse.setSpeed(10);
log("Start with runes/staff");
startExp = skills.getCurrentExp
(Skills.MAGIC);
startLvl = skills.getRealLevel
(Skills.MAGIC);
startTime = System.currentTimeMillis();
return true;
    }
  @Override
public void onFinish() {
  log("Post progress report saved please.");
  env.saveScreenshot(true);
  }
  public void Teleport(){
      if (location.equals("Varrock")) {
      magic.castSpell
    (Magic.SPELL_VARROCK_TELEPORT);
    status = "Teleporting";
    Teles++;
    Antiban();
    status = "Antiban";
    sleep(random(2400, 3000));
  } else if (location.equals("Camelot")) {
      magic.castSpell
        (Magic.SPELL_CAMELOT_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
  } else if (location.equals("Lumbridge")) {
      magic.castSpell
        (Magic.SPELL_LUMBRIDGE_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
  } else if (location.equals("Falador")) {
      magic.castSpell
        (Magic.SPELL_FALADOR_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
  } else if (location.equals("Watch Tower")) {
      magic.castSpell
        (Magic.SPELL_WATCHTOWER_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
  } else if (location.equals("Trollheim")) {
      magic.castSpell
        (Magic.SPELL_TROLLHEIM_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
  } else if (location.equals("Ardougne")) {
      magic.castSpell
        (Magic.SPELL_ARDOUGNE_TELEPORT);
        status = "Teleporting";
        Teles++;
        Antiban();
        status = "Antiban";
        sleep(random(2400, 3000));
  }
  }
@Override
    public void messageReceived(MessageEvent e) {
        final String message = e.getMessage();
 if (message.contains("You do not have enough Law Runes to cast this spell")) {
        stopScript(true);
        }
        }
private final RenderingHints antialiasing = new RenderingHints(
        RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
private Image getImage(String url) {
    try {
        return ImageIO.read(new URL(url));
    } catch (IOException e) {
        return null;
    }
}
    private final Image img1 = getImage ("http://img18.imageshack.us/img18/5553/itele.png");
    private final Color color1 = new Color(255, 255, 255);
    private final Color color4 = new Color(0, 0, 0);
    private final Color color5 = new Color(255, 255, 255);
    private final Color color6 = new Color(255, 255, 204);
    private final Color Custom = new Color(0, 185, 255);
    private final BasicStroke stroke1 = new BasicStroke(2);
    private final Font font2 = new Font("Comic Sans MS", 0, 15);
    public void onRepaint(Graphics g1) {
        if (game.isLoggedIn()) {
            runTime = System.currentTimeMillis() - startTime;
            seconds = runTime / 1000;
            if (seconds >= 60) {
                minutes = seconds / 60;
                seconds -= (minutes * 60);
            }
            if (minutes >= 60) {
                hours = minutes / 60;
                minutes -= (hours * 60);
            }
            xpHour = (int) ((3600000.0 / runTime) * xpGained);
        }
        Graphics2D g = (Graphics2D)g1;
        g.setRenderingHints(antialiasing);
        currentXp = skills.getCurrentExp(Skills.MAGIC);
        xpGained = currentXp - startXp;
        final int percent = skills.getPercentToNextLevel(Skills.MAGIC);

        g.setColor(color5);
        g.fillRect(10, 405, 117, 17);

        g.setColor(Custom);
        g.fillRect(10, 405, percent, 17);

        g.setColor(color4);
        g.setStroke(stroke1);
        g.drawRect(10, 405, 117, 17);

        g.setFont(font2);
        g.setColor(color6);
        g.setColor(Color.black);
        g.drawString("" + percent + "%", 65, 420);

        // TRACKS MOUSE SO YOU KNOW WHERE IT IS AT ALL TIMES \\
        g.setColor(Color.white);
        g.drawLine(mouse.getLocation().x - 5, mouse.getLocation().y, mouse.getLocation().x + 5, mouse.getLocation().y);
        g.drawLine(mouse.getLocation().x, mouse.getLocation().y - 5, mouse.getLocation().x, mouse.getLocation().y + 5);
        currentLevel =

skills.getRealLevel(Skills.MAGIC);
gainedLvls =
skills.getRealLevel(Skills.MAGIC) -
startLvl;
expGained =
skills.getCurrentExp(Skills.MAGIC) -
startExp;
expLevel =
skills.getExpToNextLevel(Skills.MAGIC);
xpLevel =
skills.getExpToNextLevel(Skills.MAGIC);
long millis =
System.currentTimeMillis() - startTime;
        long hours = millis / (1000 * 60 * 60);
        millis -= hours * (1000 * 60 * 60);
        long minutes = millis / (1000 * 60);
        millis -= minutes * (1000 * 60);
        long seconds = millis / 1000;
        g.drawImage(img1, 7, 344, null);
        g.setFont(font2);
        g.setColor(color1);
        g.drawString("Runtime: "+ hours + ":" + minutes + ":" + seconds, 204, 355);
        g.drawString("Status: " + status + ".", 204, 375);
        g.drawString("Teleports: " + Teles, 204, 395);
        g.drawString("Current level: " + currentLevel, 204, 415);
        g.drawString("Levels gained: " + gainedLvls, 204, 435);
        g.drawString("Levels gained: " + gainedLvls, 204, 455);
        g.drawString("Exp gained: " + expGained , 350, 375);
        g.drawString("Exp till level: " + expLevel, 350, 355);
        g.drawString("Exp p/h: " + xpHour, 350, 395);
        g.drawString("Version: " + version, 17, 455);
    }
 
        @Override
        public int loop() {
          if (game.getCurrentTab() != Game.TAB_MAGIC)  {
        game.openTab(Game.TAB_MAGIC);
}
        Antiban();
        status = "Antiban";
        Teleport();
        status = "Teleporting";
        return 0;
        }
private class iTeleGUI extends JFrame {

    private static final long serialVersionUID = 1L;
    private JPanel jContentPane = null;
    private JButton StartButton = null;
    private JComboBox TeleList = null;

    public iTeleGUI() {
        super();
        initialize();
    }
    private void initialize() {
        this.setSize(195, 124);
        this.setContentPane(getJContentPane());
        this.setTitle("iTele GUI");
    }
    private Point getCenteredCorner(Component c) {
        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
        return new Point((int) ((dim.getWidth() - c.getWidth()) / 2),
                (int) ((dim.getHeight() - c.getHeight()) / 2));
    }
    private JPanel getJContentPane() {
        if (jContentPane == null) {
            jContentPane = new JPanel();
            jContentPane.setLayout(null);
            jContentPane.add(getStartButton(), null);
            jContentPane.add(getTeleList(), null);
        }
        return jContentPane;
    }
    private JButton getStartButton() {
        if (StartButton == null) {
            StartButton = new JButton();
            StartButton.setBounds(new Rectangle(20, 45, 136, 31));
            StartButton.setText("Start iTele");
            StartButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent e) {
                        if (((String) TeleList.getSelectedItem()).equals("Select")) {
                            JOptionPane.showMessageDialog(
                                    iTeleGUI.this, "Please select a location", "Selection error", JOptionPane.ERROR_MESSAGE);
                            return;
                        }
                        dispose();
                }
            });
        }
        return StartButton;
    }
    private JComboBox getTeleList() {
        if (TeleList == null) {
            TeleList =  new JComboBox(new String[] {"Select",
"Lumbridge", "Varrock", "Falador", "Camelot", "Ardougne", "Trollheim",
"Watch Tower"});
            TeleList.setBounds(new Rectangle(19, 11, 137, 16));
            TeleList.addItemListener(new java.awt.event.ItemListener() {
                public void itemStateChanged(java.awt.event.ItemEvent e) {
                    location = (String) TeleList.getSelectedItem();
                }
            });
        }
        return TeleList;
    }
}

}
Progress Reports
Unique | iTele™ | AIO 20110308055614


Last edited by Dead 4 Real on Tue Mar 08, 2011 8:51 am; edited 1 time in total
Back to top Go down
pkking
Moderator
Moderator
pkking


Posts : 64
Join date : 2010-02-05
Age : 29
Location : SUNNY Florida

Unique | iTele™ | AIO Empty
PostSubject: Re: Unique | iTele™ | AIO   Unique | iTele™ | AIO I_icon_minitimeMon Mar 07, 2011 4:42 pm

nice its pretty good actually Smile
Back to top Go down
http://pure-k0.webs.com or yahoo.com
metalvana
Moderator
Moderator
metalvana


Posts : 79
Join date : 2010-02-05
Location : Canada

Unique | iTele™ | AIO Empty
PostSubject: Re: Unique | iTele™ | AIO   Unique | iTele™ | AIO I_icon_minitimeMon Mar 07, 2011 5:59 pm

Looks good. Nice work
Back to top Go down
alio
Moderator
Moderator
alio


Posts : 108
Join date : 2010-05-28
Location : beside Uk ;D

Unique | iTele™ | AIO Empty
PostSubject: Re: Unique | iTele™ | AIO   Unique | iTele™ | AIO I_icon_minitimeTue Mar 08, 2011 4:59 am

Awesome Wink
Back to top Go down
Dead 4 Real
Administrator
Administrator
Dead 4 Real


Posts : 72
Join date : 2010-02-01
Age : 30
Location : Canada

Unique | iTele™ | AIO Empty
PostSubject: Re: Unique | iTele™ | AIO   Unique | iTele™ | AIO I_icon_minitimeTue Mar 08, 2011 8:52 am

Thanks =p, i updated it made paint look more appealing (before was quite messy =/) and also updated the progress bar, and fixed a couple bugs
Back to top Go down
alio
Moderator
Moderator
alio


Posts : 108
Join date : 2010-05-28
Location : beside Uk ;D

Unique | iTele™ | AIO Empty
PostSubject: Re: Unique | iTele™ | AIO   Unique | iTele™ | AIO I_icon_minitimeTue Mar 08, 2011 12:05 pm

AWESOME!!! Who ever is using it gl with 99 mage Wink
Back to top Go down
learn2pk
Im New!
learn2pk


Posts : 40
Join date : 2010-02-03
Age : 27
Location : somewhere

Unique | iTele™ | AIO Empty
PostSubject: Re: Unique | iTele™ | AIO   Unique | iTele™ | AIO I_icon_minitimeSat May 14, 2011 12:14 pm

epic win i say
Back to top Go down
Sponsored content





Unique | iTele™ | AIO Empty
PostSubject: Re: Unique | iTele™ | AIO   Unique | iTele™ | AIO I_icon_minitime

Back to top Go down
 
Unique | iTele™ | AIO
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: RuneScape Stuff :: Botting :: Scripts-
Jump to: