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 »

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 »

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 »

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 »

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 »

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 »

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.
Locked