mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2014
Posts: 24
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2014
Posts: 24
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,1¦7 $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,1¦7 $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,1¦7 $nick 14has picked up the !trigger of a(n)7 %target 5¦
    Do_hunt3 %target
  }
}


-Chan: #WolvenSpirit -Server: Irc.Sorcery.Net
Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
Use $regml(1)

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

! $+ $regml(1)

Joined: Sep 2014
Posts: 24
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2014
Posts: 24
AHHHHH thank you! i poked at my regEX for HOURS last night!!!


-Chan: #WolvenSpirit -Server: Irc.Sorcery.Net

Link Copied to Clipboard