PubMsg: Difference between revisions

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

Revision as of 21: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