Movement - Reetus/ClassicAssist GitHub Wiki

ClassicAssist Macro Commands

Generated on 1/5/2025 6:50:16 AM
Version: 4.5.1+b51c2255947841746a3ef6c844a7f313392177c9

Movement

Follow

Method Signature:

Void Follow(System.Object)

Parameters

  • obj: An entity serial in integer or hex format, or an alias string such as "self". (Optional)

Description:

Instructs ClassicUO to follow the specified alias/serial, supply no parameter to cancel

Example:

if FindObject('enemy'):
 Follow('enemy')
 Attack('enemy')
else:
 Follow() # stop following
Pause(1000)  

Following

Method Signature:

Boolean Following()

Description:

Returns True if currently following a target

Example:

if not Following():
 Follow('enemy')  

Pathfind

Method Signature:

Boolean Pathfind(System.Object)

Parameters

  • obj: An entity serial in integer or hex format, or an alias string such as "self".

Description:

Requests client to pathfind to given coordinates / entity

Example:

#Pathfind to coordinates
Pathfind(1438, 1630, 20)

#Pathfind to entity
SetEnemy(0x3c9)
Pathfind('enemy')

# Cancel pathfind in progress
Pathfind(-1)  

Pathfind

Method Signature:

Boolean Pathfind(Int32, Int32, Int32, Boolean)

Parameters

  • x: X Coordinate.
  • y: Y Coordinate.
  • z: Z Coordinate.
  • checkdistance: Not specified - See description for usage. (Optional)

Description:

Requests client to pathfind to given coordinates / entity

Example:

#Pathfind to coordinates
Pathfind(1438, 1630, 20)

#Pathfind to entity
SetEnemy(0x3c9)
Pathfind('enemy')

# Cancel pathfind in progress
Pathfind(-1)  

Pathfinding

Method Signature:

Boolean Pathfinding()

Description:

Returns True if ClassicUO is currently pathfinding

Example:

Pathfind('enemy')
Pause(25) # there is a delay between calling Pathfind() and Pathfinding() being True

while Pathfinding():
 Pause(50)
 
HeadMsg("die scum", "self")  

Run

Method Signature:

Boolean Run(System.String)

Parameters

  • direction: Direction, ie "West". See Also: Direction

Description:

Run in the given direction.

Example:

Run("east")  

SetForceWalk

Method Signature:

Void SetForceWalk(Boolean)

Description:

Set force walk, True or False

Example:

SetForceWalk(True)  

ToggleForceWalk

Method Signature:

Void ToggleForceWalk()

Description:

Toggle Force Walk

Example:

ToggleForceWalk()  

Turn

Method Signature:

Void Turn(System.String)

Parameters

  • direction: Direction, ie "West". See Also: Direction

Description:

Turn in the given direction.

Example:

Turn("east")  

Walk

Method Signature:

Boolean Walk(System.String)

Parameters

  • direction: Direction, ie "West".

Description:

Walk in the given direction.

Example:

Walk("east")  

Types

Direction

  • North
  • Northeast
  • East
  • Southeast
  • South
  • Southwest
  • West
  • Northwest
  • Invalid