Simple Inputs **UPDATED**

By TheNitelyfe on Dec 30, 2008

This is pretty self explanatory. Having inputs makes life so much easier. ;)

on *:INPUT:#: {
  if (!$ctrlenter) {
    if ($1 == .add) { 
      cs access # add $$1 $$2
      mode # $iif($2 == 3,+v-hoa,$iif($2 == 4,+h-voa,$iif($2 isnum 5-9,+o-avh,$iif($2 isnum 10-9999,+ao-hv)))) $str($+($nick,$chr(32)),4)
    }
    if ($1 == .del) {
      cs access $chan del $2 
      mode # -voah $str($nick $+ $chr(32),4) 
    }
    if ($1 == .akick) { cs akick # $iif($istok(add del list clear view,$$2,32),$$2) $iif($istok(add del view,$2,32),$$3-,$3-) }
    if ($1 == .b) { ban # $$2 2 }
    if ($1 == .unb) { ban -r # $$2 2 }
    if ($1 == .i) { invite $$2 # }
    if ($1 == .nu) { ns update }
    if ($1 == .eI) { 
      mode # + $+ $str(e,9) $regsubex($str(@,9),/./g,$address($iif($2,$2,$me),\n) $+ $chr(32)) 
      mode # + $+ $str(I,9) $regsubex($str(@,9),/./g,$address($iif($2,$2,$me),\n) $+ $chr(32)) 
    }
    if ($1 == .unbme) { cs unban $iif($2,#$2,#) }
    if ($1 == .k) { kick # $$2 $3- }
    if ($1 == .kb) { ban -k # $$2 2 $3- }
    if ($1 == .entrymsg) { cs set # entrymsg $$2- }
    if ($1 == .topiclock) { cs set # topiclock $iif($istok(on off,$$2,32),$$2) }
    if ($regex($1-,/^[+-][mnRTpqQebiIlLsSVz]/Si)) { haltdef | mode # $1- }
    if ($1 == .secops) { cs set # secureops $iif($istok(on off,$$2,32),$$2) }
    if ($1 == .topic) { topic # $$2- }
    if ($1 == .mlock) { cs set # mlock $$2- }
    if ($1 == .assign) { bs assign # $$2 }
    if ($1 == .Qkb) { 
      mode # -QvhoaeeII $left($str($+($nick,$chr(32)),5),-1) $str($address($2,2) $+ $chr(32),2) 
      ban -k # $$2 2 $3-
      mode $chan +Q
    }
    if ($1 == .Qk) {
      mode # -Qqvhoa $str($+($$2,$chr(32)),5) 
      kick $2 $3- 
      mode # +Q 
    }
    if ($1 == .lvls) { cs levels # $iif($istok(set dis disable list reset,$$2,32),$$2) $iif($istok(set dis disable,$2,32),$$3-) }
    if ($1 == .ucount) { haltdef | echo -a There are $nick(#,0) people on # }
    if ($1 == .help) { haltdef | window -a @help | .play -e @help m-help.txt 0 }
  }
}
on *:load:{
  if (!$isfile(m-help.txt)) {
    var %o = write m-help.txt 
    %o The commands are
    %o .add - Adds user to access list in a channel. Syntax: .add <nick> <level> 
    %o .del - Deletes user from the access list in a channel. Syntax: .del <user> 
    %o .akick - This can be used in 2 ways. It either akicks a user or deletes someone from the akick list. Syntax: .akick add <nick> <reason> OR .akick del <nick> 
    %o .b - Bans someone's host. Syntax: .b <nick> 
    %o .unb - Unbans people. Syntax: .unb <nick> + .i - Invites a bot or person to a channel. Syantax: .i <bot or nick> 
    %o .nu - Faster than typying /ns update. 
    %o .eI - Type this and if you are op you add yourself to the excepts list and auto-invite list. 
    %o .unbme - If you are op in a channel and are banned, this unbans you from the channel; pretty much /cs unban <chan>. Syntax: .unbme <chan> 
    %o .k - Kicks someone from the channel. Syntax: .k <nick> <reason> 
    %o .kb Kicks and bans someone from the channel. Syntax: .kb <nick> <reason> 
    %o .entrymsg - Sets the entrymsg for the channel. Syntax: .entrymsg <whatever> 
    %o .topiclock - This sets the topiclock on or off. Syntax: .topiclock <ON OR OFF ONLY> 
    %o .mode - Sets channel mode. Syntax: .<modehere> 
    %o .secops - Sets secureops on or off for a channel. Syntax: .secops <ON or OFF> 
    %o .topic - Sets topic for a channel. Syntax: .topic <topic> 
    %o .mlock - Sets mode locks for a channel. Syntax: .mlock <modes> 
    %o .assign - Assigns any service bots into a channel. Syntax: .assign <bot> 
    %o .Qk - Mega kicks someone. Syntax: .qkb <nick>
    %o .Qkb - Mega kick-bans someone. Syntax: .qkb <nick>
    %o .lvls - Sets lvls for the channel. Example: .lvls set autovoice -1 
    %o .ucount - Tells how many users are in a channel.
  }
}

Comments

Sign in to comment.
Jethro   -  Jan 17, 2010

You know it's funny when I look back at all the old scripts I'd done then, I feel they're somewhat "noobish," so to speak, and now I could re-write them with better, shorter codes if I want to. lol

 Respond  
TheNitelyfe   -  Jan 17, 2010

this is old but thx

updated

 Respond  
PowerScripters   -  Jan 17, 2010

You could use alias.. /add and something. - It's easier than .add. But overall a nice snippet.

 Respond  
MagicRevealer09   -  Jan 17, 2010

wtf?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.