Difference between revisions of "Template:NpcMsgName"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with " <noinclude>This template describes the '''NpcMsgName''' Event Conditions of the automacro eventMacros.</noinclude> ;NpcMsgName :* Description: Is checked...")
 
(No difference)

Latest revision as of 09:55, 5 July 2019

This template describes the NpcMsgName Event Conditions of the automacro eventMacros.
NpcMsgName
  • Description: Is checked on npc conversation messages, is true when the message matches the given regex and the name of the npc which sent it also matches it's given regex.
Syntax:
NpcMsgName <Regex> <Regex>
The first regex is for the message, the second one is for the npc name
Example:
NpcMsgName /You don't have zeny/ /kafra/
Set variables:
$.NpcMsgNameLastName => Saves the name of the npc which message activated NpcMsgName
$.NpcMsgNameLastMsg => Saves the message which activated NpcMsgName