mIRC Homepage

how to msg the trigger used! [help please!]

Posted By: SophisDecay

how to msg the trigger used! [help please!] - 01/09/15 06:10 AM

Ok this is a snippet of my code, the highlighted is what i would like to be messaged, please.
like
Quote:
[01:05] * @Chisu moves about and slowly !tracks some prey down.
[01:05] <@Nevermore`> Chisu has picked up the !tracks of a(n) Squirrel
[01:05] <@Nevermore`> 5 HP


Code:
on $*:action:/[!](scents|scent|scenting|sniff|sniffs|sniffing|sniffed|smelled|smell|smells|smelling|track|tracks|tracked|tracking)/Si:#DR*Hunt:{
  if (%huntleader [ $+ [ $nick ] ] == $nick) && (%huntlvl == 1) {
    var %target = $read(target1.txt,n) 
    msg $chan  5,17 $nick 14has picked up the !trigger of a(n)7 %target 5
    do_hunt1 %target 
  }
  elseif (%huntleader [ $+ [ $nick ] ] == $nick) && (%huntlvl == 2) {
    var %target = $read(target2.txt,n) 
    msg $chan  5,17 $nick 14has picked up the !Trigger of a(n)7 %target 5
    do_hunt2 %target
  }
  elseif (%huntleader [ $+ [ $nick ] ] == $nick) && (%huntlvl <= 3) {
    var %target = $read(target3.txt,n) 
    msg $chan  5,17 $nick 14has picked up the !trigger of a(n)7 %target 5
    Do_hunt3 %target
  }
}
Posted By: Sakana

Re: how to msg the trigger used! [help please!] - 01/09/15 09:19 AM

Use $regml(1)

You aren't capturing the ! though, so maybe you want to send

! $+ $regml(1)
Posted By: SophisDecay

Re: how to msg the trigger used! [help please!] - 03/09/15 04:37 AM

AHHHHH thank you! i poked at my regEX for HOURS last night!!!
© 2021 mIRC Discussion Forums