Difference between revisions of "PrivMsg"

From OpenKore Wiki
Jump to navigation Jump to search
(Add EventMacro event condition: PrivMsg)
 
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]]

Revision as of 09:20, 5 July 2019

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