mIRC Home    About    Download    Register    News    Help

Print Thread
#181936 02/08/07 05:15 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
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

Last edited by Dracoz; 02/08/07 05:42 PM.
Dracoz #181950 02/08/07 07:10 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Plz someone :$

Dracoz #181951 02/08/07 07:12 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Bumping your own topic in a short period will only deter people from helping you.

schaefer31 #181953 02/08/07 07:15 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
Sorry !

Dracoz #181956 02/08/07 08:42 PM
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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.

LostShadow #181988 03/08/07 03:58 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #182008 03/08/07 12:15 PM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
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 ?

Dracoz #182017 03/08/07 02:11 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Riamus2 #182081 04/08/07 11:58 AM
Joined: May 2005
Posts: 74
D
Dracoz Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: May 2005
Posts: 74
w00t it works laugh

Ty man laugh


Link Copied to Clipboard