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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[PLUGIN] No move detector

Tony recommended this plugin for my combat stuck:

my profile always produces a combat stuck at these coords:

Approaching "Teepflanze" at X="-848.0989" Y="533.5608" Z="150.5744"
[H+A] [Herb + mining] Valley of the Four winds - Insane FARM_FIXED

nearby i also have a stuck where my bot just stops farming.
manually mounting will continue...

but a restart via this plugin + hbrelog doesn't help. still standing there.

can anyone help? maybe i can blacklist such areas?
 
If I use this and it spots that my character havent moved for 10-15 minutes, it will log off and everything but when my relog starts HB up again it will just get stuck on max sessions all night. So yeah
 
Hey this is a great plugin :) Id like tor reduce the time from 15 to 2 minutes however. What code do I change?

Cheers!
 
Possible to get this more Customized? Set the Time or Turn of the Close all function. Maybe implement to force dismount if no movement?
 
Hi everyone and a real thank's for your interrest.
Here is the script as I use it today.
It is a little more verbose and the useful part is all at the end of the code.
This code just stop moving and dismount but doesn't quit the game nor buddy.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;

using Styx;
using Styx.Common;
using Styx.Common.Helpers;
using Styx.CommonBot;
using Styx.CommonBot.Inventory;
using Styx.Helpers;
using Styx.Plugins;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.Pathing;

namespace HB.Plugins.NoMoveDetector
{
class NoMoveDetector : HBPlugin
{
#region Overrides of HBPlugin

public override void Initialize()
{
Styx.CommonBot.BotEvents.OnBotStart += _OnBotStart;
_init();
}
public override void Dispose()
{
Styx.CommonBot.BotEvents.OnBotStart -= _OnBotStart;
}
public override string ButtonText { get { return "---"; } }
public override bool WantButton { get { return false; } }
public override void OnButtonPress(){}
public override void Pulse(){_MainPulseProc();}
public override string Name { get { return "No Move Detector"; } }
public override string Author { get { return "cls15"; } }
public override Version Version { get { return new Version(1, 2, 0); } }

#endregion

private Stopwatch LastOK ;
private WoWPoint LastLoc;
private int nBotRestart;
private static Thread RestartThread;

private static void _RestartThread()
{
TreeRoot.Stop();
Thread.Sleep(2000);
TreeRoot.Start();
}

private void _OnBotStart(EventArgs args)
{
Logging.Write(@"[NoMoveDetector] Bot started");
LastLoc = StyxWoW.Me.Location;
LastOK.Restart();
RestartThread = new Thread(new ThreadStart(_RestartThread));
}

private void _init()
{
Logging.Write(@"[NoMoveDetector] init");
LastOK = new Stopwatch();
nBotRestart = 0;
}

private void _MainPulseProc()
{
// Must we go futher anyway?
if (!TreeRoot.IsRunning)
{
if (LastOK.ElapsedMilliseconds > 1000 * 30)
{
Logging.Write(@"[NoMoveDetector] LastPosition reseted, bot is not running (but pulse is called ???)");
LastOK.Restart();
}
return;
}

WoWPlayer Me = StyxWoW.Me;
//-----------------------------------------------------------------------------------------------
//Cancel timer if move > 10 yards is detected and then mem current position
//-----------------------------------------------------------------------------------------------
if (LastLoc.Distance(Me.Location) > 10f)
{
if (LastOK.ElapsedMilliseconds > 1000 * 30) Logging.Write(@"[NoMoveDetector] Move detected. LastPosition reseted");
LastOK.Restart();
LastLoc = Me.Location;
return;
}
//-----------------------------------------------------------------------------------------------
// Have we moved whithin last 2 mins (1000*60*2 ms)
//-----------------------------------------------------------------------------------------------
if (LastOK.ElapsedMilliseconds > 1000*60*2)
{
if (Styx.CommonBot.Frames.AuctionFrame.Instance.IsVisible || Styx.CommonBot.Frames.MailFrame.Instance.IsVisible)
{
Logging.Write(@"[NoMoveDetector] not mooving last {0} min but has open frame. LastPosition reseted", nBotRestart * 2);
LastOK.Restart();
LastLoc = Me.Location;
return;
}
if (Me.IsResting || Me.HasAura("Resurrection Sickness"))
{
LastOK.Restart();
return;
}
// ------------------------------------------------------------------------------------------------
// This is the restart routine. LastOK is a timer...
// ------------------------------------------------------------------------------------------------
nBotRestart++;
Logging.Write(@"[NoMoveDetector] not mooving last {0} min : Restarting bot...", nBotRestart * 2);
Flightor.MountHelper.Dismount();
Navigator.PlayerMover.MoveStop();
LastOK.Restart();
RestartThread.Start();

}
}
}
}
 
Hi everyone and a real thank's for your interrest.
Here is the script as I use it today.
It is a little more verbose and the useful part is all at the end of the code.
This code just stop moving and dismount but doesn't quit the game nor buddy.
Im getting a compiling error using this :(
 
Im getting a compiling error using this :(

I found a space that shouldn't be there.

Line 100
Remove the space from isvisible:
if (Styx.CommonBot.Frames.AuctionFrame.Instance.IsVis ible || Styx.CommonBot.Frames.MailFrame.Instance.IsVisible )


It seems that if the code is posted on these forums it adds a space automatically :/
 
For me, this plugin would do miracles if it would use hearthstone before restarting. Since the profiles I use start from the hearthstone I set, every time the bot would bug/stuck it would just restart the whole profile process. Hope to see this added soon.
 
Hello thank for the plugin, how i can configurate the plugin for restart in 5 mins and no move in 20 ft! thank sorry the bad english
 
Hm Unfortunately for me this doesn't work. It correctly detects the No Move situation and stops the bot, but doesn't restart it. Any idea what to do?
I'd really like this plugin because it's what I'm looking for - bot is stopping often while questing though.
 
This plugin is not in the plugin tab since the latest patch of honorbuddy.

Can someone fix it please.

Thanks.
 
Doesnt work, if the bot gets stopped for any reason, this plugin doesnt restart anymore
 
Back
Top