PrivMsg: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Add EventMacro event condition: PrivMsg)
 
m (4epT moved page privMsg to PrivMsg 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.
{{Template:PrivMsg}}


: Syntax:
[[Category:EventMacro_Automacros]]
PrivMsg <[[EventMacro#Regex|Regex]]>
 
: Example:
PrivMsg /(buff|bless)/
 
: Set variables:
$.PrivMsgLastName => Saves the name of the player which message activated PrivMsg
$.PrivMsgLastMsg => Saves the message which activated PrivMsg
[[Category:EventMacro_Conditions_Event]]
[[Category:EventMacro_Conditions_Event]]

Latest revision as of 21:53, 12 September 2021

PrivMsg
  • Description: Is checked on private messages, is true when the message matches the given regex.
Syntax:
PrivMsg <Regex>
Example:
PrivMsg /(buff|bless)/
Set variables:
$.PrivMsgLastName => Saves the name of the player which message activated PrivMsg
$.PrivMsgLastMsg => Saves the message which activated PrivMsg