PrivMsgDist: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Add EventMacro event condition: PrivMsgDist)
 
m (4epT moved page privMsgDist to PrivMsgDist over a redirect without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Is checked on private messages, is true when the message matches the given regex and the distance match the given condition.
{{Template:PrivMsgDist}}


: Syntax:
[[Category:EventMacro_Automacros]]
PrivMsgDist <[[EventMacro#Regex|Regex]]> <[[EventMacro#Math condition operators|Math condition operators]]>
 
: Example:
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
[[Category:EventMacro_Conditions_Event]]
[[Category:EventMacro_Conditions_Event]]

Latest revision as of 21:53, 12 September 2021

PrivMsgDist
  • Description: Is checked on private messages, is true when the message matches the given regex and the distance match the given condition.
Syntax:
PrivMsgDist <Regex> <Math condition operators>
Example:
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