EQEMU Quest API: Difference between revisions

From EQArchives
Jump to navigationJump to search
Line 3: Line 3:


=== Mob ===
=== Mob ===
 
{| class="wikitable"
==== $faction ====
! Constant !! Description
Provides the faction level the player has with the NPC's primary faction.  This will be an integer between 1 (Ally) and 9 (Scowls).  See https://docs.eqemu.io/server/factions/faction-values/
|-
 
| $class || The player's class (i.e. Rogue, Cleric, etc.).
==== $class ====
|-
The player's class (i.e. Rogue, Cleric, etc.).
| $faction ||Provides the faction level the player has with the NPC's primary faction.  This will be an integer between 1 (Ally) and 9 (Scowls).  See https://docs.eqemu.io/server/factions/faction-values/
 
|-
==== $race ====
| $h ||Current heading of mob (i.e. the direction they are facing out of 360 degrees).
The player's race (i.e. Human, Erudite, etc.).
|-
 
| $mlevel || Mob's (NPC) level
==== $x ====
|-
Current x coordinates of mob.
| $mname || Mob's (NPC) name
 
|-
==== $y ====
| $mobid || NPC ID
Current y coordinates of mob.
|-
 
| $race ||The player's race (i.e. Human, Erudite, etc.).
==== $z ====
|-
Current z coordinates of mob.
| $ulevel || player (user) level
 
|-
==== $h ====
| $x || Current x coordinates of mob.
Current heading of mob (i.e. the direction they are facing out of 360 degrees).
|-
| $y ||Current y coordinates of mob.
|-
| $z ||Current z coordinates of mob.
|-
|}


<pre>
<pre>

Revision as of 03:47, 3 June 2023

This will document the Quest API for Perl since that is what is used on EQ Archives.

Perl Consts

Mob

Constant Description
$class The player's class (i.e. Rogue, Cleric, etc.).
$faction Provides the faction level the player has with the NPC's primary faction. This will be an integer between 1 (Ally) and 9 (Scowls). See https://docs.eqemu.io/server/factions/faction-values/
$h Current heading of mob (i.e. the direction they are facing out of 360 degrees).
$mlevel Mob's (NPC) level
$mname Mob's (NPC) name
$mobid NPC ID
$race The player's race (i.e. Human, Erudite, etc.).
$ulevel player (user) level
$x Current x coordinates of mob.
$y Current y coordinates of mob.
$z Current z coordinates of mob.
$bot_id
$bot_owner_char_id
$class
$faction
$h
$hpratio
$mlevel
$mname
$mobid
$name
$race
$status
$targetid
$targetname
$uguild_id
$uguildrank
$ulevel
$userid
$x
$y
$z

Zone

$instanceid
$instanceversion
$zonehour
$zoneid
$zoneln
$zonemin
$zonesn
$zonetime
$zoneweather