Template:PubMsgDist

From OpenKore Wiki
Revision as of 21:34, 4 July 2019 by 4epT (talk | contribs) (Created page with " <noinclude>This template describes the '''PubMsgDist''' Event Conditions of the automacro eventMacros.</noinclude> ;PubMsgDist :* Description: Is checked...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This template describes the PubMsgDist Event Conditions of the automacro eventMacros.
PubMsgDist
  • Description: Is checked on public messages, is true when the message matches the given regex and the distance match the given condition.
Syntax:
PubMsgDist <Regex> <Math condition operators>
Example:
PubMsgDist /(buff|bless)/ < 5
Set variables:
$.PubMsgDistLastName => Saves the name of the player which message activated PubMsgDist
$.PubMsgDistLastMsg => Saves the message which activated PubMsgDist
$.PubMsgDistLastPos => Saves the position of the player which message activated PubMsgDist
$.PubMsgDistLastDist => Saves the distance to the player which message activated PubMsgDist
$.PubMsgDistLastID => Saves the openkore ID of the player which message activated PubMsgDist