miniCruzer Member
Number of posts : 9 Age : 48 Where You Live : Kentucky Hobbies & Pastimes : Scripting, Anything Computers, Outdoors, Camping Registration date : 2007-05-05
| Subject: From humble beginnings: Aliases Fri May 29, 2009 4:15 pm | |
| What's an alias? It allows us to perform something in a few words. - Code:
-
/join #radio *miniCruzer joins #radio - Code:
-
/radio Same thing.
Alias: - Code:
-
/radio /join #radio Now instead of typing /join #radio, all we have to type is /radio
Some things you should know about aliases $1 Means word number 1. You can continue with $2 and so on. $$1 Means word number 1, but won't perform the alias without it being specified $1- Means set of words number 1. If want there to be more after the first word, you would use this. $# Indicates a channel /say Means that you say something in the channel you are in /me Means that you will perform an action in the channel you are in.
Slapping! Instead of using mIRC's right-click then Slap function, we can make our own! - Code:
-
/slap { /me slaps $1 /me runs because $1 is mad /me crashes into $2 /me runs from both $1 and $2 }
This will perform all of those /me's in 3 words: /slap Nick1 Nick2. It will look like this I say: /slap Toby Mum *miniCruzer slaps Toby *miniCruzer runs because Toby is mad *miniCruzer crashes into Mum *miniCruzer runs from both Toby and Mum All of this happens in a few miliseconds.
For operators! Operators can use these to kick, voice, halfop, and op people! Instead of /kick #radio miniCruzer You're annoying - Code:
-
/k /kick #radio $1 $2-
An operator would now only type: /k miniCruzer You're annoying!
- Code:
-
/devoice /mode #radio -v $$1
/devoice miniCruzer
For administrators! Admins can set channel modes using aliases! - Code:
-
/moderated /mode #radio +m Outside of #radio Say you're an operator on several channels. This would be useful to know: - Code:
-
/devoice /mode $# -m $1
/devoice #channel miniCruzer ----- Aliases can become complex. You can even use the in Remotes. Buuuut...we won't go there...
| |
|