import impsoft.nexus.bots.color.ColorBot; import impsoft.nexus.bots.color.scriptable.ColorScript; import impsoft.nexus.bots.color.scriptable.objects.EdgeRGBCluster; import impsoft.nexus.bots.color.structures.RGB; import impsoft.nexus.bots.reflection.objects.AryanPath; import impsoft.nexus.bots.reflection.structures.AryanTile; import impsoft.nexus.bots.color.scriptable.interfaces.AutoPaint; import impsoft.nexus.bots.color.util.Timer; import java.awt.Color; import java.awt.Graphics; public class HGKX extends ColorScript implements AutoPaint { public HGKX(ColorBot b, String cmd, String args[]) { super(b); myTile41 = new AryanTile(2910, 3281); numPath1 = (new AryanTile[] { myTile41, }); path1 = new AryanPath(numPath1, this); numPath2 = (new AryanTile[] { myTile41 }); path2 = new AryanPath(numPath2, this); } public void script() throws InterruptedException, Exception { statStartTimer = new Timer(0); setUp(); for(int a = 1; a == 1;) { distance(); attackGoblins(); } } RGB[] goblinColor = new RGB[] { new RGB(157, 122,74), new RGB(102, 93, 82), new RGB(86, 68, 30) }; EdgeRGBCluster GoblinCluster = new EdgeRGBCluster(goblinColor, this); public void attackGoblins() throws InterruptedException { sleep(random(2500, 3500)); if(theHPBars.failSafeInCombat()) { log("Tappelemassa..."); sleep(random(2500, 3500)); } else { theWorldMap.walkTo (new AryanTile(2910, 3281)); log("Hmm, miss\344 Goblinit?"); GoblinCluster.doTopTextAndMenuOnMoving("Attack Hobgoblin", "Attack Hobgoblin"); } } public void setUp() throws InterruptedException { theTabs.Options.setSelected(); theTabs.Options.setRun(true); theTabs.Inventory.setSelected(); int a = theTabs.Inventory.getCount(); if(a > 0) { log("Laitetaan kuteet niskaan!"); theTabs.Inventory.doAction("W", "W", 28, true); } } public void distance() throws InterruptedException { getLocation().distanceTo(myTile41); if(getLocation().distanceTo(myTile41) > 20) { log("Kuollut"); died++; theTabs.Options.setSelected(); theTabs.Options.setRun(true); theTabs.Inventory.setSelected(); setUp(); theWorldMap.walkTo (new AryanTile(2910, 3281)); } if(getLocation().distanceTo(myTile41) > 10) { log("Liian kaukana Goblineista, menn\344\344n sinne"); theWorldMap.walkTo (new AryanTile(2910, 3281)); } } AryanTile myTile1; AryanTile myTile2; AryanTile myTile3; AryanTile myTile4; AryanTile myTile5; AryanTile myTile6; AryanTile myTile7; AryanTile myTile8; AryanTile myTile9; AryanTile myTile10; AryanTile myTile11; AryanTile myTile12; AryanTile myTile13; AryanTile myTile14; AryanTile myTile15; AryanTile myTile16; AryanTile myTile17; AryanTile myTile18; AryanTile myTile19; AryanTile myTile20; AryanTile myTile21; AryanTile myTile22; AryanTile myTile23; AryanTile myTile24; AryanTile myTile25; AryanTile myTile26; AryanTile myTile27; AryanTile myTile28; AryanTile myTile29; AryanTile myTile30; AryanTile myTile31; AryanTile myTile32; AryanTile myTile33; AryanTile myTile34; AryanTile myTile35; AryanTile myTile36; AryanTile myTile37; AryanTile myTile38; AryanTile myTile39; AryanTile myTile40; AryanTile myTile41; AryanTile numPath1[]; AryanPath path1; AryanTile numPath2[]; AryanPath path2; public int died; public void paint(Graphics g) { g.setColor(Color.YELLOW); g.drawString("Kuollut / Randomi Telettänyt: " + died, 10, 50); g.setColor(Color.RED); long runTime = statStartTimer.timePassed(); long TotalSecs = runTime / 1000; long TotalMins = TotalSecs / 60; long TotalHours = TotalMins / 60; int seconds = (int) TotalSecs % 60; int minutes = (int) TotalMins % 60; int hours = (int) TotalHours % 60; StringBuilder b = new StringBuilder(); if (hours < 10) b.append('0'); b.append(hours); b.append(':'); if (minutes < 10) b.append('0'); b.append(minutes); b.append(':'); if (seconds < 10) b.append('0'); b.append(seconds); g.drawString(b.toString(), 10, 65); g.setColor(Color.CYAN); g.drawString("Tekijä: White_D3vil ja DaWu", 10, 80); g.setColor(Color.WHITE); g.drawString("Kiitos, että käytät minun HGK:tä", 10, 95); } public Timer statStartTimer; }