Welcome to TRiBot Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

scriptsnake

Registered
  • Content count

    15
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

1 Neutral

About scriptsnake

  • Rank
    New Botter

Recent Profile Visitors

274 profile views
  1. Added a next resource hover method and some ABC, however I'm now spending more time learning ABC then writing the script x). So far the highlights include: Seamless banking, will walk w/ full inventory, run with empty inventory. Sets run on while mining when energy is ~15. Anticipates next resource, very responsive, can compete with other miners for ore and wins often. So far I've had 2 account bans, but I'm not using proxies and am literally just sending brand new f2p accounts to chickens for combat levels then the mine w/ a bronze pick axe. I had about 11-12k iron ores and 63 mining on that last account before it was banned. I was doing 9 hr overnighters and being pretty careless xP Will get more in depth/consider a proxy and members soon. Picture: Green square: currently being mined. Blue square: available resource. Purple square: next resource, mouse will hover if shouldHover() returns true. Red square: dead resource. Honestly, the paint just helps w/ debugging, but at the end of the day I guess it looks pretty too x)
  2. Here's another proggy w/ a Rune Pick this time. This is all being done F2P. So far I've gotten 60 mining and 1m gp for 2 nights of iron ore botting on this acc. It currently accepts tin and iron ore, but only mines in one location: Varrock East. I am looking at setting up a power mining option, and possibly coal mining elsewhere. And like I said, I know there are countless mining scripts but this is kind of like my personal introduction to Tribot
  3. Definitely interested in doing some more intricate things like that in the future. Thanks for the input.
  4. Developing a mining script alongside some others to learn the Tribot API as well as gain programming XP. There are 5 million mining scripts out there but this is mine x) Here's the recent proggy with a BRONZE PICK AXE xD I'll release the code when I feel it is worthy. Cheers.
  5. After having my first account ban as a result of my noob scripting skills, I am going to purchase a proxy. It was fun having 70 fishing while it lasted x) Just waiting for the page to be back up.
  6. Okay so I think the problem is that the rock[] array is storing the old ID no matter what, the question now is, how do I create a new object at the exact Tile of the old object? I can get the RSTile of the rock[] object, but how do I then check what object is available at that RSTile shortly later? Here's what I got but I gotta run, didn't get to check if it works: public boolean mine() { RSObject[] rock = Objects.findNearest(7, IRON_ROCKS); if (rock.length > 0 && !isMining()) { RSTile rockTile = rock[0].getPosition(); int rockVal = rock[0].getID(); DynamicClicking.clickRSObject(rock[0], "Mine"); long t = System.currentTimeMillis(); while (Timing.timeFromMark(t) < General.random(1000, 2000)) { RSObject[] deadrock = Objects.findNearest(1, DEAD_ROCK); if (deadrock.length > 0) { for (int i = 0; i < deadrock.length; i++) { if (deadrock[i].getPosition() == rockTile) { if (deadrock[i].getID() != rockVal) { return false; } } } } if (Player.isMoving() || Player.getAnimation() != -1) { t = System.currentTimeMillis(); sleep(50); } } return true; } return false; } Solved! public boolean mine() { RSObject[] rock = Objects.findNearest(7, IRON_ROCKS); if (rock.length > 0 && !isMining()) { RSTile rockTile = rock[0].getPosition(); println(rockTile); DynamicClicking.clickRSObject(rock[0], "Mine"); long t = System.currentTimeMillis(); while (Timing.timeFromMark(t) < General.random(1000, 2000)) { if(!Objects.isAt(rockTile, IRON_ROCKS)){ return false; } if (Player.isMoving() || Player.getAnimation() != -1) { t = System.currentTimeMillis(); sleep(50); } } return true; } return false; } I'll just leave this up here in case it can be any help to someone with a similar dilemma. Peace.
  7. This is the adjustment I made, which does not work. public boolean mine() { RSObject[] rock = Objects.findNearest(7, IRON_ROCKS); if (rock.length > 0 && !isMining()) { int rockVal = rock[0].getID(); //added this DynamicClicking.clickRSObject(rock[0], "Mine"); long t = System.currentTimeMillis(); while(Timing.timeFromMark(t) < General.random(1000,2000)){ if(rock[0].getID() != rockVal){ //added this break; } if(Player.isMoving() || Player.getAnimation() != -1){ t = System.currentTimeMillis(); sleep(50); } } return true; } return false; }
  8. I tried that out, for some reason it didn't work. I'll try again and report. Thanks.
  9. So, I'm working on this power miner. The question is, how do I get the bot to recognize when an ore becomes grayed out? I am having trouble solving this and appreciate help. Thank you! Code: public boolean mine() { RSObject[] rock = Objects.findNearest(7, IRON_ROCKS); if (rock.length > 0 && !isMining()) { DynamicClicking.clickRSObject(rock[0], "Mine"); long t = System.currentTimeMillis(); while(Timing.timeFromMark(t) < General.random(1000,2000)){ if(Player.isMoving() || Player.getAnimation() != -1){ t = System.currentTimeMillis(); sleep(50); } } return true; } return false; }
  10. This helped tons, thank you!
  11. Okay, so I just added a sleep(200); in the mix and now I get proper return value off animation. I will try to figure out what's up with the code you gave me as well. So this is solved, thank you
  12. Thanks I'll try it out.
  13. Never mind I imported the RS3 package not the 07 lol gg.
  14. So, heres the script: package scripts; import org.tribot.api2007.types.RSPlayer; import org.tribot.api.DynamicClicking; import org.tribot.api.rs3.Player; import org.tribot.api2007.Objects; import org.tribot.api2007.types.RSItem; import org.tribot.api2007.types.RSObject; import org.tribot.script.Script; public class test extends Script{ private final int CLAY_ID = 434; private final int[] CLAY_ROCKS = {7454, 7487}; private final int MINING_ANIMATION = 625; public boolean isMining(){ return (Player.getAnimation() == MINING_ANIMATION); } public boolean mine(){ RSObject[] rock = Objects.findNearest(15, CLAY_ROCKS); if (rock[0] != null && rock.length > 0 && !isMining()){ DynamicClicking.clickRSObject(rock[0], "Mine"); return true; } return false; } public boolean checkInventory(){ } public boolean inventoryFull(){ } public boolean dropInventory(){ } @Override public void run() { while(true){ sleep(400,500); mine(); System.out.println(Player.getAnimation()); } } } Now granted most of the methods are unused, I was really just trying to get into the basics of the TriBot API and running a test at a clay mine. Anyways, the problem is that Player.getAnimation(); is returning -1 no matter what. Would love some help. Thanks guys. P. S. It's my first post, I'm going to school to become a programmer and I'm pretty basic level atm. I figured writing some scripts for an RS bot client would be a great way to get some XP in that regard. Thanks, 420 jah bless.