-
-
Notifications
You must be signed in to change notification settings - Fork 54
Target
Generated on 3/10/2026 3:07:34 AM
Version: 5.0.1+cb2bfafc8ca61e99043cebfbd4c89fcbe562551b
Method Signature:
Void CancelTarget()
Description:
Cancel an existing cursor/target.
Example:
CancelTarget() Method Signature:
Void ClearTargetQueue()
Description:
Clears the target queue when queue last target/target self is enabled.
Example:
ClearTargetQueue() Method Signature:
Boolean GetEnemy(System.Collections.Generic.IEnumerable`1[System.String], System.String, System.String, System.String, Int32)
- notorieties: . See Also: TargetNotoriety
- bodytype: . (Optional) See Also: TargetBodyType
- distance: . (Optional) See Also: TargetDistance
- infliction: . (Optional) See Also: TargetInfliction
- maxdistance: Distance. (Optional)
Description:
Get mobile and set enemy alias.
Example:
#get murderer
GetEnemy(['Murderer'])
#get closest murderer, any body type
GetEnemy(['Murderer'], 'Any', 'Closest')
#get next any notoriety, humanoid or transformation - unmounted
GetEnemy(['Any'], 'Both', 'Next', 'Unmounted') Method Signature:
Boolean GetFriend(System.Collections.Generic.IEnumerable`1[System.String], System.String, System.String, System.String, Int32)
- notorieties: . See Also: TargetNotoriety
- bodytype: . (Optional) See Also: TargetBodyType
- distance: . (Optional) See Also: TargetDistance
- infliction: . (Optional) See Also: TargetInfliction
- maxdistance: Distance. (Optional)
Description:
Get mobile and set friend alias.
Example:
GetFriend(["Murderer"]) Method Signature:
Boolean GetFriendListOnly(System.String, System.String, System.String, Int32)
- distance: . (Optional) See Also: TargetDistance
- targetinfliction: . (Optional) See Also: TargetInfliction
- bodytype: . (Optional) See Also: TargetBodyType
- maxdistance: Distance. (Optional)
Description:
Get friend that only exists in the friends list, parameter distance 'Closest'/'Nearest'/'Next'
Example:
GetFriendListOnly("Closest") Method Signature:
Void SetEnemy(System.Object)
- obj: An entity serial in integer or hex format, or an alias string such as "self".
Description:
Sets the enemy to the given serial/alias.
Example:
SetEnemy("mount") Method Signature:
Void SetFriend(System.Object)
- obj: An entity serial in integer or hex format, or an alias string such as "self".
Description:
Sets the friend to the given serial/alias.
Example:
SetFriend("mount") Method Signature:
Void SetLastTarget(System.Object)
- obj: An entity serial in integer or hex format, or an alias string such as "self".
Description:
Sets the last target to the given serial/alias.
Example:
SetLastTarget("mount") Method Signature:
Void Target(System.Object, Boolean, Boolean, Int32)
- obj: An entity serial in integer or hex format, or an alias string such as "self".
- checkrange: Not specified - See description for usage. (Optional)
- usequeue: Not specified - See description for usage. (Optional)
- senderserial: Not specified - See description for usage. (Optional)
Description:
Targets the given object (parameter can be serial or alias).
Example:
Target("self") Method Signature:
Void TargetByResource(System.Object, System.String)
- toolobj: An entity serial in integer or hex format, or an alias string such as "self".
- resourcetype: String value - See description for usage. See Also: TargetResourceType
Description:
Uses tool and targets specified resource type (Requires server support (OSI / ServUO))
Example:
TargetByResource('pickaxe', 'Ore') Method Signature:
Boolean TargetExists(System.String)
- targetexiststype: Target type - "harmful", "beneficial", or "neutral". (Optional) See Also: TargetExistsType
Description:
Returns true if a target cursor is displayed and the notoriety matches the supplied value, defaults to 'Any', options are 'Any', 'Beneficial', 'Harmful' or 'Neutral'
Example:
if TargetExists("Harmful"): Method Signature:
Void TargetGround(System.Object, Int32, Int32)
- obj: An entity serial in integer or hex format, or an alias string such as "self".
- hue: Item Hue or -1 for any. (Optional)
- range: Range, ie 10. (Optional)
Description:
Target the specified type on the ground, optional parameters for hue and distance.
Example:
TargetGround(0x190, -1, 10) Method Signature:
Void TargetTileOffset(Int32, Int32, Int32, Int32)
- xoffset: X Coordinate offset.
- yoffset: Y Coordinate offset.
- zoffset: Y Coordinate offset.
- itemid: ItemID / Graphic such as 0x3db. (Optional)
Description:
Targets the tile at the given offsets relative to the player
Example:
#Targets the tile at the current Y coordinate + 1
TargetTileOffset(0, 1, 0) Method Signature:
Void TargetTileOffsetResource(Int32, Int32, Int32, Int32)
- xoffset: X Coordinate offset.
- yoffset: Y Coordinate offset.
- zoffset: Y Coordinate offset.
- itemid: ItemID / Graphic such as 0x3db. (Optional)
Description:
Targets the tile at the given offsets relative to the player (automatically targeting trees/cave tiles/water if present)
Example:
TargetTileOffsetResource(0, -1, 0) Method Signature:
Void TargetTileRelative(System.Object, Int32, Boolean, Int32)
- obj: An entity serial in integer or hex format, or an alias string such as "self".
- distance: Integer value - See description for usage.
- reverse: True/False value, see description for usage. (Optional)
- itemid: ItemID / Graphic such as 0x3db. (Optional)
Description:
Target tile the given distance relative to the specified alias/serial, optional boolean for reverse mode.
Example:
TargetTileRelative("self", 1, False) Method Signature:
Void TargetType(System.Object, Int32, Int32)
- obj: An entity serial in integer or hex format, or an alias string such as "self".
- hue: Item Hue or -1 for any. (Optional)
- range: Range, ie 10. (Optional)
Description:
Target specified type in player backpack, optional parameters for hue and search level.
Example:
TargetType(0xff, 0, 3) Method Signature:
Void TargetXYZ(Int32, Int32, Int32, Int32)
- x: X Coordinate.
- y: Y Coordinate.
- z: Z Coordinate.
- itemid: ItemID / Graphic such as 0x3db. (Optional)
Description:
Targets the ground at the given coordinates.
Example:
TargetXYZ(1000, 1000, 0) Method Signature:
Boolean WaitForTarget(Int32)
- timeout: Timeout specified in milliseconds. (Optional)
Description:
Wait for target packet from server, optional timeout parameter (default 5000 milliseconds).
Example:
WaitForTarget(5000) Method Signature:
Boolean WaitForTargetOrFizzle(Int32)
- timeout: Timeout specified in milliseconds.
Description:
Waits the specified timeout for target cursor whilst returning false if the spell is fizzled / uncastable beforehand.
Example:
WaitForTargetOrFizzle(5000) Method Signature:
Boolean WaitingForTarget()
Description:
Returns true whenever the core is internally waiting for a server target
Example:
if WaitingForTarget(): - Any
- Humanoid
- Transformation
- Both
- Next
- Nearest
- Closest
- Previous
- Any
- Beneficial
- Harmful
- Neutral
- Any
- Lowest
- Poisoned
- Mortaled
- Paralyzed
- Dead
- Unmounted
- None
- Innocent
- Criminal
- Enemy
- Murderer
- Friend
- Gray
- Any
- Ore
- Sand
- Wood
- Graves
- Red_Mushrooms