Author Topic: Auto level on join.  (Read 1034 times)

Glow

  • Trial Moderator
  • Junior
  • ***
  • Posts: 69
  • Reputation +3/-4
  • Gimme -1! Newbie mIRC scripter
  • Location: Netherlands
    • View Profile
Auto level on join.
« on: February 26, 2011, 01:50:25 pm »
This script gives people(when you assign them) the levels you assigned them!

Fill at yournick your IRC nick in(duh).

Commands to promote:
Code: [Select]
-!addvoice
-!addhalfop
-!addop
-!addprotect
-!addowner

Commands to demote:
Code: [Select]
-!delvoice
-!delhalfop
-!delop
-!delprotect
-!delowner

Code: [Select]
on *:TEXT:*:#: {
  if ($1 == !addvoice) && ($nick == Yournick) {
    msg $chan Added $2 to the auto voice list!
    set % [ $+ [ $2 ] ] voice
  }
  elseif ($1 == !delvoice) && ($nick == Yournick) {
    msg $chan Deleted $2 from the auto voice list!
    unset % [ $+ [ $2] ]
  }
  if ($1 == !addhalfop) && ($nick == Yournick) {
    msg $chan Added $2 to the auto halfop list!
    set % [ $+ [ $2 ] ] halfop
  }
  if ($1 == !delhalfop) && ($nick == Yournick) {
    msg $chan Deleted $2 from the auto halfop list!
    unset % [ $+ [ $2] ]
  }
  if ($1 == !addop) && ($nick == Yournick) {
    msg $chan Added $2 to the auto op list!
    set % [ $+ [ $2 ] ] op
  }
  if ($1 == !delop) && ($nick == Yournick) {
    msg $chan Deleted $2 from the auto op list!
    unset % [ $+ [ $2] ]
  }
  if ($1 == !addprotect) && ($nick == Yournick) {
    msg $chan Added $2 to the auto protect list!
    set % [ $+ [ $2 ] ] protect
  }
  if ($1 == !delprotect) && ($nick == Yournick) {
    msg $chan Deleted $2 from the auto protect list!
    unset % [ $+ [ $2] ]
  }
  if ($1 == !addowner) && ($nick == Yournick) {
    msg $chan Added $2 to the auto owner list!
    set % [ $+ [ $2 ] ] owner
  }
  if ($1 == !delowner) && ($nick == Yournick) {
    msg $chan Deleted $2 from the auto owner list!
    unset % [ $+ [ $2] ]
  }
}
on *:JOIN:#: {
  if (% [ $+ [ $nick ] ] == voice) {
    mode $chan +v $nick
  }
  if (% [ $+ [ $nick ] ] == halfop) {
    mode $chan +h $nick
  }
  if (% [ $+ [ $nick ] ] == op) {
    mode $chan +o $nick
  }
  if (% [ $+ [ $nick ] ] == protect) {
    mode $chan +a $nick
  }
  if (% [ $+ [ $nick ] ] == owner) {
    mode $chan +q $nick
  }
}

Usage:
Code: [Select]
<~[Ask]Goblo> !addprotect Fabian
<~Amy> Added Fabian to the auto protect list!
* Fabian (Nishe@Fabian.Noezz.users) has left #Gobz
* Fabian (Nishe@Fabian.Noezz.users) has joined #Gobz
* Amy sets mode: +a Fabian
or
Code: [Select]
<~[Ask]Goblo> !delprotect Fabian
<~Amy> Deleted Fabian from the auto protect list!
* Fabian (Nishe@Fabian.Noezz.users) has left #Gobz
* Fabian (Nishe@Fabian.Noezz.users) has joined #Gobz

Got a little help from some friends but I scripted over 90% by myself^^
« Last Edit: February 26, 2011, 03:14:44 pm by Glow »

Share on Bluesky Share on Facebook


Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: Auto level on join.
« Reply #1 on: February 26, 2011, 02:47:41 pm »
Nice & good useful script, Keep it up!

Glow

  • Trial Moderator
  • Junior
  • ***
  • Posts: 69
  • Reputation +3/-4
  • Gimme -1! Newbie mIRC scripter
  • Location: Netherlands
    • View Profile
Re: Auto level on join.
« Reply #2 on: February 26, 2011, 03:15:25 pm »
Sure I will. Im planning to make my own channel bot(like Whale)^^.

King_Hual

  • Trial Moderator
  • Newbie
  • ***
  • Posts: 36
  • Reputation +3/-2
    • View Profile
Re: Auto level on join.
« Reply #3 on: February 26, 2011, 07:37:23 pm »
Sure I will. Im planning to make my own channel bot(like Whale)^^.

Channel bots are PHP :>

morbid

  • Trial Moderator
  • Junior
  • ***
  • Posts: 61
  • Reputation +0/-0
  • I own you
  • Location: I'm probably standing right behind you.
    • View Profile
Re: Auto level on join.
« Reply #4 on: February 27, 2011, 06:57:43 am »
Sure I will. Im planning to make my own channel bot(like Whale)^^.

Channel bots are PHP :>

Eh not necessarily..Service BOTS are PHP.
My bot CRIm (mIRC backwards)
Was a chatspace/Irc-d bot. And it was all Irc coding

King_Hual

  • Trial Moderator
  • Newbie
  • ***
  • Posts: 36
  • Reputation +3/-2
    • View Profile
Re: Auto level on join.
« Reply #5 on: February 27, 2011, 12:21:44 pm »
Well I thought that when he said
(like Whale)
He meant a service bot, because Whale is a service bot in the network we're on :p

Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: Auto level on join.
« Reply #6 on: March 01, 2011, 05:38:43 am »
I Really want to learn PHP but if soneone gives me the first stips instructions I would learn.

[TW]Flix

  • Newbie
  • *
  • Posts: 2
  • Reputation +0/-0
    • View Profile
Re: Auto level on join.
« Reply #7 on: May 07, 2011, 09:01:42 pm »
it doesn't work for me D:

Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: Auto level on join.
« Reply #8 on: May 11, 2011, 12:21:21 pm »
Here is another one for you i just made, report bugs here!


In your bot chat do /auser owner YourNICKhere

In your remote add:-

Code: [Select]
on owner:TEXT:!aop *:#:{
mode $chan +o $2
/auser op $2
msg $chan Added $2 to the Auto Op List!
}
on op:JOIN:#:{
mode $chan +ao $nick
}
on owner:TEXT:!admin *:#:{
mode $chan +ao $2
msg $chan Added $2 to the auto Admin list!
/auser admin $2
}
on Admin:JOIN:#:{
mode $chan +ao $nick
}
on owner:TEXT:!aowner *:#:{
mode $chan +qo $2
msg $chan Added $2 to the Auto owner list!
/auser own $2
}
on own:JOIN:#:{
mode $chan +qo $nick
}
on owner:TEXT:!deowner *:{
/ruser own $2
msg $chan Removed $2 from the auto owner list!
mode $chan -qo $2
}
on owner:TEXT:!deaop *:#:{
/ruser op $2
msg $chan Removed $2 from the auto op list!
mode $chan -ao $2
}
on owner:TEXT:!deadmin *:#:{
/ruser admin $2
mode $chan -ao $2
msg $chan Removed $2 from the auto admin list !
}

Commands are !aop, !aowner, !admin, !deaop, !deowner, and !deadmin.

Credits to me :)
« Last Edit: May 11, 2011, 12:23:24 pm by Jane »