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

Sell OSRS Gold
Sign in to follow this  
PoorBob

How the TRiBot client handles random events.

Recommended Posts

To preface, I am not here to complain that certain random events have remained unsolved for the past ~3 weeks.

 

It was inevitable that TRiLeZ would get too busy to put in the time to constantly update the client for every change that Jagex makes to stop us botters. Random events affect every botter, and at the moment we are forced to run the TRiBot client's solver, or disable all client solving.

Instead of making random solving an open-source procedure, I propose that within the client, or the script itself, there be an option to disable certain random event solvers, such as:

import org.tribot.api2007.Randoms;...Randoms.Genie = {insert Genie solver here.}

If there were no Randoms declared, it would simply use the default client solver.

The same idea could be implemented within the client interface. 
[New Button: Randoms]
Pull down menu, shows all the random events. Option to set to default or pick new source (script to be ran in case of that specific random).

This would allow the community to help the community, in the same way that scripters don't monopolize script ideas, it would make sense that TRiLez allow the community to solve random events in his absence. 

Edited by PoorBob

Share this post


Link to post
Share on other sites

Well as the other thread was locked, I'll make my post here.

 

Yes please, please, please give us either access to the code of the randoms so we can modify it, or let us disable specific randoms (FROG for one).. So we can just handle them ourselves when there are issues.

Share this post


Link to post
Share on other sites

Please fix the randoms.. everyone is going to leave soon. As a business major, this site is being very unprofessional by not giving an official statement as to why simple randoms are taking weeks to fix. I will be doing business with someone else shortly if this persists. Step your game up or lose your business to a competitor. All I want is an official statement saying you're busy with finals or something. If that's too much to ask for then goodbye.

Share this post


Link to post
Share on other sites

I haven't tested this, but I have an inkling that using the following might let you use your own to solve randoms or log out during specific randoms:

//Use the onPause() method to call some code before TRiBot random solver takes effectonPause() {   if(frogRandomNPCsFound()) {       frogSolver(); //code your own solver, or just log out with broken randoms   } else {   if(mazeRandomGuyInArea()) { //not sure how you'd tell it was maze random        logout();   }   }}

You can also use the onResume() method to enact code after randoms before continuing your main code.

 

However, an easier way to do this would be great! I would also support a drop down menu in the client itself that allows users to select which randoms to solve.

Edited by abibot

Share this post


Link to post
Share on other sites

I haven't tested this, but I have an inkling that using the following might let you use your own to solve randoms or log out during specific randoms:

//Use the onPause() method to call some code before TRiBot random solver takes effectonPause() {   if(frogRandomNPCsFound()) {       frogSolver(); //code your own solver, or just log out with broken randoms   } else {   if(mazeRandomGuyInArea()) { //not sure how you'd tell it was maze random        logout();   }   }}

You can also use the onResume() method to enact code after randoms before continuing your main code.

 

However, an easier way to do this would be great! I would also support a drop down menu in the client itself that allows users to select which randoms to solve.

 

As far as I know there is no onResume() method in the API, would love for you to prove me wrong though. Or will it look for one in our code and automatically use it?

Share this post


Link to post
Share on other sites

https://tribot.org/doc/org/tribot/script/interfaces/Pausing.html#onResume()

 

 

I'm pulling my answers from these threads:

https://tribot.org/forums/index.php?/topic/9050-doing-things-when-a-random-happens/

https://tribot.org/forums/index.php?/topic/11082-how-to-make-your-script-pause-when-a-random-happens/

 

I haven't actually been able to test it in one of my scripts.. I need to get a random event. But this is what I think is the answer, implement Pausing.

import org.tribot.script.Script;import org.tribot.script.interfaces.Pausing;public class Test extends Script implements Pausing {	@Override	public void onPause() {		//WHAT TO DO WHEN PAUSING SCRIPT BEFORE RANDOM			}	@Override	public void onResume() {		//WHAT TO DO WHEN RESUMING SCRIPT AFTER RANDOM			}	@Override	public void run() {		//MAIN METHOD	}}
Edited by abibot

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Our picks

    • Over the past few months, I’ve been working diligently on a new project - TRiBot X. Everything has been written from the ground up, with all of the best practices of software engineering. Every aspect of TRiBot has been re-imagined to support three main goals: flexibility, useability, and reliability.
        • Like
      • 31 replies
    • Come give us feedback on the next version of TRiBot!
        • Thanks
        • Like
      • 74 replies
    • TRiBot is looking to improve a lot of its customer relationship management, customer on boarding process, customer experience, design elements, community engagement and pretty much everything else you can imagine when it comes to marketing.

      Our goal: To ensure that the marketing done TRULY reflects the experience and does not shine an inaccurate light on what TRiBot is lacking in.

      So I ask, what do you love about TRiBot and what do you hate about TRiBot? What does O S Bot, Rune M8, PowR Bot and Dre amBot do better? (yes I purposely didn't spell it right 😂).

      Love, 

      RileyZ
        • Like
      • 23 replies
    • Over the last three weeks, I've been working on upgrading our server infrastructure. It's finally ready and is now live!

      Why?

      Increased reliability - less server errors


      Increased availability - less downtime


      Increased security - keeping us and you secure


      Increased capacity - ability to serve you better


      Increased speed - less waiting for things to load


      Faster development - server and service updates will come faster


      What are the changes?

      Move from a single AWS EC2 instance to AWS ECS (Elastic Container Service)


      Distributed computing


      Load balancing


      Git management of server files and filesystem


      Redis caching


      How?

      AWS ECS (with 10 EC2 instances)


      AWS ElastiCache (Redis)


      AWS Load Balancing


      AWS EFS (Elastic file system)


      Please bare with us as I continue to tune the server for maximum performance. Slow loading speeds may occur temporarily. I thank everyone for their patience.

      Please post on this thread if you experience any issues other than slow loading times.
        • Like
      • 51 replies
    • This release will:

      Fix prayers and world hopper API (Thanks @JoeDezzy1 and @erickho123)


      Improve banking API (Thanks @Encoded)


      Adds methods for returning and using Java Lists, rather than arrays


      Slightly randomizes some hardcoded behaviour


      Removes sleeps from waitConditions; the efficiency saving potential is negligible in these use-cases, therefore cleaner code is preferable


      Other back-end improvements





      Note: If you are using LG, please restart both the RS client and TRiBot.
        • Sad
        • Haha
        • Thanks
        • Like
      • 90 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...