Skip to content

Movement

Reetus edited this page Sep 2, 2024 · 278 revisions

ClassicAssist Macro Commands

Generated on 9/2/2024 10:46:49 PM
Version: 4.425.19+0c26057dbb7e7e285dbbb7378d1639f9d9112e29

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(Int32, Int32, Int32)

Parameters

  • x: X Coordinate.
  • y: Y Coordinate.
  • z: Z Coordinate.

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(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)  

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
Clone this wiki locally