quick scripting help

Talk about pretty much anything here, but DO NOT USE FOR SUPPORT.

Moderator: Supporters

Chimp
Posts: 15
Joined: Tue Oct 31, 2006 6:05 am

Post by Chimp » Sat Nov 04, 2006 6:16 am

can u at least start me off and then i can copy?

SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

Post by SpaceDoG » Sat Nov 04, 2006 6:43 am

on *:text:#channel:!a: {
mode # +a $nick
}

That's just a basic that will give anyone who types !a admin.

Chimp
Posts: 15
Joined: Tue Oct 31, 2006 6:05 am

Post by Chimp » Sat Nov 04, 2006 5:25 pm

o comon not the easy part. meant the kick with +a detection

SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

Post by SpaceDoG » Sat Nov 04, 2006 7:10 pm

Code: Select all

on *:join:#channel: {
  set % $+ $nick false
}

on *:text:#channel:!a: {
  if (% $+ $nick == false) {
    mode # +a $nick
    set % $+ $nick true
   } else {
    mode # -a $nick
    set % $+ $nick == false
  }
}

on *:kick:#channel: {
  if (% $+ $nick == true) {
    mode # -a $nick
  set % $+ $nick false
  } else {
    halt
  }
}

on *:nick: {
  set % $+ $newnick % $+ $nick
  unset % $+ $nick
}
That should work as long as you don't auto +a anyone in the channel

Chimp
Posts: 15
Joined: Tue Oct 31, 2006 6:05 am

Post by Chimp » Sun Nov 05, 2006 5:13 am

thanks but could u explain y no one should be auto +a just outta curiosity :D

SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

Post by SpaceDoG » Sun Nov 05, 2006 5:54 am

The reason you don't want to +a someone is because as far as I can tell mIRC does not yet support +a/+q. yea I know that sounds crappy but that's the way that it is.

Post Reply