mIRC Home    About    Download    Register    News    Help

Print Thread
#122605 13/06/05 02:39 PM
A
Abuser__
Abuser__
A
Code:
on 2000:text:.join*:#:{
  msg $read(users.txt) join $2
}


I know there is something wrong here, but i cant figure out what...

Could somebody help me? confused

#122606 13/06/05 02:49 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Hm... what are you trying to make it do?

Right now, it will do this:

User: .join mychan
Bot: Read in a random nick from users.txt file and then message that random nick with "join mychan"

If you want it to message all users in your channel when a level 2000 user types the command (easy way to get kicked for flooding), you can use a while loop and use $chan(#,%i).

Example:
Code:
set %i 1
while (%i <= $chan(#,0)) {
  msg $chan(#,%i) join mychan
}


If you have many users, then you probably need to put in a delay between each msg or else you are likely to be flooded off the server.

#122607 13/06/05 03:28 PM
A
Abuser__
Abuser__
A
I want a bot to msg all users in the userlist grin

#122608 13/06/05 03:33 PM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Ok, so do this:

Code:
on 2000:text:.join*:#:{
  set %i 1
  while (%i <= $lines(users.txt)) {
    msg $read(users.txt,%i) join $2
    inc %i
  }
  unset %i
}

#122609 13/06/05 03:37 PM
A
Abuser__
Abuser__
A
thanks smile


Link Copied to Clipboard