mIRC Home    About    Download    Register    News    Help

Print Thread
how to msg the trigger used! [help please!] #254769 01/09/15 06:10 AM
Joined: Sep 2014
Posts: 24
S
SophisDecay Offline OP
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,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
  }
}


-Chan: #WolvenSpirit -Server: Irc.Sorcery.Net
Re: how to msg the trigger used! [help please!] [Re: SophisDecay] #254770 01/09/15 09:19 AM
Joined: Sep 2014
Posts: 259
S
Sakana Offline
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)

Re: how to msg the trigger used! [help please!] [Re: Sakana] #254791 03/09/15 04:37 AM
Joined: Sep 2014
Posts: 24
S
SophisDecay Offline OP
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