mIRC Home    About    Download    Register    News    Help

Print Thread
#158288 02/09/06 11:17 PM
Joined: May 2006
Posts: 87
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
I am requesting for a !voiceme script. This script should check for an fserve and if that person has an fserve, the bot will voice them. I found this on another site, but I don't think it works properly.

Code:
off @*:TEXT:*:#: {
  if ($1 == !devoice) && ($nick isvoice $chan) { mode $chan -v $nick }
  if ($1 == !voiceme) { //msg $chan !list $nick }
}
off @*:notice:*:#: {
  if (*rigger* iswm $1-) { +vc $nick $chan }
  if (*Address* iswm $1-) { +vc $nick $chan }
  if (*Login* iswm $1-) { +vc $nick $chan }
  if (*FServe Active* iswm $1-) { +vc $nick $chan }
  if (*TDCC active* iswm $1-) { +vc $nick $chan }
  if (*XDCC active* iswm $1-) { +vc $nick $chan }
  if (*XDCC* iswm $1-) { +vc $nick $chan }
  if (*FTP active* iswm $1-) { +vc $nick $chan }
  if (*File Server Online* iswm $1-) { +vc $nick $chan }
  if (*FTP Online* iswm $1-) { +vc $nick $chan }
}
alias -l +vc {
  if ($1 isreg $2) { mode $2 +v $1 }
} 

#158289 03/09/06 02:17 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
First off, there's no such thing as an OFF event in mIRC
Code:
 on @*:TEXT:*:#: {
  if ($1 == !devoice) && ($nick isvoice $chan) { mode $chan -v $nick }
  elseif ($1 == !voiceme) && ($nick !isvoice $chan) { msg $chan !list $nick }
}
on @*:notice:*:#: {
  if (*rigger* iswm $1-) { vc $nick $chan }
  elseif (*Address* iswm $1-) { vc $nick $chan }
  elseif (*Login* iswm $1-) { vc $nick $chan }
  elseif (*FServe Active* iswm $1-) { vc $nick $chan }
  elseif (*TDCC active* iswm $1-) { vc $nick $chan }
  elseif (*XDCC active* iswm $1-) { vc $nick $chan }
  elseif (*XDCC* iswm $1-) { vc $nick $chan }
  elseif (*FTP active* iswm $1-) { vc $nick $chan }
  elseif (*File Server Online* iswm $1-) { vc $nick $chan }
  elseif (*FTP Online* iswm $1-) { vc $nick $chan }
}
alias -l vc {
  if ($1 isreg $2) { mode $2 +v $1 }
} 
 

#158290 03/09/06 07:14 PM
Joined: May 2006
Posts: 87
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
Thanks for replying. Unfortunately, I do not get voice when having an fserve up. I get the !list Sableye reply, and my bot is saying that my fserve is active, but I am not getting voice. The bot is opped in the channel.

[Fserve Active] - Trigger:[/ctcp Sableye RandomEpisodes]

That's the message my bot is getting when it uses !list Sableye.

#158291 03/09/06 07:24 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Try changing the ON NOTICE event to an ON TEXT event.
I know from past experience that the information you're referring to is normally sent via channel notice, pm text or pm notice. Without seeing for myself exactly how it's being relayed we may have the wrong event and/or wrong location specified.

#158292 03/09/06 07:39 PM
Joined: May 2006
Posts: 87
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
The fserve information is sent via channel notice.

#158293 03/09/06 09:48 PM
Joined: May 2006
Posts: 87
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
I don't think it's working.

-Sableye- [Fserve Active] - Trigger:[/ctcp Sableye RandomEpisodes] - Users:[1/5] - Message:[Serving ALL Indigo, Orange, Johto, and Hoenn episodes!] - SysReset 2.53

That's the fserve ad that my bot is receiving, but it still doesn't voice me.

#158294 03/09/06 09:50 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Network & channel information please, so that I can come in and take a look.

#158295 03/09/06 10:02 PM
Joined: May 2006
Posts: 87
S
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
#pokenightmare @ irc.dejatoons.net:6667

And thank you.


Link Copied to Clipboard