mIRC Home    About    Download    Register    News    Help

Print Thread
#119166 02/05/05 05:50 PM
Joined: May 2005
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: May 2005
Posts: 3
How would I make a script that replaces certain strings in whatever others write. Norwegian and swedish letters doesn't display correctly.
Any examples?

Rusty, Norway

#119167 03/05/05 07:40 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Find the character number IE copy and paste it into your edit box now Ill pick ¿ Now lets find its charcter number
//echo -a $asc(¿)
191
let's say I want to replace with the normal question mark thats 63
Now on ^*:text:*:*: { echo -ti2 $target $replace($1-,$chr(191),$chr(63)) }
This is a very crude way of doing this but it works you can do multiple replaces in one thing like this
//echo -a 123456789
123456789
//echo -a $replace(123456789,1,$chr(63),5,$chr(63))
?234?6789
There are better ways but thats my 2 cents

#119168 03/05/05 06:38 PM
Joined: May 2005
Posts: 3
R
Self-satisified door
OP Offline
Self-satisified door
R
Joined: May 2005
Posts: 3
But then every line appears twice?

#119169 03/05/05 06:51 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
^*:text:*:*:{ echo -mbflrti2 $target $+(<,$nick,>) $replace($1-,$chr(191),$chr(63)) | haltdef }

Added some extra /echo switches and the <nickname> to better mimic a normal message


Link Copied to Clipboard