mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2014
Posts: 54
O
Orobas Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Oct 2014
Posts: 54
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

Joined: Oct 2014
Posts: 54
O
Orobas Offline OP
Babel fish
OP Offline
Babel fish
O
Joined: Oct 2014
Posts: 54
Marking this one as closed... I have worked it out!


Link Copied to Clipboard