Jump to content
Sign in to follow this  
TRiLeZ

New Entity Clicking API

Recommended Posts

I've altered the current clicking methods, as well as added new ones.

Here's a basic run-down of entity clicking (more focused on ScreenModels):

		ScreenModel[] models = ScreenModels.find(4224451L);		if (models.length > 0) {			/*			 * Clicks the screen model without choosing an option.			 */			models[0].click(); // NEW			/*			 * Clicks the screen model and chooses the 'Attack' option.			 */			models[0].click("Attack");			/*			 * Clicks the screen model and chooses the 'Attack' option. Point			 * randomness is x plus zero to two, y plus zero to three. Point			 * offset is x plus one, y plus four.			 */			models[0].click("Attack", new Point(2, 3), new Point(1, 4));		}		/*		 * Clicks the entity without choosing an option.		 */		Clicking.click(ScreenModels.find(4224451L)); // NEW		/*		 * Same as above, except an ArrayIndexOutOfBoundsException is possible.		 */		Clicking.click(ScreenModels.find(4224451L)[0]); // NEW		/*		 * Clicks the entity and chooses the 'Attack' option.		 */		Clicking.click("Attack", ScreenModels.find(4224451L)); // NEW		/*		 * Clicks all the entities without choosing an option. Waits 100ms after		 * a successful click, and an extra 200ms (which is mandatory).		 */		Clicking.clickAll(100, 200, ScreenModels.find(4224451L)); // NEW		/*		 * Clicks all the entities and chooses the 'Attack' option. Waits 100ms		 * after a successful click, and an extra 200ms (which is mandatory).		 */		Clicking.clickAll("Attack", 100, 200, ScreenModels.find(4224451L)); // NEW		/*		 * These methods also work for inventory/bank/equipment/etc items, and		 * minimap icons...		 */		Clicking.click("Eat", Inventory.find(54320)); // NEW

Share this post


Link to post
Share on other sites

Nice TRileZ :D especially the last one i really like :)

Will make most scripts alot easier to make !

Are those added in the new version of TRiBot ? any eta for the version ?

Thanks. This will probably be released on Tuesday.

Sounds great :) !

I'll be back this saturday so hopefully can create something easy like an AIO Fletcher :) !

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Our picks

    • This update will:

      Fix GE inventory item positioning bug


      Fix broken object hooks
      • 23 replies
    • This release will:

      Fix some ClosedChannelException bug


      Fix bug in RSObject#getAllTiles


      Add game tab support for "Kourend Favour"
      • 15 replies
    • This release will:

      Fix Settings UI placement bug


      Fix game object location bug


      Fix small layout bug making the client shift up and down


      Fix client crashing bug where loading the client with a small display area will cause the client to crash


      Fix annoying Linux bug relating to painting events and peers


      Fix settings saving bug where settings are saved to disk more often than they should


      Fix RSInterface#isBeingDrawn bug affecting a limited amount of people


      Drop Java 1.7 bytecode version for 1.8


      Important: Since the downloadable RS client uses Java 7, it will no longer be compatible with Looking Glass. To make up for this, we will add support for using other clients such as RuneLite (at a later date).


      This change was necessary to allow us to use Java 8 syntax. It also paves the way for Java 9/10/11 support.
      • 40 replies
    • This update will:

      Fix the RSMenuNode bug which also fixes the bug with bank opening


      Fix the incorrect object positions bug


      Fix and re-enable the LG Objects API Accelerator


      Fix the RSObject#getAllTiles bug
      • 22 replies
    • Try our development release by checking "Development Release" on the TRiBot Loader. Note that these new features are currently in beta.

      This release features:

      Re-sizable mode support for both LG and the regular client


      Slightly improved login bot


      Removed final access modifiers from API classes


      Added RSServer hook wrapper to get the client's cached list of server/world info


      [NEW] Bug fix for intelligent banking


      [NEW] Improvement to the stability of LG over time


      [NEW] Vastly improved the reliability and speed of Screen#getColorAt on both LG and the regular client


      [NEW] Fix LG login problems


      [NEW] Fixed re-sizable mode container bug


      [NEW] Fixed re-sizable mode mouse bug


      [NEW] Use of public constants in the Banking API


      [NEW] Use of other various constants such as Projection#NULL_PT and Screen#EMPTY_COLOR



      More features to come very soon!

      Please test it and let us know here if there are any new bugs introduced in this release.
      • 12 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×