Inrego
New Member
- Joined
- Feb 7, 2010
- Messages
- 2,765
- Reaction score
- 71
I bet all you profile devs tried it. You fly around making all the hotspots for a profile, and then when you test it, the bot is flying through a tree or doing something else stupid which could be fixed by moving that single hotspot just a little bit.
Anyway, I ran into that problem today and thought I'd solve it.
Copy this into HBConsole, and it will write the coordinates within distance (25) in the log. It will also write them in the same order as they're put in the profile, along with numbering them.
This is an example output:
Then I know to change the 4th hotspot in my profile. (double-check to be safe that the coordinates match)
Hope you like it
Anyway, I ran into that problem today and thought I'd solve it.
PHP:
int distance = 25;
var hotspots = Styx.Logic.Profiles.ProfileManager.CurrentProfile.HotspotManager.Hotspots;
for (int i=0; i<hotspots.Count; i++)
{
if (Me.Location.Distance(hotspots[i]) <= distance)
Log("[{0}]: {1} Distance {2}", i+1, hotspots[i], hotspots[i].Distance(Me.Location));
}
This is an example output:
Code:
[4]: <139.7276, 1098.811, -0.02344506> Distance 5.568605
Hope you like it
