Alexandria is currently undergoing
maintenance and will be back shortly!



Take the Tour | Site Map

Name

openContextMenu — Opens a NPC's context menu and clicks a menuitem.

Synopsis

call subs.txt openContextMenu { npcid } { menuindex } [ offset ] [ bodfix ]

Author

ScriptFellow

Parameters

Table 12. openContextMenu parameters

NameDescription
npcidID of the NPC.
menuindexMenu itemindex (0-based).
offsetY-displacement for clicking on NPC.
bodfixAdd 1 to menuitem index if BOD Info menu is present.

Description

Opens a NPC's context menu and clicks a menuitem.

Returns

%outsideScreen (#true or #false)

Changes

#pixCol and findItem system variables

See Also

subs.clickScreenXYZ