Skip to content

Commit

Permalink
ai
Browse files Browse the repository at this point in the history
  • Loading branch information
jeannsebold6666 committed Jul 30, 2024
1 parent a8ab0d4 commit c4e2b8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ClassicUO.Client/Dust765/AIBot/Automation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,16 @@ public static void Initialize()

public static void Toggle()
{
GameActions.Print( World.Player, String.Format( "5x:{0}abled", ( Automation.IsEnabled = !Automation.IsEnabled ) == true ? "En" : "Dis" ), (ushort)RandomHelper.GetValue( 0, 256 ) );
GameActions.Print( World.Player, String.Format( "AIBOT is: {0}abled", ( Automation.IsEnabled = !Automation.IsEnabled ) == true ? "En" : "Dis" ), (ushort)RandomHelper.GetValue( 0, 256 ) );
}

public static void Update( )
{
DateTime dateTime = DateTime.Now;


if ( !IsEnabled )
return;
if ( _timer <= dateTime)
if ( _timer <= DateTime.Now)
{
Automation.Active = Automation.Bot.Invoke();
}
Expand Down

0 comments on commit c4e2b8b

Please sign in to comment.