EQEMU Quest API: Difference between revisions

From EQArchives
Jump to navigationJump to search
No edit summary
Line 17: Line 17:
|-
|-
| $mobid || NPC ID
| $mobid || NPC ID
|-
| $name || the player's first name
|-
|-
| $race ||The player's race (i.e. Human, Erudite, etc.).
| $race ||The player's race (i.e. Human, Erudite, etc.).
Line 33: Line 35:
$bot_id
$bot_id
$bot_owner_char_id
$bot_owner_char_id
$class
$faction
$h
$hpratio
$hpratio
$mlevel
$mlevel
Line 41: Line 40:
$mobid
$mobid
$name
$name
$race
$status
$status
$targetid
$targetid
Line 47: Line 45:
$uguild_id
$uguild_id
$uguildrank
$uguildrank
$ulevel
$userid
$userid
$x
$y
$z
</pre>
</pre>



Revision as of 04:02, 3 June 2023

This will document the Quest API for Perl since that is what is used on EQ Archives. Also see Spire Quest API Explorer for latest definitions and Quest examples

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
$name the player's first name
$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
$hpratio
$mlevel
$mname
$mobid
$name
$status
$targetid
$targetname
$uguild_id
$uguildrank
$userid

Zone

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