stealnpc

From Arx Libertatis Wiki
Revision as of 17:17, 21 June 2022 by Ds (talk | contribs)
Jump to navigation Jump to search

The stealnpc script command is used to set the inventory that the player can steal from for an entity. The calling entity's secondary inventory is made available via the pickpocketing icon in the HUD. Only one entity can be stolen from at any time and the previous entity that called stealnpc is notified via the steal off event unless it is no longer in pickpocketing range. The steal event is also sent to the calling entity when the player opens its inventory via the pickpocketing icon or closes it again.

The steal entity is reset if the player gets too far away or if the player started stealing and the inventory is closed either by the player or using closestealbag or inventory close.

Usage

stealnpc

Context: Any Entity