mIRC Home    About    Download    Register    News    Help

Print Thread
#18729 10/04/03 01:59 PM
C
cap00t
cap00t
C
hi
could some one please give me advise in making a script that auto-replaces characters?
for example tombstone piledriver will look like this: tºMb§tðñë ÞÏ£ëЮϥë®

it should be activated with an alias.

note that i´m a total newbie so please give me detailed info wink

thx cap00t

#18730 10/04/03 02:06 PM
T
theRat
theRat
T
/help aliases
/help $replace

#18731 10/04/03 02:11 PM
L
laz
laz
L
also:

/help $chr

#18732 10/04/03 02:21 PM
C
cap00t
cap00t
C
thx, i went through this before but dunno how to put it together.. confused

could you please gimme an example?

what about replacing e with ë, n with ñ and d with Ð when typing ' /cooltext end ' to get the output ' ëñÐ '

thx for your patience smirk


#18733 10/04/03 02:44 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Code:
on 1:INPUT:#: {
  if ($left($1, 1) != $readini(mirc.ini, text, commandchar)) {
    /set -u0 %msg $1-
    /set %msg $replace(%msg, a, Ä, b, ß, c, ç, e, ë)
    ; etc etc etc etc
    /msg $chan %msg
  }
}

#18734 10/04/03 03:52 PM
C
cap00t
cap00t
C
thx alot Kingtomato!

i put your code in the remote field. unfortunately it outputs like this:

<user> wH¥ Håvë ¡ å£w奧 ßëëñ å få¡£µ®ë¿
<user> why have i always been a failure?

which means it outputs the 'normal' text below the 'cool' one.
any chance that you can tell me how to modify that so it only outputs the desired one?

thx, cap00t

#18735 10/04/03 04:29 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
just add a halt below the /msg command, and u'll be fine. laugh

#18736 10/04/03 04:34 PM
C
cap00t
cap00t
C
yah cool works now, thanks for your help cool

#18737 10/04/03 04:35 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Heh, np.. You must be on the forumsnow to get that speedy of a responce. >:D


Link Copied to Clipboard