JasonK Posted September 8, 2008 Report Share Posted September 8, 2008 Hello, I'd like to make an alias to: 1. Be able to join multiple channels in the following formats: a.) %#test101,%#test102,%#test103 b.) %#test101 %#test102 %#test103 as well as be able just join a single channel /join %#test101 2. Check and see if the prefix "%#" is in the beggining of the channel name and if its not to add it in. Ex1. test101 (%#test101) 3. If there is a space $chr(32) in the channel name, to automatically add the \b Ex. %#testing this channel (%#testing\bthis\bchannel) I know its lots to ask for but thanks a bunch and I appreciate all your help. Kind regards, Jay Link to comment Share on other sites More sharing options...
Kronicdreamer Posted September 8, 2008 Report Share Posted September 8, 2008 If your only making the script for yourself just make a simple lil alias... alias connall { /join %#test101 /join %#test102 /join %#test103 } Just add more rooms if needed or delete and when you start mirc just type /connall This maynot be the best way but its the easiest if its a personal script... Link to comment Share on other sites More sharing options...
Warrior124 Posted September 8, 2008 Report Share Posted September 8, 2008 (edited) Don't know if this will be what you are looking for, but here it is. alias mjoin { var %tok = 1 while (%tok <= $numtok($1-,44)) { join $iif($left($gettok($1-,%tok,44),2) == $chr(37) $+ $chr(35),$gettok($1-,%tok,44),$chr(32) $+ $chr(44) $+ $gettok($1-,%tok,44)) inc %tok } } Edited September 8, 2008 by Warrior124 Link to comment Share on other sites More sharing options...
JasonK Posted September 8, 2008 Author Report Share Posted September 8, 2008 This is what I have so far is it messy? if ($1 == JOIN) { $recent($2) | if ($numtok($2,44) > 1) { var %x 1 | while ($gettok($2,%x,44)) { var %c = $ifmatch if ($left(%c,2) == $+($chr(37),$chr(35))) { join %c | haltdef } else { join $+($chr(37),$chr(35),%c) | haltdef } inc %x } } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now