mIRC Home    About    Download    Register    News    Help

Print Thread
#28415 06/06/03 05:06 AM
Joined: Jun 2003
Posts: 13
N
netzer0 Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Jun 2003
Posts: 13
How would i be able to write a bot script that would auto voice all people in a channel.. BUT also I dont want all bots voiced i want all people voiced so this is what i need

if there are 5 people that come into my channel and say all 5 were bots... well i want only one of those bots to be voiced and the rest to stay devoiced.. Any scripts?

#28416 06/06/03 05:28 AM
Joined: May 2003
Posts: 79
A
Babel fish
Offline
Babel fish
A
Joined: May 2003
Posts: 79
And how does the code recognizes a bot from a normal user? lol

#28417 06/06/03 09:43 AM
Joined: Apr 2003
Posts: 414
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
If by nick then put the script in the remote(clt+r) ..
on 1:JOIN:#youchan: If (($nick = bot1) || ($nick = bot2) || ($nick = bot3) || ($nick = bot4) || ($nick = bot5)) { mode $chan +v $nick }


mIRC Chm Help 6.16.0.3 Full Anchored!
#28418 06/06/03 10:02 AM
Joined: Jan 2003
Posts: 64
M
Babel fish
Offline
Babel fish
M
Joined: Jan 2003
Posts: 64
I'm going to set this up to work really easily for you, so that you can change the name of the bots and still rely on this cript.

On *:Join:#YourChannel:{
Var %Cancel = $false
Var %Bot-A = Bot-A
Var %Bot-B = Bot-B
Var %Bot-C = Bot-C
Var %Bot-D = Bot-D
Var %Bot-E = Bot-E
If ($nick = %Bot-A) || ($nick = %Bot-B) || ($nick = %Bot-C) || ($nick = %Bot-D) || ($nick = %Bot-E) {
If (%Bot-A isvo $chan) Var %Cancel = $true
ElseIf (%Bot-B isvo $chan) Var %Cancel = $true
ElseIf (%Bot-C isvo $chan) Var %Cancel = $true
ElseIf (%Bot-D isvo $chan) Var %Cancel = $true
ElseIf (%Bot-E isvo $chan) Var %Cancel = $true
}
If ($nick != $me) && (($me ishelp $chan) || ($me isop $chan)) && (%Cancel != $true) Mode $chan +v $nick
}

This might look a bit exotic at first glance, but it should work perfectly.

Do you see those five "Var %Bot-A = Bot-A" type lines? Just change "Bot-A" to whatever the names of your bots are for each line.

Also, if you ever feel like turning this script off/on, toggle between $true and $false for the "Var %Cancel = $false" line at the beginning.

#28419 06/06/03 09:13 PM
Joined: Jun 2003
Posts: 13
N
netzer0 Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Jun 2003
Posts: 13
Do you see those five "Var %Bot-A = Bot-A" type lines? Just change "Bot-A" to whatever the names of your bots are for each line.

Im not trying to get my bots to be voiced or devoiced i can do that my self i know my bots are bots so i will devoice them but im saying say 9 "members" come into my channel but really only 2 of them are mIRC people I want those 2 to be voiced but the other bots that are theirs to be devoiced.. Thats what i meant just incase you didnt understand me the first time hehe sorry about that =D

#28420 08/06/03 07:33 AM
Joined: Jan 2003
Posts: 64
M
Babel fish
Offline
Babel fish
M
Joined: Jan 2003
Posts: 64
I don't understand what you mean by "'mIRC' people."

Am I correct that you mean "mIRC people" are REAL people, whereas the bots they bring are NOT real people?

If thats true, then there needs to be a DEFINITE method of distinguishing the real people from their bots.

What I'm basically saying is the bots need to be discriminable from everyone else.

I need more information before we can continue. Specifically, how are the bots marked BOTS (are they named ???_Bot or something to that extent?)

#28421 11/06/03 08:33 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias vp {
var %i 1
while (%i <= $nick($chan,0)) {
if ($nick($chan,%i) iswm $read(bots.txt,w,* $+ $nick($chan,%i $+ *))) {
halt
}
else {
mode # +v $nick($chan,%i)
}
inc %i
}
}
on *:JOIN:#:{
/.ctcp # version
}
on *:CTCPREPLY:*:{
var %i 1
while (%i <= $read(bots.txt,0)) {
if ($1 == version) && ($nick !iswm $read(bots.txt,%i)) {
/write bots.txt $nick
}
inc %i
}
}


new username: tidy_trax

Link Copied to Clipboard