Jump to content

Lone

Lifetime Sponsor
  • Posts

    216
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Lone

  1. Lone

    Bank Areas

    There are already bank constants Created by Alek on 12/9/2014.
  2. Trying to get one working to show items collected and time ran. I was following Toms guide: http://osbot.org/forum/topic/83371-dynamic-signature-tutorial-with-pictures/ And I believe I have everything correct except the onExit part of it. My on exit code try { URL submit = new URL("http://heinous.xyz + "/update.php?name="All" + getClient().getUsername().replace(" ", "_") + "&time=runTime" + instance.getExperienceTracker().getElapsed(Skill.WOODCUTTING) + "&exp=" + instance.getExperienceTracker().getGainedXP(Skill.ATTACK) + "&premium=" + "YES"); URLConnection con = submit.openConnection(); instance.log("Submitting statistics..."); con.setDoInput(true); con.setDoOutput(true); con.setUseCaches(false); final BufferedReader rd = new BufferedReader( new InputStreamReader(con.getInputStream())); rd.close(); } catch (Exception e) { instance.log("Failed to submit print details"); } My signature.php code: My update.php: I really want it to only displayer # of collected items and time but trying to follow the guide as close as I can to make it work first.
  3. if(!inventory.isFull()){ if(loot.getAmount() > 3){ loot.interact("Take"); } }
  4. Please remember I am new I may be using bad habbits, or harder ways of getting the same outcome! Woke up and wrote this before I have to go to work didn't have a lot of time so its missing a lot of checks that you will want to have when you make yours I.E (do you have coins, do you have enough hides, what to do if it runs into those issues etc..) Somethings like navigating to Ellis I would change if I had more time. This has got me motivated to make a script that gathers an X amount of hide then tans it looping, might have that done when I get home from work. The script works fine but there are definitely better ways of doing everything hopefully by looking at this you can see that you have to map out what the bot needs to do and write it in a way that exceeds this. @ScriptManifest(name = "Tanner", author = "Bradf3rd", version = 1.0, info = "Tans Hide", logo = "") public class LaTanner extends Script { private final Position store = new Position(3279,3191,0); @Override public void onStart() { //Put anything you want it to do on start like time etc.. } private enum State{ BANK,WALK2ELLIS } private State getState(){ if(!inventory.contains(1739)){//IF inventory doesn't contain hide return State.BANK; //Goes to bank } else {//Else it will return State.WALK2ELLIS;//Walk to ellis and tan the hides. } //Writing it like this basically means ONCE you tan the hides you won't have any remaining in yoru inventory to it switches back to the state BANK. } @Override public void onExit() { //Code here will execute after the script ends } @Override public int onLoop() throws InterruptedException { switch (getState()){ case WALK2ELLIS: RS2Widget leather = getWidgets().get(324, 148);//This is defining leather as the Soft Leather option in trade menu for Ellis see more from TFW's Tut http://osbot.org/forum/topic/96505-osbot-scripting-basics-and-snippets/ walking.webWalk(store); //Walks to the position store which is initiated above. NPC ellis = getNpcs().closest("Ellis");//Initiates ellis as npc Ellis walking.walk(ellis); //If ellis is near we walk to her sleep(random(300,600));//random sleep between 300 and 600 ms ellis.interact("Trade");//Interacts with npc ellis selecting the option trade. sleep(random(300,600));//random sleep between 300 and 600 ms leather.interact("Tan All");//uses our widget we made above and interacts with it by selecting the option tan all sleep(random(300,600));//random sleep between 300 and 600 ms break; case BANK: walking.webWalk(Banks.AL_KHARID.getRandomPosition()); //Walks to AL_KHARID bank if(Banks.AL_KHARID.contains(myPlayer())){ //if Al kharid bank contains our player... sleep(random(300,600));//random sleep between 300 and 600 ms bank.open();//Opens bank sleep(random(300,600));//random sleep between 300 and 600 ms bank.withdraw(1739, 27);//Withdraws(int for our cowhides, number of cowhides) } break; } return 600; //The amount of time in milliseconds before the loop starts over } @Override public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) } }
  5. Looks like on multiple lines you missed closing out your statement. Make sure you use ";"
  6. Very good, I wanted to write something like this for him yesterday but unfortunately got busy. I will help you more op in a little bit.
  7. Sorry I continue to ask question but I was wondering if someone could show me an example of Mouse.Click()? Say if I want to LEFT click a certain X,Y Cord. would it not be Mouse.Click(x,y, true) ? Is it possible to use getArea()? So it won't click in the exact same spot? If someone wouldn't mind showing me a couple examples of those being used when I tried doing it myself I couldn't get it fully working right. Thanks.
  8. Is what you are trying to make private? I just started yesterday myself so I can try to help you. It will be useful to me too.
  9. Have you attempted making a script before? Or just been watching videos? I would try making one on your own and then get a good understanding of what you can't grasp, that will make it easier to ask questions and get help imo.
  10. I really like Kevin Hart, first time i've seen this one too was pretty funny
  11. I gave dota a real shot but I didn't like how the movement felt in the game, felt very sluggish.
  12. Lone

    Hi

    Hello everyone, I have been drifting around different forums for a while now really wanting to sit down and get serious about creating and publishing my own scripts. The tutorials on here as well as the supportive community has made my decision super easy. Couple things about me: I'm 21 years old. Currently in college having taken courses in C#, C++, VB, and HTML. Been playing runescape for about 10 years. Started botting back when Rsbots.net was around. I currently own PerfectWoodcutter and PerfectFisher so if any of you have any suggestions on other great scripts I would love to hear them.
  13. Thank you both! In the guide I saw a snippet of code "stall.interact("Steal-from");" so I thought it all was like that.
  14. Hi I believe the issue will be in my case CHOP if more code is needed I can post it all just want to keep it simple. case CHOP: RS2Object tree = getObjects().closest("Tree"); if (tree != null){ tree.interact("Chop-down"); } break; As you can see it just floats over the object never interacting with it.
  15. Are there public scripts like this? Havn't found one on here.
  16. That would be pretty cool because I usually watch my bot and it would make it a bit cooler imo
×
×
  • Create New...