mIRC Home    About    Download    Register    News    Help

Print Thread
#179874 29/06/07 11:43 AM
Joined: Oct 2006
Posts: 68
B
BuTLeR Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 68
Code:
on 1000:TEXT:*:#:{
  if ($1 == $ $+ showbans) { msg Q BANLIST # }
}


well thats what i got so far but i need help on when Q sends my bot the list my bot then msgs the nick the list that asked for it oh and also a antiflood thing added to it.

THX


At Your Service.
BuTLeR #179892 29/06/07 09:46 PM
Joined: Oct 2006
Posts: 68
B
BuTLeR Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 68
Someone please help me xD


At Your Service.
BuTLeR #179894 29/06/07 10:57 PM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
you need an on notice event pre-switched to forward the notices to the requesting nick.

Code:
on 1000:TEXT:*:#:{
  if ($1 == $ $+ showbans) { 
    if !$timer(qbanlist) {
      msg Q BANLIST # 
      set %Qbanlistnick $nick 
      timerqbanlist 1 60 unset %Qbanlistnick
    }
    else msg $nick Sorry $nick, wait $timer(qbanlist).secs before trying again.
  }
}

on *:notice:*:*:{
  if ( $nick == Q ) && ( %Qbanlistnick ) {
    msg %Qbanlistnick $1-
  }
}


untested, this (hopefully) works like this...

<nick> $showbans
<you> -> Q > Banlist #channel (you also set "nick" as the person to forward the list to and a timer to prevent anyone from using this command again within 1 minute)
-Q-> nick1
<you> -> nick > nick1
-Q-> nick2
<you> -> nick > nick2
...

hope that helps (+works)

btk


billythekid
BuTLeR #179945 30/06/07 05:49 PM
Joined: Oct 2006
Posts: 68
B
BuTLeR Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2006
Posts: 68
thx works =]


At Your Service.

Link Copied to Clipboard