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

Solution Piety

gaucho10

New Member
Joined
Oct 29, 2014
Messages
1
Reaction score
0
Hello community, someone could implement BasicGrindBot plugin that when you reach Piety in explorationcompletebehavior1 I have an option to stop and start the bot ??

Piety would be to target time.
 
You don't need a plugin to do this really, just add the following code inside the Tick() function in ExampleRoutine, under the check for IsInGame:
Code:
            if (LokiPoe.CurrentWorldArea.Name == "The Lunaris Temple Level 3")
            {
                if (LokiPoe.ObjectManager.GetObjectsByName("Piety") != null)
                {
                    Log.InfoFormat(
                        "[ExampleRoutine] Now stopping the bot because Piety was detected. TimeInInstance: {0}",
                        AreaStateCache.Current.TimeInInstance);
                    BotManager.Stop();
                }
            }

The area check is to avoid stopping the bot in her other encounters.
 
You don't need a plugin to do this really, just add the following code inside the Tick() function in ExampleRoutine, under the check for IsInGame:
Code:
            if (LokiPoe.CurrentWorldArea.Name == "The Lunaris Temple Level 3")
            {
                if (LokiPoe.ObjectManager.GetObjectsByName("Piety") != null)
                {
                    Log.InfoFormat(
                        "[ExampleRoutine] Now stopping the bot because Piety was detected. TimeInInstance: {0}",
                        AreaStateCache.Current.TimeInInstance);
                    BotManager.Stop();
                }
            }

The area check is to avoid stopping the bot in her other encounters.

Treid getting this done but i just broke it, it seems. could u copy paste ur code ? or upload it
 
Back
Top