From OpenKore Wiki
Revision as of 09:57, 4 July 2019 by Nipodemos (Talk | contribs) (Add EventMacro event condition: NpcMsgName)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

NpcMsgName <Regex> <Regex>
The first regex is for the message, the second one is for the npc name
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