mIRC Homepage
Posted By: Dracoz !next +v - 02/08/07 05:15 PM
How can i script this,,

When someone joins the channel and there are already people in without the +V(voice) that if an @ uses !next the bot will voice the user who 1st joined... ?

PLZ HELP !!!!

And something like if an @ types !done the user who just got voiced will be kicked out
Posted By: Dracoz Re: !next +v - 02/08/07 07:10 PM
Plz someone :$
Posted By: schaefer31 Re: !next +v - 02/08/07 07:12 PM
Bumping your own topic in a short period will only deter people from helping you.
Posted By: Dracoz Re: !next +v - 02/08/07 07:15 PM
Sorry !
Posted By: LostShadow Re: !next +v - 02/08/07 08:42 PM
Originally Posted By: Dracoz
How can i script this,,

When someone joins the channel and there are already people in without the +V(voice) that if an @ uses !next the bot will voice the user who 1st joined... ?

PLZ HELP !!!!


That would require you (or your bot) to keep track of the chronological order of which users join. And then, it would have to divide the users that are still regular users.

What IRCd is this from? On certain IRCds like the 1 Dalnet is using, using a /names will list nicks in a chronological join order (from either oldest to newest or newest to oldest). In that case, if the network you are on has that, you will have to dig it up from the raw event for /names, and +v the first non-@%+ nick.

Quote:
And something like if an @ types !done the user who just got voiced will be kicked out


I'm sure once the op has voiced someone, and is finished, he could just devoice or kick him out (with an alias if necessary).

The point of aliases is to use shortcuts, not make things in excess or for decoration (but it's possible). Having a !done trigger takes longer time to type than a /done alias, since there are less buttons to press.

-Neal.
Posted By: Riamus2 Re: !next +v - 03/08/07 03:58 AM
Unless I miss my guess, this is for a support channel that is moderated. Users are voiced one at a time in the order they are joined so that they can ask a question. Once answered, they are kicked by the bot. The commands let all ops easily help out without trying to keep track of who came in first or whatever.

The best method would probably be using a text file. It's the easiest, anyhow.

Here is a link to one I made for someone else awhile back. Look at the full "updated version" script in the linked post. You can ignore the rest of the post and thread unless you feel like looking it over.
Posted By: Dracoz Re: !next +v - 03/08/07 12:15 PM
Yeah indeed that works laugh

But there's something else how do i script it so if i type !done "nickname" the nickname will get kicked and banned ?
Posted By: Riamus2 Re: !next +v - 03/08/07 02:11 PM
Here's an updated !done section.

Code:
on *:text:!done:#chan: {
  if ($nick isop $chan) {
    if ($2 && $2 ison $chan) {
      ban -ku10 $chan $2 If you need more help, you may return.
      if ($read(joinlist.txt,w,$2)) { write -dl $readn joinlist.txt }
    }
    elseif (%help.next ison $chan) {
      ban -ku10 $chan %help.next If you need more help, you may return.
      if ($read(joinlist.txt,w,%help.next)) { write -dl $readn joinlist.txt }
    }
  }
}


That will do either thing... !done by itself will take care of the last person voiced using !next, and !done nick will take care of any person.

**REMEMBER that this is only designed to handle *ONE* voiced person at a time. You could use it for more, but you'll have to use !done nick to complete anyone other than the last person voiced.
Posted By: Dracoz Re: !next +v - 04/08/07 11:58 AM
w00t it works laugh

Ty man laugh
© mIRC Discussion Forums