rendered paste bodyimport impsoft.nexus.bots.color.*;
import impsoft.nexus.bots.color.constants.*;
import impsoft.nexus.bots.color.scriptable.*;
import impsoft.nexus.bots.color.scriptable.components.*;
import impsoft.nexus.bots.color.scriptable.components.bottom.*;
import impsoft.nexus.bots.color.scriptable.components.gamescreen.*;
import impsoft.nexus.bots.color.scriptable.components.minimap.*;
import impsoft.nexus.bots.color.scriptable.components.tab.*;
import impsoft.nexus.bots.color.scriptable.interfaces.*;
import impsoft.nexus.bots.color.scriptable.objects.*;
import impsoft.nexus.bots.color.scriptable.objects.items.*;
import impsoft.nexus.bots.color.structures.*;
import impsoft.nexus.bots.color.util.*;
import impsoft.nexus.bots.reflection.scriptable.components.*;
import impsoft.nexus.bots.reflection.objects.*;
import impsoft.nexus.bots.reflection.structures.*;
import java.awt.*;
public class Monkcurse extends ColorScript implements AutoPaint, ChatListener {
Timer time;
public String author = "Halofreak";
public double version = 1.0;
public String description = "Curses monks (You'll see read my Thread)";
AryanTile Spot = new AryanTile(3214, 3476);
AryanTile Bank = new AryanTile(3253, 3420);
AryanTile Run = new AryanTile(3213, 3455);
AryanTile Middle = new AryanTile(3213, 3428);
RGB[] Monkcolor = new RGB[] { new RGB(169, 67, 59), new RGB(202, 155, 113), new RGB(129, 50, 44) };
EdgeRGBCluster Monk = new EdgeRGBCluster(Monkcolor, this);
Rectangle invslot1 = new Rectangle(565, 218, 5, 5);
Rectangle Curse = new Rectangle(660, 254, 15, 13);
boolean goToBank = false;
int curse;
int xp;
int lastmagelevel;
public Monkcurse(ColorBot cb) {
super (cb);
time = new Timer(0);
}
public void bank() throws InterruptedException {
if(theTabs.InventoryV3.countStackOf("Body Rune") <= 0)
{
lastmagelevel = theTabs.Statistics.getStatBottom(theTabs.Statistics.STAT_MAGIC);
theTabs.Options.setRun(true);
theWorldMap.walkTo(Bank);
theBankV3.open();
theBankV3.doWithDrawX("Body rune", 200);
sleep(random(700,1000));
theBankV3.doWithDrawX("Water rune", 400);
infight();
}
}
public void Dead() throws InterruptedException {
theTabs.Magic.selectSpell(MagicTab.HOME_TELE);
sleep(random(8000,10000));
theTabs.Options.setRun(true);
EquipItems();
theWorldMap.walkTo(Bank);
bank();
}
public void infight() throws InterruptedException {
if (theHPBars.failSafeInCombat()) {
theTabs.Options.setRun(true);
theWorldMap.walkTo(Run);
sleep(random(2000, 4000));
cursemonk();
}
}
public void EquipItems() throws InterruptedException {
sleep(random(1000, 1500));
mouseClickLeft(invslot1);
}
public void sandwitch() throws InterruptedException {
theTabs.Magic.selectSpell(MagicTab.HOME_TELE);
sleep(random(8000, 10000));
theTabs.Options.setRun(true);
EquipItems();
theWorldMap.walkTo(Bank);
bank();
}
public void chat(String c) throws InterruptedException {
if(c.contains("you are dead"))
{
Dead();
}
if(c.contains("in a strange"))
{
sandwitch();
}
if(c.contains("enough Body Runes"))
{
goToBank = true;
}
}
public void cursemonk() throws InterruptedException {
infight();
theCamera.setCameraUp();
theCompass.setEast();
theWorldMap.walkTo(Spot);
theTabs.Magic.setSelected();
mouseClickLeft(Curse);
Monk.doTopTextOnMoving("Cast");
sleep(random(1000,2000));
curse++;
xp = curse*29;
}
public void paint(Graphics g) {
g.setColor(Color.GREEN);
g.drawString("Monk Curser Version 1.0", 10, 40);
g.drawString("Halofreak's 4'th script", 10, 60);
g.setColor(Color.BLUE);
g.drawString("Ran for " + (time.timePassed() / 1000 / 60) + " minutes", 10, 80);
g.drawString("You have cursed " + curse + " monks.", 10, 100);
g.drawString("You have gained " + xp + " Experience", 10, 120);
g.drawString("Last magic level " + lastmagelevel, 10, 140);
if (((int) time.timePassed() / 1000 / 60) >= 1) {
g.drawString("Curses per minute " + curse / (time.timePassed() / 1000 / 60), 10, 160);
}
}
public void script() throws InterruptedException
{
while(true)
{
if(goToBank)
{
bank();
goToBank = false;
}
cursemonk();
}
}
}