Difference between revisions of "GuildMsgDist"

From OpenKore Wiki
Jump to navigation Jump to search
(Add EventMacro event condition: GuildMsgDist)
 
Line 1: Line 1:
;GuildMsgDist
+
{{Template:GuildMsgDist}}
:* Description: Is checked on guild messages, is true when the message matches the given regex and the distance match the given condition.
 
  
: Syntax:
+
[[Category:EventMacro_Automacros]]
GuildMsgDist <[[EventMacro#Regex|Regex]]> <[[EventMacro#Math condition operators|Math condition operators]]>
 
 
 
: Example:
 
GuildMsgDist /(buff|bless)/ < 5
 
 
 
: Set variables:
 
$.GuildMsgDistLastName => Saves the name of the player which message activated GuildMsgDist
 
$.GuildMsgDistLastMsg => Saves the message which activated GuildMsgDist
 
$.GuildMsgDistLastPos => Saves the position of the player which message activated GuildMsgDist
 
$.GuildMsgDistLastDist => Saves the distance to the player which message activated GuildMsgDist
 
$.GuildMsgDistLastID => Saves the openkore ID of the player which message activated GuildMsgDist
 
 
[[Category:EventMacro_Conditions_Event]]
 
[[Category:EventMacro_Conditions_Event]]

Revision as of 09:46, 5 July 2019

GuildMsgDist
  • Description: Is checked on guild messages, is true when the message matches the given regex and the distance match the given condition.
Syntax:
GuildMsgDist <Regex> <Math condition operators>
Example:
GuildMsgDist /(buff|bless)/ < 5
Set variables:
$.GuildMsgDistLastName => Saves the name of the player which message activated GuildMsgDist
$.GuildMsgDistLastMsg => Saves the message which activated GuildMsgDist
$.GuildMsgDistLastPos => Saves the position of the player which message activated GuildMsgDist
$.GuildMsgDistLastDist => Saves the distance to the player which message activated GuildMsgDist
$.GuildMsgDistLastID => Saves the openkore ID of the player which message activated GuildMsgDist