Skunk
04-05-2001, 12:26
This script will add 0r to the end of every word if you type /0r then the text you want converted.
The below is an alias written by ybw for mIRC - you need to paste it in your aliases window (Alt+ A) in mIRC:/0r {
var %input = $1-
var %num = $numtok($1-,32)
var %theword
var %count = 1
:start
if ( %count > %num ) { goto end }
else {
var %current = $gettok(%input,%count,32)
%theword = %theword $addtok(%current,0r,r)
inc %count
goto start
}
:end
msg $chan %theword
}And here's GameGuru's adapted version:Originally posted by GameGuru
It's late and I'm tired, and I haven't been able to get $replace to work properly yet. So I've made a quick adaption of Andy's alias script.
To go in the Popups Section (Alt + P) (under the Channel view) (Alt + v then 2)
Activate 0r mode: set %0r 1 | echo -a 0r Mode activated!
Deactivate 0r mode: set %0r 0 | echo -a 0r Mode Deactivated!
Plus you can have this instead of or as well as the above bit in the Aliases (Alt + A)
/0r {
if (( %0r == $null ) || ( %0r == 0 ) { set %0r 1 | Echo -a 0r Mode Activated! }
if ( %0r == 1 ) { set %0r 0 | Echo -a 0r Mode Deactivated! }
}
To go in remote section of mIRC (Alt + R)
on *:input:#: {
if ( %0r == 1 ) {
var %input = $1-
var %num = $numtok($1-,32)
var %theword
var %count = 1
:start
if ( %count > %num ) { goto end }
else {
var %current = $gettok(%input,%count,32)
if ( $len(%current) < 4 ) { %theword = %theword %current | inc %count | goto start }
%theword = %theword $addtok(%current,0r,r)
inc %count
goto start
}
:end
msg $chan %theword
halt
}
else { return }
}
If I can be bothered I'll improve it a bit, but bear in mind that commands cannot be issued with "0r mode" active
The below is an alias written by ybw for mIRC - you need to paste it in your aliases window (Alt+ A) in mIRC:/0r {
var %input = $1-
var %num = $numtok($1-,32)
var %theword
var %count = 1
:start
if ( %count > %num ) { goto end }
else {
var %current = $gettok(%input,%count,32)
%theword = %theword $addtok(%current,0r,r)
inc %count
goto start
}
:end
msg $chan %theword
}And here's GameGuru's adapted version:Originally posted by GameGuru
It's late and I'm tired, and I haven't been able to get $replace to work properly yet. So I've made a quick adaption of Andy's alias script.
To go in the Popups Section (Alt + P) (under the Channel view) (Alt + v then 2)
Activate 0r mode: set %0r 1 | echo -a 0r Mode activated!
Deactivate 0r mode: set %0r 0 | echo -a 0r Mode Deactivated!
Plus you can have this instead of or as well as the above bit in the Aliases (Alt + A)
/0r {
if (( %0r == $null ) || ( %0r == 0 ) { set %0r 1 | Echo -a 0r Mode Activated! }
if ( %0r == 1 ) { set %0r 0 | Echo -a 0r Mode Deactivated! }
}
To go in remote section of mIRC (Alt + R)
on *:input:#: {
if ( %0r == 1 ) {
var %input = $1-
var %num = $numtok($1-,32)
var %theword
var %count = 1
:start
if ( %count > %num ) { goto end }
else {
var %current = $gettok(%input,%count,32)
if ( $len(%current) < 4 ) { %theword = %theword %current | inc %count | goto start }
%theword = %theword $addtok(%current,0r,r)
inc %count
goto start
}
:end
msg $chan %theword
halt
}
else { return }
}
If I can be bothered I'll improve it a bit, but bear in mind that commands cannot be issued with "0r mode" active