Difference between revisions of "Template:NpcMsgDist"
Jump to navigation Jump to search
(Created page with " <noinclude>This template describes the '''NpcMsgDist''' Event Conditions of the automacro eventMacros.</noinclude> ;NpcMsgDist :* Description: Is checked...")
Latest revision as of 09:50, 5 July 2019
This template describes the NpcMsgDist Event Conditions of the automacro eventMacros.
- Description: Is checked on npc conversation messages, is true when the message matches the given regex and the distance match the given condition.
NpcMsgDist <Regex> <Math condition operators>
NpcMsgDist /please come near to me/ > 5
- Set variables:
$.NpcMsgDistLastName => Saves the name of the npc which message activated NpcMsgDist $.NpcMsgDistLastMsg => Saves the message which activated NpcMsgDist $.NpcMsgDistLastPos => Saves the position of the npc which message activated NpcMsgDist $.NpcMsgDistLastDist => Saves the distance to the npc which message activated NpcMsgDist $.NpcMsgDistLastID => Saves the openkore ID of the npc which message activated NpcMsgDist