Difference between revisions of "NpcNear"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with "{{Template:NpcNear}} Category:EventMacro_Automacros Category:EventMacro_Conditions_State")
 
m (Conversion script moved page NpcNear to npcNear: Converting page titles to lowercase)
(No difference)

Revision as of 22:35, 26 April 2021

NpcNear
  • Description: Checks if there is a npc near which name matches the given regex.
Syntax:
NpcNear <Regex>
Example:
NpcNear /kafra/
NpcNear /special agent/
Set variables:
$.NpcNearLast => Saves the name of the last npc that made NpcNear become true
$.NpcNearLastPos => Saves the position of the last npc that made NpcNear become true (can be used for 'talknpc' command)
$.NpcNearLastBinId => Saves the openkore ID of the last npc that made NpcNear become true (can be used for 'talk' command)
$.NpcNearLastDist => Saves the distance of the last npc that made NpcNear become true