mIRC Home    About    Download    Register    News    Help

Print Thread
#157178 23/08/06 01:20 AM
Joined: Aug 2006
Posts: 7
W
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Aug 2006
Posts: 7
Could somebody help me with this script
When a Guest enters the channel I need the script to tell the nick you have 1 minute to change your nick to your web nick or you will be kicked
tried this it will only kick the Guest

on @*:join:#: {
if (Guest* iswm $nick) {
mode # +b Guest*!*@*
kick # $nick No Guest nicks allowed!
}
}

Then I tried this still not allowing me to do want I want

on @*:join:#: {
if (Guest* iswm $nick) {
.timersay 1 1 msg $chan $nick you got 1 minute to change your nick!
.timerban 1 60 mode $chan +b Guest*!*@*
.timerkick 1 62 kick $chan $nick Nick is not aloud!

}
}

#157179 23/08/06 02:05 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on @*:join:#:{
set %chan $chan
if (guest* iswm $nick) {
.notice $nick Guest nicks not permitted.  You have one minute to change your nick or be kicked
$+(.timer,$nick) 1 60 ban -ku $chan $nick
}
}
on *:nick:{
if $timer($nick) && (guest* !iswm $newnick) {
$+(.timer,$nick) off
}
elseif (guest* iswm $newnick) {
.notice $nick You were told Guest nicks are not permitted.  You now have $timer($nick).secs seconds to get a non-guest nick
$+(.timer,$newnick) 1 $timer($nick).secs ban -ku %chan $newnick
$+(.timer,$nick) off
}
if (guest* iswm $newnick) {
.notice $nick Guest nicks are not permitted.  You have one minute to change your nick or be kicked
$+(.timer,$newnick) 1 60 ban -ku %chan $newnick
}
}
 


When the person joins the channel, their nick is checked, and if it's a guest nick, they are given a warning and a timer for that nick is set for one minute.
If they change their nick, and try to use another guest nick, then they're given a second warning, and told the number of seconds that were remaining in the first timer. This is how long they have left to get a non-guest nick.

If their nick is changed to a guest nick, then it's the same as if they joined the channel with a guest nick.

#157180 23/08/06 09:31 AM
Joined: Aug 2006
Posts: 7
W
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Aug 2006
Posts: 7
Thx for the script but does not seam to be working

on @*:join:#:{
set %chan $chan
if (ChatUser* iswm $nick) {
.notice $nick ChatUser nicks not permitted. You have one minute to change your nick to your site nick or be kicked
$+(.timer,$nick) 1 60 ban -ku $chan $nick
}
}
on *:nick:{
if $timer($nick) && (ChatUser* !iswm $newnick) {
$+(.timer,$nick) off
}
elseif (ChatUser* iswm $newnick) {
.notice $nick You were told ChatUser nicks are not permitted. You now have $timer($nick).secs seconds to get a non-ChatUser nick
$+(.timer,$newnick) 1 $timer($nick).secs ban -ku %chan $newnick
$+(.timer,$nick) off
}
if (ChatUser* iswm $newnick) {
.notice $nick ChatUser nicks are not permitted. You have one minute to change your nick to your site nick or be kicked
$+(.timer,$newnick) 1 60 ban -ku %chan $newnick
}
}

Last edited by wonka071; 23/08/06 09:31 AM.
#157181 23/08/06 03:41 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Try this

Code:
 on @!*:JOIN:#Channel: {
  if ( GUEST* iswm $nick ) {
    msg $chan $nick $+ : Please change your nick as Guest nicks are NOT allowed in $chan You have 1 minute to do so or you're out of here.
    $+(.timer,$cid,$chan,$address) 1 60 checknick $cid $chan $address
  }
}

alias checknick {
  var %nick  = $ialchan($+(*!*,$3),$2,1).nick
  if ( %nick ) && ( $me isop $2 ) {
    if ( GUEST* iswm %nick ) ban -ku300 $2 %nick I told you to change your nick
  }
}
on *:NICK: {
var %chan = #Channel
  if ( GUEST* iswm $newnick ) && ( $newnick ison %chan ) {
    msg %chan $nick Please change your nick as Guest nicks are NOT allowed in %chan You have 1 minute to do so or you're out of here.
    $+(.timer,$cid,%chan,$address) 1 60 checknick $cid %chan $address
  }
} 


*** Change #Channel


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#157182 23/08/06 07:13 PM
Joined: Aug 2006
Posts: 7
W
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Aug 2006
Posts: 7
Works great Thx
cool

#157183 23/08/06 07:25 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Welcome smile


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Link Copied to Clipboard