Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Red_Spark

Registered
  • Content Count

    344
  • Joined

  • Last visited

  • Feedback

    100%

Community Reputation

51 Excellent

1 Follower

About Red_Spark

  • Rank
    Senior Botter

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Not a lot of information to go on. I think if you are using DaxWalker public key and if a lot of people are using it at the same time, you might not get a response from the server, so you should check for that in your code and resend the request or use WebWalker.I don't see any reason for it to cause you script to freeze unless when it fails it goes into an infinite loop, but that should be fixable with the check I mentioned before.
  2. @Einstein Thanks for your answer.Very detailed and it addressed everything in my question and then some
  3. Anyone getting error 500 & 503 when clicking on your notifications and creating new topics? PS: The topic still gets created even with the error.
  4. Is there any difference between searching for items/NPS with String parameter vs ID? I was thinking that maybe search via string requires more calls and so more CPU usage. Should I search for an item via string first and store its ID. Than use id search for the rest of the runtime? PS: The reason is search with String first is that Strings don't really change while Jagex did changes IDs of items/NPCs before.
  5. I'm a complete f**ing idiot. abcUtil.selectNextTarget() works fine, i was just an idiot and using Filter_AcceptOnce instead of a lambda expression. Filter_AcceptOnce stops on the first item it finds that matches the criteria. So I was always passing in 1 NPC into selectNextTarget(). So here is how the code should look with lamb expression: //Getting closest visible enemy enemy = NPCs.findNearest(npc->Arrays.stream(Constatnts.ENEMY_LIST).anyMatch(npc.getName()::equalsIgnoreCase) && !npc.isInCombat() && npc.isClickable()); //If we didn't find any visible enemies well look for ones off screen if(enemy == null || enemy.length == 0){ enemy = NPCs.findNearest(npc->Arrays.stream(Constatnts.ENEMY_LIST).anyMatch(npc.getName()::equalsIgnoreCase) && !npc.isInCombat()); } }//Should propably add an else here to just chill or world hop RSNPC nextTarget; if(enemy != null && enemy.length > 0) { nextTarget = (RSNPC) abcUtil.selectNextTarget(enemy); }
  6. so, how many calls would 1 bot make if he was walking for 1 min?10 or so?
  7. Makes sure they are SOCKS proxies. HTTP proxies will not work with the Tribot client.
  8. Well, I guess this will be my solution, for now ^^ //Getting closest visible enemy enemy = NPCs.findNearest(new Filter_AcceptOnce<RSNPC>() { @Override public boolean accept_(RSNPC rsnpc) { return Arrays.stream(Constatnts.ENEMY_LIST).anyMatch(rsnpc.getName()::equalsIgnoreCase) && !rsnpc.isInCombat() && rsnpc.isClickable(); } }); //If we didn't find any visible enemies well look for ones off screen if(enemy == null || enemy.length == 0){ enemy = NPCs.findNearest(new Filter_AcceptOnce<RSNPC>() { @Override public boolean accept_(RSNPC rsnpc) { return Arrays.stream(Constatnts.ENEMY_LIST).anyMatch(rsnpc.getName()::equalsIgnoreCase) && !rsnpc.isInCombat(); } }); }//Should propably add an else here to just chill or world hop RSNPC nextTarget; if(enemy != null && enemy.length > 0) { nextTarget = (RSNPC) abcUtil.selectNextTarget(enemy); }
  9. Would be nice to be able to select max distance from the closest target. Guess I'll do the distance check myself and keep requesting for a new target until it meets my parameters, kind of defeats the purpose of using it ^^.
  10. Anyone having issued with AbcUtil.selectNextTarget(); ? It seems to select targets that are way too far(off-screen) even when there are 2+ targets closer and on screen. I don't think it's my code: enemy = NPCs.findNearest(new Filter_AcceptOnce<RSNPC>() { @Override public boolean accept_(RSNPC rsnpc) { return Arrays.stream(Constatnts.ENEMY_LIST).anyMatch(rsnpc.getName()::equalsIgnoreCase) && !rsnpc.isInCombat(); } }); RSNPC nextTarget; if(enemy != null && enemy.length > 0) { nextTarget = (RSNPC) abcUtil.selectNextTarget(enemy); }
  11. If you log in you can see that it's based on usage. 100min = $10 and so on...
  12. Do we still need to add sleep inside out waitConditon loops? I think I read somewhere on the forum that is it now build in, but I could not find it again. Example: Timing.waitCondition(()->{ General.sleep(300, 500);//DO WE NEED THIS? return someCheck(); },General.random(5000, 10000));
  13. I will be making a combat script. And some stuff will be handled by other threads. The big one is monitoring health and eating. I have a good idea on how I am going to share the mouse, I was just hoping that tribot has some build in method for it. But I guess ill have to write it from the ground up
  14. Is there any build in a method that restricts threads from using the in-game mouse or do I need to write one myself?
  15. I don't think is the skill you bot, but where you train/bot it.
×
×
  • Create New...