mIRC Home    About    Download    Register    News    Help

Print Thread
Dual trigger for script help #265987 28/08/19 08:49 PM
Joined: Oct 2014
Posts: 24
O
Orobas Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Oct 2014
Posts: 24
I currently have a script which i run from an alias but i am looking to dual trigger it please.
Code
alias grab {
  if (a isin $usermode) || (C isincs $v2) || (N isincs $v2) {
    var %grab = $iif($1,$1-,$$input(Space or comma separated.,e,Enter nick(s) to grab.))
    %grab = $replace(%grab,$chr(44),$chr(32))
    while %grab {
      var %g.nick = $gettok(%grab,1,32)
      .msg #ops I am now getting them for you.
      .sajoin %g.nick 0
      .sajoin %g.nick #conf1
      %grab = $remtok(%grab,%g.nick,1,32)
    }
  }
  else     echo -a Insufficent access
}

I am looking to run this slightly differently via the following method...

An op in a named channel types !grab nick
my mirc picks up the command and does a /say grabbing nick
my bot picks up my command (grabbing nick) and then runs the script please.

could i have an edit please for the script... plus a secondary script for the on text event !grab nick and the check if they are op in a named channel please for my script to issue the grabbing nick command

Re: Dual trigger for script help [Re: Orobas] #266021 08/09/19 12:06 PM
Joined: Oct 2014
Posts: 24
O
Orobas Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Oct 2014
Posts: 24
Marking this one as closed... I have worked it out!