Template:NpcNearDist
Revision as of 20:55, 4 July 2019 by 4epT (talk | contribs) (Created page with " <noinclude>This template describes the '''NpcNearDist''' state Conditions of the automacro eventMacros.</noinclude> ;NpcNearDist :* Description: Checks i...")
This template describes the NpcNearDist state Conditions of the automacro eventMacros.
- NpcNearDist
-
- Description: Checks if there is a npc in a given distance which name matches the given regex.
- Syntax:
NpcNearDist <Regex> <Math condition operators>
- Example:
NpcNearDist /kafra/ <= 4 NpcNearDist /special agent/ >= 5
- Set variables:
$.NpcNearDistLast => Saves the name of the last npc that made NpcNearDist become true $.NpcNearDistLastPos => Saves the position of the last npc that made NpcNearDist become true (can be used for 'talknpc' command) $.NpcNearDistLastBinId => Saves the openkore ID of the last npc that made NpcNearDist become true (can be used for 'talk' command) $.NpcNearDistLastDist => Saves the distance of the last npc that made NpcNearDist become true