What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Detecting if the end of a profile is reached.

SkyHigh

Member
Joined
Apr 15, 2010
Messages
396
Reaction score
4
How would I do such a thing?
Run a method at the end of a profile.
 
I would like to have one of these too, maybe something that writes "End of route reached" in the log or something :)

- Viggo
 
How about the bot moves to the nearest inn or uses its HS so you can accumulate some lovely Rested XP.
 
Untested but should work.
Code:
static public bool reachedEndOfProfile {get{
            if (ProfileManager.CurrentProfile.GrindArea.CurrentHotSpot == ProfileManager.CurrentProfile.GrindArea.LastHotSpot)
                    return true;
                else
                    return false;}}
 
Back
Top