Skip to content

target

This data type represents information specific to your current target. It contains additional members for querying buff information.

Inheritance

This type inherits members from spawn.

classDiagram
  spawn <|-- target
  direction RL
  class spawn {
  }
  class target {
  }

Members

cachedbuff Aego

Returns the name of the Aego spell if the Target has one

spawn AggroHolder

Returns the target's current target.

cachedbuff Beneficial

Returns the name of the Beneficial spell if the Target has one. This will skip "player" casted buffs, but will show NPC Casted buffs and some AA buffs.

cachedbuff Brells

Returns the name of the Brells spell if the Target has one

cachedbuff Charmed

Returns the name of the Charmed spell if the Target has one

cachedbuff Clarity

Returns the name of the Clarity spell if the Target has one

cachedbuff Corrupted

Returns the name of any the Corruption spell if Target has one

cachedbuff Cursed

Returns the name of the Curse spell if Target has one

cachedbuff Crippled

Returns the name of the Cripple spell if the Target has one

cachedbuff Diseased

Returns the name of a Disease spell if the Target has one

cachedbuff Dotted

Returns the name of a DOT spell if the Target has one

cachedbuff DSed

Returns the name of the Damage Shield spell if the Target has one

cachedbuff Feared

???

cachedbuff Focus

Returns the name of the Focus spell if the Target has one

cachedbuff Growth

Returns the name of the Growth spell if the Target has one

cachedbuff Hasted

Returns the name of the Haste spell if the Target has one

cachedbuff HybridHP

Returns the name of the Hybrid HP spell if the Target has one

cachedbuff Invulnerable

???

cachedbuff Maloed

Returns the name of the Malo spell if the Target has one

float MaxMeleeTo

???

cachedbuff Mezzed

Returns the name of the Mez spell if the Target has one

int PctAggro

???

cachedbuff Poisoned

Returns the name of a Poison spell if the Target has one

cachedbuff Pred

Returns the name of the Predator spell if the Target has one

cachedbuff Regen

Returns the name of the Regen spell if the Target has one

cachedbuff RevDSed

Returns the name of the Reverse Damage Shield spell if the Target has one

cachedbuff Rooted

Returns the name of the Rooted spell if the Target has one

cachedbuff SE

Returns the name of the Spiritual Enlightenment spell if the Target has one

spawn SecondaryAggroPlayer

???

int SecondaryPctAggro

???

cachedbuff Shining

Returns the name of the Shining spell if the Target has one

cachedbuff Silenced

???

cachedbuff Skin

Returns the name of the Skin spell if the Target has one

cachedbuff Slowed

Returns the name of the Slow spell if the Target has one

cachedbuff Snared

Returns the name of the Snare spell if the Target has one

cachedbuff Strength

Returns the name of the Strength spell if the Target has one

cachedbuff SV

Returns the name of the Spiritual Vitality spell if the Target has one

cachedbuff Symbol

Returns the name of the Symbol spell if the Target has one

cachedbuff Tashed

Returns the name of the Tash spell if the Target has one

string (To String)

Same as Name
Inherited members from spawn

Inherited from spawn

Represents an in-game spawn.

Read more

int AARank

AA rank number

string AATitle

Synonym for Title (deprecated)

string ActorDef

???

bool AFK

AFK?

bool Aggressive

returns TRUE or FALSE if a mob is aggressive or not

int Animation

Current animation ID. See Animations for a list of animations.

bool Anonymous

Anonymous

bool Assist

Current Raid or Group assist target?

string AssistName

???

bool Binding

Binding wounds?

int Blind

???

body Body

Body type (see body types)

bool BodyWet

???

bool bShowHelm

???

cachedbuff Buff

???

int BuffCount

???

timestamp BuffDuration

???

bool BuffsPopulated

???

bool Buyer

Is a buyer? (ie. Buyer in the bazaar)

cachedbuff CachedBuff

Caches buff information cast on others

int CachedBuffCount

???

bool CanSplashLand

TRUE/FALSE on if a splash spell can land...

Note: This check is ONLY for line of sight to the targetindicator (red/green circle)

spell Casting

Spell, if currently casting (only accurate on yourself, not NPCs or other group members)

float CeilingHeightAtCurrLocation

???

class Class

Class

string CleanName

The "cleaned up" name

int CombatSkillTicks

???

string ConColor

Returns consider color

  • GREY
  • GREEN
  • LIGHT BLUE
  • BLUE
  • WHITE
  • YELLOW
  • RED

int ContractorID

???

int CorpseDragCount

Number of corpses being dragged

int CurrentEndurance

Current Endurance points (only updates when target/group)

int64 CurrentHPs

Current hit points

int CurrentMana

Current Mana points (only updates when target/group)

float D

Shortcut for -Z (makes Downward positive)

bool Dead

Dead?

deity Deity

Deity

string DisplayName

Name displayed in game (same as EQ's %T)

float Distance

Distance from player in (x,y)

float Distance3D

Distance from player in (x,y,z) in 3D

float DistanceN

Distance from player in Y plane (North/South)

float DistancePredict

Estimated distance in (x,y), taking into account the spawn's movement speed but not the player's

float DistanceU

Distance from player in Z plane (Up/Down)

float DistanceW

Distance from player in X plane (East/West)

float DistanceX

Distance from player in X plane

float DistanceY

Distance from player in Y plane

float DistanceZ

Distance from player in Z plane

bool Ducking

Ducking?

float E

Shortcut for -X (makes Eastward positive)

string EQLoc

Location using EQ format

int Equipment

returns a inttype, it takes numbers 0-8 or names: head chest arms wrists hands legs feet primary offhand

bool FeetWet

Feet wet/swimming?

bool Feigning

Feigning?

cachedbuff FindBuff

???

bool Fleeing

Is your target moving away from you?

float FloorZ

???

spawn Following

The spawn a player is following using /follow on - also returns your pet's target via ${Me.Pet.Following}

string Gender

Gender

bool GM

GM or Guide?

int GMRank

???

bool GroupLeader

Group leader?

string Guild

Guild name

string GuildStatus

Guild status (Leader, Officer, Member) NOTE GuildStatus is no longer present in BETA/TEST/LIVE versions and only available in UF and ROF EMU builds.

heading Heading

Heading in this direction

heading HeadingTo

Heading player must travel in to reach this spawn

heading HeadingToLoc[y, x]

Heading to the coordinates y,x from the spawn

bool HeadWet

???

float Height

Height

bool Holding

Is the spawn holding an item?

int HoldingAnimation

???

bool Hovering

Hovering?

int ID

Spawn ID

int InPvPArea

???

bool Invis[ANY|0]

Returns whether invis is in effect against specific types of creatures.

Options are:

  • ANY or 0 - ${Me.Invis[ANY]} or ${Me.Invis[0]} or ${Me.Invis}
  • NORMAL or 1 - ${Me.Invis[NORMAL]} or just ${Me.Invis[1]}
  • UNDEAD or 2 - ${Me.Invis[UNDEAD]} or just ${Me.Invis[2]}
  • ANIMAL or 3 - ${Me.Invis[ANIMAL]} or just ${Me.Invis[3]}
  • SOS or 4 - ${Me.Invis[SOS]} or just ${Me.Invis[4]} returns true IF you are a ROG AND in fact hidden AND have a skill of at least 100 in HIDE AND have the AA for SoS

bool IsSummoned

Is this a summoned being?

bool IsTouchingSwitch

???

int Level

Level

bool Levitating

Levitating?

bool LFG

LFG?

string Light

Name of the light class this spawn has

bool LineOfSight

Returns TRUE if spawn is in LoS

bool Linkdead

Linkdead?

string Loc

Loc of the spawn

string LocYX

LocYX of the spawn

string LocYXZ

???

float Look

Looking this angle

int Mark

Current Raid or Group marked npc mark number (raid first)

spawn Master

Master, if it is charmed or a pet

int MaxEndurance

Maximum Endurance points (only updates when target/group)

int64 MaxHPs

Maximum hit points

int MaxMana

Maximum Mana points (only updates when target/group)

float MaxRange

The max distance from this spawn for it to hit you

float MaxRangeTo

The Max distance from this spawn for you to hit it

int MercID

???

spawn Mount

Mount

bool Moving

Moving?

string MQLoc

Location using MQ format

cachedbuff MyBuff

???

int MyBuffCount

???

timestamp MyBuffDuration

???

float N

Synonym for Y

string Name

Name

bool Named

Is this a "named" spawn (ie. does it's name not start with an "a" or an "an")

spawn NearestSpawn[search]

Find the nearest spawn matching this Spawn Search, to this spawn (most efficient on yourself)

spawn NearestSpawn[#, search]

Find the #th nearest spawn matching this Spawn Search, to this spawn (most efficient on yourself)

spawn Next

Next spawn in the list

spawn Owner

Owner, if mercenary

int PctEndurance

Current endurance as a percent

int64 PctHPs

Current hitpoins as a percent

int PctMana

Current mana as a percent

spawn Pet

Returns this spawn's pet, if one exists.

int PlayerState

returns a mask as an int of which each bit has the following meaning:

Value Meaning
0 Idle
1 Open
2 WeaponSheathed
4 Aggressive
8 ForcedAggressive
16 InstrumentEquipped
32 Stunned
64 PrimaryWeaponEquipped
128 SecondaryWeaponEquipped

spawn Prev

Previous spawn in the list

int Primary

Item ID of anything that may be in the Primary slot

race Race

Race

bool Roleplaying

Roleplaying?

float S

Shortcut for -Y (makes Southward positive)

int Secondary

Item ID of anything that may be in the Secondary slot

int SeeInvis

???

bool Sitting

Sitting?

bool Sneaking

Sneaking?

int SpawnStatus

???

float Speed

Speed moving

bool Standing

Standing?

int StandState

StandState

string State

Return current animation state:

  • "STAND"
  • "SIT"
  • "DUCK"
  • "BIND"
  • "FEIGN"
  • "DEAD"
  • "STUN"
  • "HOVER"
  • "MOUNT"
  • "UNKNOWN"

bool Stuck

Stuck?

bool Stunned

Stunned?

string Suffix

Suffix attached to name, eg. of

string Surname

Last name

bool Targetable

???

spawn TargetOfTarget

???

bool TemporaryPet

???

timestamp TimeBeenDead

???

string Title

Prefix/Title before name

bool Trader

Trader?

string Type

The Type of Spawn.

  • "PC"
  • "NPC"
  • "Untargetable"
  • "Mount"
  • "Pet"
  • "Corpse"
  • "Chest"
  • "Trigger"
  • "Trap"
  • "Timer"
  • "Item"
  • "Mercenary"
  • "Aura"
  • "Object"
  • "Banner"
  • "Campfire"
  • "Flyer"

float U

Synonym for Z

bool Underwater

Underwater?

float W

Synonym for X

float X

X coordinate

float Y

Y coordinate

float Z

Z coordinate

float N

X, the Northward-positive coordinate

float W

Y, the Westward-positive coordinate

float U

Z, the Upward-positive coordinate

float E

Shortcut for -X (makes Eastward positive)

float S

Shortcut for -Y (makes Southward positive)

float D

Shortcut for -Z (makes Downward positive)

string To String

Same as Name

Examples

| The Delay will end when the pet is targeted...AND target buffs are
| populated, or 5 seconds, whichever is shorter.
/target pet
/delay 5s ${Target.ID}==${Pet.ID} && ${Target.BuffsPopulated}==TRUE

Discussions that link here

This datatype is added by MacroQuest.