From OpenKore Wiki
Revision as of 05:22, 5 July 2019 by 4epT (Created page with " <noinclude>This template describes the '''PrivMsgDist''' Event Conditions of the automacro eventMacros.</noinclude> ;PrivMsgDist :* Description: Is check...")
This template describes the PrivMsgDist Event Conditions of the automacro eventMacros.
- Description: Is checked on private messages, is true when the message matches the given regex and the distance match the given condition.
PrivMsgDist <Regex> <Math condition operators>
PrivMsgDist /(buff|bless)/ < 5
- Set variables:
$.PrivMsgDistLastName => Saves the name of the player which message activated PrivMsgDist $.PrivMsgDistLastMsg => Saves the message which activated PrivMsgDist $.PrivMsgDistLastPos => Saves the position of the player which message activated PrivMsgDist $.PrivMsgDistLastDist => Saves the distance to the player which message activated PrivMsgDist $.PrivMsgDistLastID => Saves the openkore ID of the player which message activated PrivMsgDist