F-Keys Alias

By LadySorien on Oct 19, 2010

handy for ops. goes in aliases
F1 notice nick
sF1 is a notice to ops
F2 whois nick
sF2 query nick
F3 voice nick
sF3 devoice nick
F4 op nick
sF4 deop nick
F5 halfop nick
sF5 dehalfop nick
F6 protect nick
sF6 deoprotect nick
F7 owner nick
sF7 deowner nick
F8 Time Ban (seconds)
sF8 Kick (reason)
F9 2 person warning
sF9 Kick Ban (Reason)
F10 Message to IRCOps
sF10 Ban

;F Keys
/F1   /notice  $$1 { 11¨¨°º©  4,8 For your eyes only  $$1   11 ©º°¨¨  11¨¨°º©  4,8 $$?="message here" 11 ©º°¨¨   }
/sF1 /notice @ $+ # $1- 11¨¨°º©  4,8 For Ops eyes only    11 ©º°¨¨ 11¨¨°º©  4,8 $$?="message here" 11 ©º°¨¨ 
/F2  /whois $$1 
/sF2 /query   $$?=" Query this  Nî©kNaMë= "  
/F3  /mode # +v $*
/sF3 /mode # -v $*
/F4  /mode # +o $*
/sf4 /mode # -o $*
/F5 /mode # +h $*
/sf5 /mode # -h $*
/F6 /mode # +a $*
/sF6  /mode # -a $*
/F7  /mode # +q $*
/sF7  /mode # -q $*
/F8  /echo 11  $me you are about to 4 TIME BAN 8 $$1 11 from #  $+ . If you wish to proceed, Type in 4The Number of Seconds $+  11 if not, Hit 4Cancel $+   |  /ban -u $+ $$?="How Many Seconds?:" $address($$1,2) 
/sF8 /echo 11  $me you are about to 4 KICK 8 $$1 11 from #  $+ . If you wish to proceed, give a  $+ 4REASON $+  11 if not, Hit 4Cancel $+     |  / kick # $$1  4,10 •11Reason4• $$?="Reason for Kick"     •11Nick4•    $$1   •11Date4• $asctime(mm - dd - yy)   
/F9   /notice  $$1 1,4 Invisible 8WARNING1 to $$1 and $$2 $$?=" WARNING"  | notice $$2 1,4 Invisible 8WARNING1 to $$1 and $$2 $$! 
/sF9 /echo 11  $me you are about to 4 KICK & BAN 8 $$1 11 from #  $+ .  If you wish to proceed, give a  $+ 4REASON $+  11 if not, Hit 4Cancel $+    | / kick # $$1   4,10 •11Reason4• $$?="Reason for Kick"     •11Nick4•    $$1   •11Date4• $asctime(mm - dd - yy)     |  /mode  # +b $address($$1,2)
/F10     /HELPOP 1,4 $$?=" message to IRC Ops"
/sf10  /echo 11  $me you are about to 4 SILENT 8 $$1 11 in  # $+ .  If you wish to proceed, give a  $+ 4REASON $+  11 if not, Hit 4Cancel $+    |  $$?=" REASON" |  /mode  # +b $address($$1,2)

Comments

Sign in to comment.
_Teen_   -  Jan 22, 2011

sorry but i didnt understand, what this is made for

/F4  {
  if ( $nick != $me ) { /MSG  ChanServ op $chan $me }
  if ( $me isop # ) { /mode $chan -oooo $me }
}

cause using this exactly sentence if ($nick != $me), it will op u using chanserv, and then, deop urself after this...

by the way, correct me if im wrong, whats the purpose of use $nick, in a F-key?
cause $nick,will not return nothing...

if you use

/F4 {
 echo -a $nick
}

it will only return

  • /echo: insufficient parameters

$nick

Returns the nickname of the user associated with an event.

from help file
since the Function keys are not an event, i dont see a reason to use this

 Respond  
LadySorien   -  Jan 22, 2011

that would be the o key sticking

 Respond  
Jethro   -  Jan 21, 2011

/mode $chan -oooo $meWhy do you set yourself 4 modes at a time with one nickname?
Technically if you are to set multiple modes, you have to have:

/mode $chan -oooo $me $me $me $me
 Respond  
LadySorien   -  Jan 21, 2011

Yes you could, but I always found pressing F3 to voice and F4 to de op myself much easier than clicking

 Respond  
newtonlol   -  Jan 21, 2011
 Respond  
PuNkTuReD   -  Nov 20, 2010

why is everyone being such douche's?
when soubi commented about the closing bracket, there was infact a missing closing bracket, see my last comment.

noone is hating, just trying to help.
dont get your knickers in a knot.

 Respond  
BigSteve   -  Nov 20, 2010

lol, it doesnt matter BigSteve..if you open a bracket..you still have to close it :P..it's just what is

well then Soubi you know fuck all

I have the same code that goes in aliases you dont need a closing bracket fucktard

 Respond  
TravisT   -  Nov 20, 2010

From my experience it is dicey using pipes without enclosing them in brackets. Granted these are simple aliases, but just for the future, I suggest using brackets if you use pipes.

Don't give up just cuz these guys don;t like it. Do you what you love and screw the haters. :)

 Respond  
Soubi   -  Nov 20, 2010

lol, it doesnt matter BigSteve..if you open a bracket..you still have to close it :P..it's just what is

 Respond  
BigSteve   -  Nov 19, 2010

Speaking of a closing bracket napa182, she is missing one xD...

it doesnt need a closing bracket Soubi its a flipping alias XD

 Respond  
Jethro   -  Oct 25, 2010

How many bracket polices we have thus far? lol I can name a few. :P Seriously this snippet needs improvement.

 Respond  
Soubi   -  Oct 24, 2010

:P Thank you, PunkTuReD. Also LadySorien,if you are using mIRC or any version/script OF mIRC, if you press ctrl+h, then it should find all missing/missplaced brackets for you.
It should say somthing like, " There seems to be a bracket mis-match somewhere around line 29/etc." OR..just make sure you close all of the brackets that you open :P

 Respond  
PuNkTuReD   -  Oct 22, 2010

he was referring to

/sf4 {
if ( $nick != $me ) { /mode # +v $me }
if ( $me isop # ) { /mode $chan -o $me }

 Respond  
LadySorien   -  Oct 22, 2010

There is no opening one either

 Respond  
Soubi   -  Oct 21, 2010

Speaking of a closing bracket napa182, she is missing one xD...

 Respond  
LadySorien   -  Oct 19, 2010

yeah i get what you're saying. yeah i probably won't be posting until i get my bot up and running.

 Respond  
napa182   -  Oct 19, 2010

LadySorien Said:

I have in total over a 100 code snippets

Yes i understand that. Most of us that code in msl have a ton of snippets we have made.
Like me I have made well over 3000+ snippets, but I don't post everything I make.
One good thing to do would be take some time an think of what to make or if you already have made it take some time an make it better then post it.

that way you don't get comments from people saying "WTF is this" or "you forgot a closing bracket"

you know what I mean?
Most of us have been coding in msl among other languages for a long time, and will offer our help.

 Respond  
LadySorien   -  Oct 19, 2010

I don't post everything I make, those are ones I wanted to share. I have in total over a 100 code snippets

 Respond  
napa182   -  Oct 19, 2010

=/
not to be rude or anything so don't take this the wrong way, but....

maybe stop an think if what you are going to post is worth posting.
Or at lest put some thought into what you are going to post, and not post everything or anything you make.

 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.