Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.dreambot.api.methods.map.Tile;
- import org.dreambot.api.methods.quest.Quest;
- import org.dreambot.api.methods.tabs.Tab;
- import org.dreambot.api.script.AbstractScript;
- import org.dreambot.api.script.Category;
- import org.dreambot.api.script.ScriptManifest;
- import static org.dreambot.api.methods.magic.Normal.LUMBRIDGE_TELEPORT;
- @ScriptManifest(
- author = "depwession",
- description = "ye",
- category = Category.MISC,
- version = 0.01,
- name = "Starter"
- )
- public class Main extends AbstractScript {
- Tile lumb = new Tile(3221,3217);
- @Override
- public int onLoop(){
- if (!getLocalPlayer().isAnimating()) {
- if (getQuests().isFinished(Quest.THE_RESTLESS_GHOST)) {
- if (getQuests().isFinished(Quest.ROMEO_AND_JULIET)) {
- if (getQuests().isFinished(Quest.SHEEP_SHEARER)) {
- getTabs().open(Tab.MAGIC);
- sleep(100,120);
- getMagic().castSpell(LUMBRIDGE_TELEPORT);
- sleep(80,100);
- if (getLocalPlayer().equals(lumb)){
- stop();
- }else{
- sleep(60,110);
- getWalking().walk(lumb);
- stop();
- }
- }else {
- sleep(40, 60);
- getTabs().logout();
- stop();
- }
- }else {
- sleep(40, 60);
- getTabs().logout();
- stop();
- }
- }else{
- sleep(40,60);
- getTabs().logout();
- stop();
- }
- }else{
- sleep(100);
- }
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement