Difference between revisions of "PubMsg"

From OpenKore Wiki
Jump to: navigation, search
(Add EventMacro event condition: PubMsg)
 
 
Line 1: Line 1:
 +
{{Template:PubMsg}}
  
:* Is a condition that checks public messages, is true when the message matches the given regex.
+
[[Category:EventMacro_Automacros]]
 
+
: Syntax:
+
PubMsg <[[EventMacro#Regex|Regex]]>
+
 
+
: Example:
+
PubMsg /(buff|bless)/
+
 
+
: Set variables:
+
$.PubMsgLastName => Saves the name of the player which message activated PubMsg
+
$.PubMsgLastMsg => Saves the message which activated PubMsg
+
 
[[Category:EventMacro_Conditions_Event]]
 
[[Category:EventMacro_Conditions_Event]]

Latest revision as of 17:33, 4 July 2019

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