September 4, 20178 yr 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: Varrock (showing both sides of a wall): Edgeville: Hopefully my valued gray names enjoy the hour or so I spent into this.
September 4, 20178 yr what sort of checks did you do to test if a tile would be a valid addition to the area?
September 4, 20178 yr Author 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.
September 4, 20178 yr All these stoves are facing the same way, I wanna see an example in lumbridge castle
September 4, 20178 yr 2 minutes ago, Tom said: All these stoves are facing the same way, I wanna see an example in lumbridge castle Here
September 4, 20178 yr Author 2 minutes ago, Tom said: All these stoves are facing the same way, I wanna see an example in lumbridge castle They aren't, it's just the angle. Al-Kharid faces east and Varrock faces north.
September 4, 20178 yr https://github.com/Lem0ns/QuantumAPI/blob/master/src/rip/quantum/api/QuantumMap.java#L249-L299 Finds suitable ends for entities based on map data. Might be of use for this as well.
September 4, 20178 yr Author 9 minutes ago, Lemons said: https://github.com/Lem0ns/QuantumAPI/blob/master/src/rip/quantum/api/QuantumMap.java#L249-L299 Finds suitable ends for entities based on map data. Might be of use for this as well. Is this your new API?
September 4, 20178 yr Just now, Alek said: Is this your new API? Yes, its an attempt to make up for the atrocity the other one was lol.
September 4, 20178 yr Author 1 minute ago, Lemons said: Yes, its an attempt to make up for the atrocity the other one was lol. 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!
September 4, 20178 yr 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 September 4, 20178 yr by Lemons
September 4, 20178 yr 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! When someone unlocks SIV rank
Create an account or sign in to comment