Jump to content

justanotherkid

Members
  • Posts

    285
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by justanotherkid

  1. just wondering, what stats were used in the proggies to average ~105k/hr
  2. jak's Free Gold Amulet (u) Crafter 33k Crafting Exp/hr ~80k+ Profit/hr F2P ​Features: Start from any location (Uses webwalking) Will log out when you run out of gold bars in the bank Requirements: Lv8 Crafting Amulet mould and Gold bars (have required items in inventory or bank) Progress Reports Download Link If you'd like to show your appreciation, a proggy would be nice http://www.mediafire.com/download/lmw047jaet804bf/30crafting.jar [OPENSOURCE] import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.event.WalkingEvent; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.Condition; import org.osbot.rs07.utility.ConditionalSleep; @ScriptManifest(author = "justanotherkid", info = "", name = "Gold Amulet Crafter", version = 1.0, logo = "") public class main extends Script { long totalgold; String state; long startTime; Area alkharid = new Area(new Position[] { new Position(3274,3188,0), new Position(3284,3188,0), new Position(3285,3179,0), new Position(3280,3179,0), new Position(3280,3165,0), new Position(3280,3164,0), new Position(3279,3163,0), new Position(3269,3165,0), new Position(3269,3178,0), new Position(3276,3178,0), new Position(3276,3183,0), new Position(3274,3184,0),}); Position[] path2bank = new Position[] { new Position(3274,3186,0), new Position(3278,3179,0), new Position(3273,3167,0), new Position(3269,3167,0),}; Position bank = new Position (3269,3167,0); Position furnace = new Position (3274,3186,0); Position[] path2furnace = new Position[] { new Position(3272,3167,0), new Position(3275,3174,0), new Position(3279,3181,0), new Position(3274,3186,0),}; @Override public void onStart() { startTime = System.currentTimeMillis(); for(Skill skill : new Skill[]{Skill.CRAFTING}) { getExperienceTracker().start(skill); } } private enum State { BANKAMULETS,MAKEAMULETS,IDLE,WALK2ALKHARID } private State getState() { if(getSkills().getDynamic(Skill.CRAFTING) >= 8 && !alkharid.contains(myPlayer())) { return State.WALK2ALKHARID; } if(getSkills().getDynamic(Skill.CRAFTING) >= 8 && alkharid.contains(myPlayer()) && !getInventory().contains("Amulet mould") || !getInventory().contains("Gold bar")) { return State.BANKAMULETS; } if(getSkills().getDynamic(Skill.CRAFTING) >= 8 && alkharid.contains(myPlayer()) && getInventory().contains("Amulet mould", "Gold bar")) { return State.MAKEAMULETS; } return State.IDLE; } @Override public int onLoop() throws InterruptedException { WalkingEvent walkingEvent1 = new WalkingEvent(bank); walkingEvent1.setBreakCondition(new Condition() { @Override public boolean evaluate() { return bank.distance(myPosition()) <= 6; } }); WalkingEvent walkingEvent2 = new WalkingEvent(furnace); walkingEvent2.setBreakCondition(new Condition() { @Override public boolean evaluate() { return furnace.distance(myPosition()) <= 4; } }); switch(getState()) { case WALK2ALKHARID: state = "Walking To Alkharid"; getWalking().webWalk(alkharid); break; case BANKAMULETS: state = "Walking To The Bank"; execute(walkingEvent1); state = "Banking"; getObjects().closest("Bank booth").interact("Bank"); new ConditionalSleep(2500) { @Override public boolean condition() throws InterruptedException { return getBank().isOpen(); } }.sleep(); sleep(random(300,600)); if(getBank().isOpen()) { totalgold = getInventory().getAmount("Gold bar") + getBank().getAmount("Gold bar"); if(totalgold < 1) { getBank().close(); sleep(random(75,150)); getLogoutTab().open(); sleep(random(75,150)); getLogoutTab().logOut(); stop(); } getBank().depositAllExcept("Amulet mould"); sleep(random(100,200)); if(!getInventory().contains("Amulet mould")) { getBank().withdraw("Amulet mould", 1); sleep(random(100,200)); } getBank().withdrawAll("Gold bar"); sleep(random(100,200)); getBank().close(); } break; case MAKEAMULETS: state = "Walking To The Furnace"; execute(walkingEvent2); state = "Crafting Amulets"; if(getWidgets().isVisible(446, 32)) { getWidgets().interact(446,32,"Make-X"); sleep(random(1200,2100)); long amount = getInventory().getAmount("Gold bar"); String amount1 = String.valueOf(amount); getKeyboard().typeString(amount1, true); sleep(random(1000,2300)); new ConditionalSleep(50000) { @Override public boolean condition() throws InterruptedException { return !getInventory().contains("Gold bar") || getDialogues().inDialogue(); } }.sleep(); } else { Entity furnace = objects.closest("Furnace"); getInventory().interact("Use", "Gold bar"); sleep(random(150,300)); furnace.interact("Use"); new ConditionalSleep(5000) { @Override public boolean condition() throws InterruptedException { return getWidgets().isVisible(446, 32); } }.sleep(); sleep(random(300,900)); } break; case IDLE: state = "You do not have lv8 Crafting!"; break; } return random(300,600); } @Override public void onExit() { } @Override public void onPaint(Graphics2D g) { long ss = (System.currentTimeMillis() - startTime) / 1000; long mm = ss / 60; long hh = mm / 60; Font font = new Font("Sans-Serif", Font.BOLD, 14); g.setColor(Color.BLACK); g.setFont(font); g.drawString("EXP Gained: " + getExperienceTracker().getGainedXP(Skill.CRAFTING) + " (" + getExperienceTracker().getGainedXPPerHour(Skill.CRAFTING) + ")", 8, 333); g.drawString("Run time: " + hh + "h" + ":" + mm%60 + "m" + ":" + ss%60 + "s" , 8, 318); g.drawString("Status: " + state, 8, 303); } }
  3. ill sell u a 55/55/55 for 10m doe
  4. if he's not going to release then i can make one for free too was just working on it last night for free crafting exp
  5. sorry close this // i only reported it because https://gyazo.com/79ebe9fcec56b770d42d23247b1752ab the api said it should sitll return true gratz khal on re becoming mod
  6. no, that didn't work either but there is a workaround i used to return !getInventory().contains("gold bars") || getDialogue().inDialogue(); // the dialogue part is for when it levels up crafting
  7. while(myPlayer().isAnimating()) { sleep(500); } or new ConditionalSleep(30000) { @Override public boolean condition() throws InterruptedException { return !myPlayer().isAnimating(); } }.sleep(); when smelting bars these two snippets are not making the player sleep smelts about 2 bars then loops again to reuse the bar on furnace
  8. i'm trying to smelt gold amulets for free crafting exp but the script will not sleep when smelting here is the portion so far i know 10 seconds isn't enough to craft 27 amulets but it's relooping after like 2 amulets which is like 4 seconds case MAKEAMULETS: getWalking().webWalk(new Position[] {furnaceposition}); if(getWidgets().isVisible(446, 32)) { getWidgets().interact(446,32,"Make-X"); sleep(random(300,500)); if(getWidgets().isVisible(162, 33)) { getKeyboard().typeString("27", true); } new ConditionalSleep(10000) { @Override public boolean condition() throws InterruptedException { return !myPlayer().isAnimating(); } }.sleep(); } else { Entity furnace = objects.closest("Furnace"); getInventory().interact("Use", "Gold bar"); sleep(random(200,300)); furnace.interact("Use"); } break;
  9. could someone explain the widget api and how to use them? thanks! there currently isn't any resources for understanding them
  10. hm are u willing to pay per?
  11. almost every ban is a delayed ban, really no suprise there
  12. doesn't matter since ur name automatically makes u lower then human jk
  13. How do you apply standard antiban? if someone could make a guide that would be gr8 thx
  14. could someone explain how to make a player walk to a position? atm I'm just having my player walk to an area
  15. hey could u show us how to add a text box in the GUI? like for an AIO combat script it would need a box to type the names of the monsters. Thanks
  16. thanks guys, i understand it now but why would they put array[ind] instead of int[ind] seeing as it is only holding one value right? nvm i get it, it records the index number
  17. [/img]https://gyazo.com/43714ea3d5bc397137be1f455c3f4a6e[/img] could someone explain what array (as in how value is found; is it the sum of elements in i?) and wtf is array[ind] if it wasn't declared earlier thx guys
  18. justanotherkid

    Cya

    c'ya tommorow jeff
×
×
  • Create New...