DataType:spawn
From MacroQuest Wiki
[edit]
Description
This is the type used for spawns.
This type inherits no other types.
[edit]
Members
| Type | Member | Description |
| int | AARank | AA rank number |
| string | AATitle | Actual AA title |
| bool | AFK | AFK? |
| int | Animation | Current animation ID. See Animations for a list of animations. |
| bool | Anonymous | Anonymous |
| bool | Assist | Current Raid or Group assist target? |
| bool | Binding | Binding wounds? |
| body | Body | Body type |
| bool | Buyer | Is a buyer? (ie. Buyer in the bazaar) |
| spell | Casting | Spell, if currently casting (only accurate on yourself, not NPCs or other group members) |
| class | Class | Class |
| string | CleanName | The "cleaned up" name |
| string | ConColor | GREY, GREEN, LIGHT BLUE, BLUE, WHITE, YELLOW, RED |
| int | CurrentEndurance | Current Endurance points (only updates when target/group) |
| int | CurrentHPs | Current hit points |
| int | CurrentMana | Current Mana points (only updates when target/group) |
| deity | Deity | Deity |
| string | DisplayName | Name displayed in game (same as EQ's %T) |
| float | Distance | Distance from player in (x,y) |
| float | DistanceX | Distance from player in X plane |
| float | DistanceY | Distance from player in Y plane |
| float | DistanceZ | Distance from player in Z plane |
| float | DistanceW | Distance from player in X plane (East/West) |
| float | DistanceN | Distance from player in Y plane (North/South) |
| float | DistanceU | Distance from player in Z plane (Up/Down) |
| float | Distance3D | Distance from player in (x,y,z) in 3D |
| float | DistancePredict | Estimated distance in (x,y), taking into account the spawn's movement speed but not the player's |
| bool | Ducking | Ducking? |
| bool | FeetWet | Feet wet/swimming? |
| bool | Feigning | Feigning? |
| spawn | Following | the spawn a player is following using /follow on - also returns your pet's target via ${Me.Pet.Following} |
| bool | Fleeing | Is your target moving away from you? |
| string | Gender | Gender |
| bool | GM | GM or Guide? |
| bool | GroupLeader | Is the group leader? |
| string | Guild | Guild name |
| string | GuildStatus | Guild status (Leader, Officer, Member) |
| 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 |
| float | Height | Height |
| int | Holding | Represents what the pc/npc is holding |
| bool | Hovering | Hovering |
| int | Hunger | Hunger level |
| int | ID | Spawn ID |
| bool | Invis | Invisible? (also includes both successful and failed hides as well as shroud of stealth) |
| bool | Invited | Invited to group? |
| 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? |
| 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) |
| int | 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 |
| spawn | Mount | Mount |
| 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 | Prev | Previous spawn in the list |
| spawn | Pet | Pet |
| int | PctHPs | Percent hit points |
| race | Race | Race |
| bool | Roleplaying | Roleplaying? |
| bool | Sitting | Sitting? |
| bool | Sneaking | Sneaking? |
| float | Speed | Speed |
| bool | Standing | Standing? |
| string | State | STAND SIT DUCK BIND FEIGN DEAD STUN UNKNOWN HOVER MOUNT |
| string | Suffix | Suffix attached to name, such as: of <servername> |
| string | Surname | Last name |
| bool | Swimming | Swimming? |
| int | Thirst | Thirst level |
| bool | Trader | Trader? |
| string | Type | PC NPC Untargetable Mount Pet Corpse Chest Trigger Trap Timer Item Mercenary |
| bool | Underwater | Underwater? |
| 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 |
[edit]
