Jump to content

Macro Cooker - Intelligent Areas


Recommended Posts

Posted

For those of you that are familiar with my Macro Cooker script, the biggest challenge is allowing the user to select any cooking location in the game. The main obstacle was dynamically creating areas around the heat source which are desirable. This means detecting Ranges or Stoves that are inside and ensuring that your player doesn't accidentally walk outside.

Doing some shameless self-promotion, I finally came up with a nice result for my latest update. Hopefully I will be using some of the same techniques in the webwalker.

 

None of these areas are static, they are all dynamically generated:

 
Al-Kharid:
e3b9a375e21ab4aab130ada2ed082026.png

 

Varrock (showing both sides of a wall):
5ef2f17fb53928711bc59b23786fa127.png

 

Edgeville:
c5b70209aac8630edae4587989ef6bc4.png

 

Hopefully my valued gray names enjoy the hour or so I spent into this. 

  • Like 4
Posted
1 minute ago, TheWind said:

what sort of checks did you do to test if a tile would be a valid addition to the area?

I start off with a simple Area a = entity.getArea(1), grabbing all with a distance of 1 of the entity. After that I filter all reachable positions, then filtered by real distance from the position to the entity using local path finder. Once that's finished I have all the positions which are valid; these are then sorted by x/y values, first index and last index are used to create the rectangle area. 

Posted (edited)
3 minutes ago, Alek said:

I hate your wrappers like this:
https://github.com/Lem0ns/QuantumAPI/blob/master/src/rip/quantum/api/QuantumStore.java

But whats not to like about some of your solutions like the map stuff. Overall looks good!

Yeah I kinda just wrapped them all, I been removing the ones that are obviously useless slowly. I'll probably remove this class as well. I haven't released it yet for a reason hehe.

Edited by Lemons
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...