Log in

View Full Version : Combat MiniMap Help



bambe
06-29-2012, 12:35 PM
I scrapped my old fight script and wrote a new one using parts from different tuts, Its working really well and if it cant find a colour on screen it moves to a yellow dot on the minimap and carrys on.

My problem is because its a RSPS i dont think animation works or any of the infight codes work so i can never tell if I or someone else is in a fight.

Is it possible to use the white dot on the minimap next to a yellow dot of an npc to show they are in combat and if so walk to another yellow dot instead?

I have a feeling DTM's wont work either

I need to ignore the white dot in the middle of the minimap (me) and search out from the center untill i find a yellow dot and if i find a white dot within a certain distance of the yellow dot then keep going untill i get to the next yellow dot.

but i have no idea how i would write the code.

can anyone help, if you understand what i mean :)

thanks

putonajonny
06-29-2012, 01:23 PM
Use GetMiniMapDots, you can set it to only find yellow dots, then use SortTPAFrom to sort them so the first one is the one nearest to you, then use Distance to find the distance from you, if it is stood next to you it will probably be within 10 pixels

bambe
06-29-2012, 02:21 PM
would you mind showing me an example because im not sure how to do that