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

Einstein Area Builder [Scripting Tool]

Recommended Posts

WeS6wem.png

 

Creating areas manually by reading the debug x4Nmtke.png and typing it in your code for each and every tile is tedious, time consuming and error prone.

Here is a free tool that will help you, the scripter, to instantaneously create areas by 'drawing' them on the screen. Just use the mouse to select the tiles that will border your area. Everything else is done automatically. It can't get any easier!

 

  • Nearby tiles are drawn, so you can easily tell where a tile begins and where it ends.
  • The mouse hovering tile is highlighted, making miss clicking almost impossible.
  • Add tiles to your area by clicking them / pressing spacebar
  • Remove tiles from your area by clicking them again / pressing spacebar
  • The area is automatically updated and copied to the system clipboard with every new tile selected/deselected, all you have to do is just paste it after you're done 'drawing' the area.

 

 

 

How to use this tool

Select the borders of the area by clicking tiles with the middle mouse button / hover over the tile and press spacebar.

Click the tile or press space to select it.

rc1gnsL.png

 

Click it again or press space to remove it.

8DyrDHv.png

 

Press this button to clear the whole area, and start making a new one:

v0Qr2Y1.png

 

Every time you add or remove a tile, the area is automatically updated and copied to the system clipboard. After you are done building your area, go to your IDE and paste it into the code. That's it.

  • The new area is automatically named "unnamed_area_ID" - where ID is a randomly picked four digit number.
  • The pasted clipboard includes a line separator, grabbed from the system properties, which means that your cursor will land on the next line, preventing the IDE from automatically scrolling to the right end of the page.

Select the name by double clicking it, and then re-name it to something more descriptive.

jVjzlsC.pngKHgJg2A.png

9KH3RUe.png

 

 

By using this tool I managed to map the entire Woodcutting Guild within minutes, with pinpoint accuracy - not even a single tile misplaced.

 

hlNuxHG.png

 

 

 

A note about the API

8k2RdgE.png

When using this constructor (that takes an array of tiles as its only argument), the north and east tiles are not included in your area. This problem is very easy to avoid since the script provides a lot of visual ques, reflecting the status of your area. If your area is not built exactly as you intended, simply click the misplaced tiles to remove them, and try again.

dnG7xDr.png

 

 

 

Have fun

https://tribot.org/repository/script/id/2795

 

Edited by Einstein
  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites

Was literally just about to add black knight's fortress to my Quester and wanted to add a check that verified the player was in the castle, but didn't have the time to grab all the tiles. This solves that! You beauty.

And just like that ❤️

iUieR2k.png

Edited by HeyImJamie

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.


  • Our picks

    • This update features:

      Fixed broken hooks from today's update


      Fix wilderness level with RuneLite (Thanks @Todd)


      Add support for Kotlin .class files in scripts (Thanks @wastedbro)


      Overhaul Inventory API (Thanks @wastedbro)


      Add List support for common methods


      Change method grouping to make more sense (by functionality)


      Refactor methods to utilize Java 8 streams instead of cumbersome loops




      Recognize chatbox minimization (Thanks @JoeDezzy1)


      Fix Screen#isInViewport when NPC chat is open (Thanks @JoeDezzy1)


      Fix login bot bugs (Thanks @erickho123)


      Fix hint arrow return values (Thanks @Encoded)


      Fix depositAllExcept functionality (Thanks @wastedbro)


      Change containing box interface bound and adjust for Y values (Thanks @erickho123)
      • 151 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.
      • 90 replies
    • This release will:

      Add new internal framework for capturing exceptions


      Fix issue with not selecting the last column in world hopper (Thanks @Todd)


      Add a message about pin usage in Banking#openBank (Thanks @Todd)


      Disable the firewall by default (Thanks @Todd)


      Fix handling of the welcome screen after login (Thanks @Encoded)


      Fix wrong amount bank withdrawal (Thanks @Encoded)


      Fix Screen#isInViewport


      Fix Game#isInViewport (Thanks @Encoded)


      Call onBreakEnd for ListenerManager Breaking Listeners (Thanks @Encoded)


      Fix Prayer#getPrayerPoints NumberFormatException (Thanks @JoeDezzy1)



      Note: If you are using LG, please restart both the RS client and TRiBot.
      • 28 replies
    • This release will:

      Fix LG for both OSBuddy and RuneLite


      Fix issue where the resizable client isn't able to be made smaller (Thanks @JoeDezzy1)


      Fix detection of the logout game tab when resizable mode and side panels are enabled (Thanks @JoeDezzy1)


      Add initial support for Sentry to allow us to identify and easily debug exceptions happening with all TRiBot users


      Add methods to determine if the bank is actually loaded, and not just the overarching interface (Thanks @wastedbro)



      Upcoming updates:

      Improved CLI support


      Full Sentry support


      Much more
        • Like
      • 64 replies
    • This release will:

      Fix NPE in Camera API (Thanks @wastedbro)


      Update deposit box interface ids (Thanks @Encoded)


      Add various bank methods (Thanks @wastedbro)


      Banking#getWithdrawXQuantity


      Banking#getDefaultWithdrawQuantity


      Banking#arePlaceholdersOn




      Fix resizeable minimap bug (Thanks @wastedbro)


      Remove Java 8 requirement


      Please note: TRiBot is not yet fully compatible with Java 10+




      Fix the break handler issues by ensuring the break handler thread never gets paused


      Fix broken settings hooks



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
      • 68 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...