-
Posts
285 -
Joined
-
Last visited
-
Feedback
100%
Everything posted by justanotherkid
-
just wondering, what stats were used in the proggies to average ~105k/hr
-
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); } }
-
zzz
-
ill sell u a 55/55/55 for 10m doe
-
how to place a sleep when smelting?
justanotherkid replied to justanotherkid's topic in Scripting Help
ye i'm using basically the same thing -
Al-Karaid - Gold Amulet Crafter // 140K-180K HOUR!, Limited Time!
justanotherkid replied to IBotILive's topic in Money Making
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 -
how to place a sleep when smelting?
justanotherkid replied to justanotherkid's topic in Scripting Help
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 -
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
-
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;
-
REQUEST: tutorial on understanding widgets
justanotherkid replied to justanotherkid's topic in Scripting Help
thanks guys, it's much simpler than i thought -
could someone explain the widget api and how to use them? thanks! there currently isn't any resources for understanding them
-
hm are u willing to pay per?
-
almost every ban is a delayed ban, really no suprise there
-
SOMETIMES I PRETEND TO BE A GIRL ON OSBOT TO GET ATTENTION LOL
justanotherkid replied to Mod Weath's topic in Spam/Off Topic
doesn't matter since ur name automatically makes u lower then human jk -
How do you apply standard antiban? if someone could make a guide that would be gr8 thx
-
could someone explain how to make a player walk to a position? atm I'm just having my player walk to an area
-
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
-
363
-
Can someone help me with basic array
justanotherkid replied to justanotherkid's topic in Spam/Off Topic
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 -
[/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
-
trial please
-
join chat for 1 month free sponsor hide and seek 07
justanotherkid replied to Maldesto's topic in Spam/Off Topic
1st