Top

Simple Inputs (to make IRC life easier)


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  Dec 30, 2008
Last Updated  Dec 31, 2008
Tags  channel  code  input  inputs  mode  modes  script  simple  snippet 

Introduction

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

Grab the Code

on *:INPUT:#: {
  if (!$ctrlenter) {
    if ($1 == .add) { /cs access $chan add $2 $3 }
    if ($1 == .del) { /cs access $chan del $2 }
    if ($1 == .akick) { /cs akick $chan $2 $3 $4- }
    if ($1 == .b) { /mode $chan +b $address($2,2) }
    if ($1 == .unb) { /mode $chan -b $address($2,2) }
    if ($1 == .i) { /invite $2 $chan }
    if ($1 == .nu) { /ns update }
    if ($1 == .eI) { /mode $chan +eeII $me $address($me,2) $me $address($me,2) }
    if ($1 == .unbme) { /cs unban $2 }
    if ($1 == .k) { /kick $2 $3- }
    if ($1 == .kb) { /ban -k $chan $2,2 $3- }
    if ($1 == .entrymsg) { /cs set $chan entrymsg $2- }
    if ($1 == .topiclock) { /cs set $chan topiclock $2 }
    if ($1 == .v) { /mode $chan +v $2 }
    if ($1 == .dv) { /mode $chan -v $2 }
    if ($1 == .h) { /mode $chan +h $2 }
    if ($1 == .dh) { /mode $chan -h $2 }
    if ($1 == .o) { /mode $chan +o $2 }
    if ($1 == .do) { /mode $chan -o $2 }
    if ($1 == .a) { /mode $chan +a $2 }
    if ($1 == .da) { /mode $chan -a $2 }
    if ($1 == .q) { /mode $chan +q $2 }
    if ($1 == .dq) { /mode $chan -q $2 }
    if ($1 == .secops) { /cs set $chan secureops $2 }
    if ($1 == .topic) { /topic $chan $2- }
    if ($1 == .mlock) { /cs set $chan mlock $2- }
    if ($1 == .assign) { /bs assign $chan $2 }
    if ($1 == .Qkb) { /mode $chan -Q | /mode $chan -vhoaeeII $2 $2 $2 $2 $2 $address($2,2) $2 $address($2,2) | /ban -k $chan $2,2 $3- | /mode $chan +q }
    if ($1 == .Qk) { /mode $chan -Q | /mode $chan -vhoa $2 $2 $2 $2 | /kick $2 $3- | /mode $chan +Q }
    if ($1 == .lvls) { /cs levels $chan set $$2-3 }
    if ($1 == .ucount) { /msg $chan There are $nick(#,0) people on $chan $+ . }
    if ($1 == .help) { /echo The commands are: .add - Adds user to access list in a channel. Syntax: .add <nick> <level> + .del - Deletes user from the access list in a channel. Syntax: .del <user> + .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> + .b - Bans someone's host. Syntax: .b <nick> + .unb - Unbans people. Syntax: .unb <nick> + .i - Invites a bot or person to a channel. Syantax: .i <bot or nick> + .nu - Faster than typying /ns update. + .eI - Type this and if you are op you add yourself to the excepts list and auto-invite list. + .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> + .k - Kicks someone from the channel. Syntax: .k <nick> <reason> + .kb Kicks and bans someone from the channel. Syntax: .kb <nick> <reason> | .entrymsg - Sets the entrymsg for the channel. Syntax: .entrymsg <whatever> + .topiclock - This sets the topiclock on or off. Syntax: .topiclock <ON OR OFF ONLY> + .v - Voices someone in a channel. Syntax: .v <nick> + .dv - Devoices someone in a channel. Syntax: .dv <nick> + .h - halfops someone in a channel. Syntax: .h <nick> + .dh - Dehalfops someone in a channel. Syntax: .dh <nick> + .o - Ops someone in a channel. Syntax: .o <nick> + .do - Deops someone in a channel. Syntax: .do <nick> + .a - Makes someone admin. Syntax: .a <nick> + .da - Deadmins someone. Syntax: .da <nick> + .q - Makes someone an owner (NOT FOUNDER). Syntax: .q <nick> + .dq - Deowners someone. Syntax: .dq <nick> +  .secops - Sets secureops on or off for a channel. Syntax: .secops <ON or OFF> + .topic - Sets topic for a channel. Syntax: .topic <topic> + .mlock - Sets mode locks for a channel. Syntax: .mlock <modes> + .assign - Assigns any service bots into a channel. Syntax: .assign <bot> + .Qk - Mega kicks someone. Syntax: .qkb <nick> + .Qkb - Mega kick-bans someone. Syntax: .qkb <nick> +  .lvls - Sets lvls for the channel. Example: .lvls set autovoice -1 + .ucount - Tells how many users are in a channel. }
  }
}
 

Comments

  (12)  RSS
sunslayer
Comments: 267
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 30, 2008 6:51 pm
Inputs ^.^
`Green
Comments: 34
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 30, 2008 7:14 pm
well. this is just a personal thing but, i like using ! more than . it just looks a little better to me.
Acclamator
Comments: 30
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 30, 2008 8:36 pm
I think popups are more efficient, but great job!
PunkTuReD
Comments: 461
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 30, 2008 10:33 pm
maybe add
.help
and list available commands and what they do
for those who dont script
`Green
Comments: 34
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 30, 2008 10:49 pm
yeah that is always a plus :)
NIGathan
Comments: 208
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 31, 2008 8:07 am
Code:
if ($1 == .mlock) { /cs set $chan $2- }


You forgot to put mlock in it

Should be
Code:
if ($1 == .mlock) { /cs set $chan mlock $2- }


Also maybe add a check if $ctrlenter then to return
TheNitelyfe
Comments: 46
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 31, 2008 10:37 am
Updated with all your suggestions and added a topiclock option in there.
jonesy44
Comments: 1,856
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 31, 2008 11:19 am
The help option has command breaks in it, so each | will initiate a new command, you will need "echo -a" before each new line.
TheNitelyfe
Comments: 46
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Dec 31, 2008 11:36 am
Fix'd.
supergeo
Comments: 257
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Jan 5, 2009 12:23 am
if ($1 == .h) { /mode $chan +h $2 }
if ($1 == .dh) { /mode $chan -h $2 }
if ($1 == .o) { /mode $chan +o $2 }

etc.


On all of these you can clean up the code by removing the /.

if ($1 == .h) { mode $chan +h $2 }
if ($1 == .dh) { mode $chan -h $2 }
if ($1 == .o) { mode $chan +o $2 }
TheNitelyfe
Comments: 46
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Jan 5, 2009 6:31 am
I know, but I prefer using the / for some unknown reason.
PATX
Comments: 389
 
mIRC Snippet:  Simple Inputs (to make IRC life easier)
Posted on Jun 15, 2009 8:12 pm
/me despises / and {} but thats just me. good job dude. tho i like dailogs better.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom