lockandkey: restrict portal triggers to tells only, ignore /a and other chat
All checks were successful
/ test (push) Successful in 34s
All checks were successful
/ test (push) Successful in 34s
This commit is contained in:
parent
f88481f0d1
commit
774932ae27
2 changed files with 12 additions and 12 deletions
|
|
@ -59,10 +59,10 @@ STATE: {idle}
|
|||
DoExpr {clearvar[queuePrimary]}
|
||||
DoExpr {clearvar[queueSecondary]}
|
||||
~~ Listen for tells containing "primary"
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$} {}
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*primary.*"$} {}
|
||||
DO: SetState {summon_primary}
|
||||
~~ Listen for tells containing "secondary"
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$} {}
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*secondary.*"$} {}
|
||||
DO: SetState {summon_secondary}
|
||||
~~ Periodic service check
|
||||
IF: All
|
||||
|
|
@ -93,11 +93,11 @@ STATE: {summon_primary}
|
|||
DoExpr {actiontrycastbyid[157]}
|
||||
SetState {summon_primary}
|
||||
~~ Queue incoming tells while casting
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$} {}
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*primary.*"$} {}
|
||||
DO: DoAll
|
||||
Chat {/a Queued 125 Eaters portal, will summon shortly.}
|
||||
DoExpr {setvar[queuePrimary, 1]}
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$} {}
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*secondary.*"$} {}
|
||||
DO: DoAll
|
||||
Chat {/a Queued Bellas portal, will summon shortly.}
|
||||
DoExpr {setvar[queueSecondary, 1]}
|
||||
|
|
@ -125,11 +125,11 @@ STATE: {summon_secondary}
|
|||
DoExpr {actiontrycastbyid[2648]}
|
||||
SetState {summon_secondary}
|
||||
~~ Queue incoming tells while casting
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$} {}
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*primary.*"$} {}
|
||||
DO: DoAll
|
||||
Chat {/a Queued 125 Eaters portal, will summon shortly.}
|
||||
DoExpr {setvar[queuePrimary, 1]}
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$} {}
|
||||
IF: ChatCapture {(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*secondary.*"$} {}
|
||||
DO: DoAll
|
||||
Chat {/a Queued Bellas portal, will summon shortly.}
|
||||
DoExpr {setvar[queueSecondary, 1]}
|
||||
|
|
|
|||
|
|
@ -488,7 +488,7 @@ n
|
|||
s
|
||||
p
|
||||
s
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*primary.*"$
|
||||
s
|
||||
c
|
||||
s
|
||||
|
|
@ -511,7 +511,7 @@ n
|
|||
s
|
||||
p
|
||||
s
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*secondary.*"$
|
||||
s
|
||||
c
|
||||
s
|
||||
|
|
@ -716,7 +716,7 @@ n
|
|||
s
|
||||
p
|
||||
s
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*primary.*"$
|
||||
s
|
||||
c
|
||||
s
|
||||
|
|
@ -761,7 +761,7 @@ n
|
|||
s
|
||||
p
|
||||
s
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*secondary.*"$
|
||||
s
|
||||
c
|
||||
s
|
||||
|
|
@ -947,7 +947,7 @@ n
|
|||
s
|
||||
p
|
||||
s
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*primary.*"$
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*primary.*"$
|
||||
s
|
||||
c
|
||||
s
|
||||
|
|
@ -992,7 +992,7 @@ n
|
|||
s
|
||||
p
|
||||
s
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) .*, ".*secondary.*"$
|
||||
(^(\[[A-z]+?\] |)You|.*\<Tell:IIDString:.+:(?<who>[^\<]*)\>.+\<\\Tell\>) tells you, ".*secondary.*"$
|
||||
s
|
||||
c
|
||||
s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue