fagexjuck Posted October 12, 2019 Posted October 12, 2019 How do I force my bot to move to a certain range on the map? Area (x1 y1 x2 y2) What does this mean? its only 2 points when a square has 4 points
Charlotte Posted October 12, 2019 Posted October 12, 2019 Constructs a rectangular area using x and y coordinates from two separate positions. https://osbot.org/api/org/osbot/rs07/api/Walking.html#webWalk-org.osbot.rs07.api.map.Area...- 2
IDontEB Posted October 12, 2019 Posted October 12, 2019 Best tool for creating scripts: https://explv.github.io/ 2
Gunman Posted October 12, 2019 Posted October 12, 2019 7 hours ago, fagexjuck said: How do I force my bot to move to a certain range on the map? Area (x1 y1 x2 y2) What does this mean? its only 2 points when a square has 4 points It does have 4 points. Imagine when you set those 2 points they both shoot out lines horizontally and vertically. Then Area will grab where the lines intersect and set the 2 other points where x1 y1 x2 y2 intersect. And boom! Your square/rectangle area has been created.
fagexjuck Posted October 12, 2019 Author Posted October 12, 2019 Can you guys elaborate further so I can visualize. I like compiling code in my head. If I have a x1(horizontal)(cut H in half) and y1 (vertical) (cut V in half) lets say x1 is south west of of grand exchange and it creates a "infinite" horizontal line up to x2? _______________________x2,y2 | | | | | | x1,y1----------------- like this?