Java.Dungeoneering Bot.

View previous topic View next topic Go down

Java.Dungeoneering Bot.

Post by Rampage x on Sun Jul 10, 2011 3:41 pm

package nz.uberdungeon.misc; import com.rsbuddy.script.methods.*; import com.rsbuddy.script.task.LoopTask; import com.rsbuddy.script.util.Random; import com.rsbuddy.script.util.Timer; import com.rsbuddy.script.wrappers.Component; import com.rsbuddy.script.wrappers.Item; import com.rsbuddy.script.wrappers.Tile; import nz.uberdungeon.DungeonMain; import nz.uberdungeon.dungeon.Dungeon; import nz.uberdungeon.dungeon.Explore; import nz.uberdungeon.dungeon.MyPlayer; /** * Created by Simon. * User: Rampage x * Date: 7/10/11 * Time: 3:59 PM * Package: nz.uberdungeon.misc; */ public class FailSafeThread extends LoopTask { private Tile lastPos; private final Timer posTimer = new Timer(180000); private int lastXp; private final Timer xpTimer = new Timer(1800000); private final int maxDeaths = 15; private static boolean leaving; private int lastCAngle; public boolean onStart() { lastCAngle = Camera.getCompassAngle(); lastPos = Players.getLocal().getLocation(); lastXp = Skills.getCurrentExp(Skills.DUNGEONEERING); return true; } @Override public int loop() { try { if (leaving && !MyPlayer.get().isInCombat()) { leaveDungeon(); return 500; } if (!posTimer.isRunning()) { posTimer.reset(); if (lastPos.equals(Players.getLocal().getLocation())) { leaveDungeon(); } lastPos = Players.getLocal().getLocation(); } if (!xpTimer.isRunning()) { xpTimer.reset(); if (Skills.getCurrentExp(Skills.DUNGEONEERING) == lastXp) { leaveDungeon(); } } if (Dungeon.timesDied() >= maxDeaths) { leaveDungeon(); } if (Camera.getCompassAngle() == lastCAngle && !(Explore.getBossRoom() != null && Explore.getBossRoom().contains( MyPlayer.location()))) { switch (Random.nextInt(0, 2)) { case 0: Camera.setCompassAngle(Camera.getCompassAngle() + Random.nextInt(165, 175)); break; case 1: Camera.setCompassAngle(Camera.getCompassAngle() - Random.nextInt(165, 175)); break; } } lastCAngle = Camera.getCompassAngle(); } catch (Exception ignored) { } return 10000; } public void leaveDungeon() { leaving = true; Component yes = Widgets.getComponent(236, 1); Component leave = Widgets.getComponent(939, 33); if (yes.isValid()) yes.click(); else if (Widgets.canContinue()) Widgets.clickContinue(); else if (leave.isValid() && Game.getCurrentTab() == Game.TAB_QUESTS && Explore.inDungeon()) leave.click(); else if (Game.getCurrentTab() != Game.TAB_QUESTS && Explore.inDungeon()) { Item rok; if (Inventory.getItem(GameConstants.KINSHIP_RING) == null) { Game.openTab(Game.TAB_EQUIPMENT); rok = Equipment.getItem(Equipment.RING); } else rok = Inventory.getItem(GameConstants.KINSHIP_RING); if (rok.interact("Open Party")) { for (int i = 0; Game.getCurrentTab() != Game.TAB_QUESTS && i < 15; i++) sleep(100); } } else { Game.openTab(Game.TAB_INVENTORY); DungeonMain.timesAborted++; leaving = false; } } public static boolean leaving() { return leaving; } }


Last edited by Rampage x on Sun Jul 10, 2011 3:45 pm; edited 1 time in total
avatar
Rampage x
Come Here Often?
Come Here Often?

Posts : 117
Join date : 2011-06-21
Age : 23
Location : Cincinatti Ohio

View user profile http://myth-scape.com

Back to top Go down

Re: Java.Dungeoneering Bot.

Post by Rampage x on Sun Jul 10, 2011 3:42 pm

This is NOT the dungeonneering code.
It's the code for the dungeonneering bot
from RSBUDDY. :p
I have made this 100% not leeched.
avatar
Rampage x
Come Here Often?
Come Here Often?

Posts : 117
Join date : 2011-06-21
Age : 23
Location : Cincinatti Ohio

View user profile http://myth-scape.com

Back to top Go down

Re: Java.Dungeoneering Bot.

Post by Mod Anonymous on Sun Jul 10, 2011 4:03 pm

Who
The
Fuck
Cares
?
avatar
Mod Anonymous
Wise One
Wise One

Posts : 142
Join date : 2011-06-18
Location : N/A

View user profile http://myth-scape.com

Back to top Go down

Re: Java.Dungeoneering Bot.

Post by imsuperman05 on Sun Jul 10, 2011 4:25 pm

prob just leeched, and i asked you to make dung.java not a bot.

imsuperman05
Rookie
Rookie

Posts : 10
Join date : 2011-07-08

View user profile

Back to top Go down

Re: Java.Dungeoneering Bot.

Post by Epic on Sun Jul 10, 2011 4:30 pm

LAWL.
avatar
Epic
Myth-Scape User-1
Myth-Scape User-1

Posts : 40
Join date : 2011-06-20

View user profile

Back to top Go down

Re: Java.Dungeoneering Bot.

Post by Brandon on Sun Jul 10, 2011 7:56 pm

*cough* leeach.

______________________________________________________________________________________________________
avatar
Brandon
Admin
Admin

Posts : 28
Join date : 2011-06-18
Age : 22
Location : California

View user profile http://myth-scape.com/index.html

Back to top Go down

Re: Java.Dungeoneering Bot.

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum