replace and /me - 10/01/17 04:22 PM
Hello Everyone
I have some Trouble with a Script. It should change the Text Color on some indicators. Now, i got 2 Problems:
1: If i have another active replace Script fpr lol, brb and some stuff, it shows up double text if that script is active too
2: If i write a /me command... it does show up as "/ME *text*" instead of a emote.
I would really appreciate your help.
I have some Trouble with a Script. It should change the Text Color on some indicators. Now, i got 2 Problems:
1: If i have another active replace Script fpr lol, brb and some stuff, it shows up double text if that script is active too
2: If i write a /me command... it does show up as "/ME *text*" instead of a emote.
I would really appreciate your help.
Code:
on *:input:#: { if ($left($1,1) == %commandchar) { if ($v1 isin $+(+?.*,$chr(40),$chr(41),^,$chr(36),$chr(91),$chr(93),$chr(123),$chr(125),$chr(124),\)) { echo -s bla var %a = $str($+(\,$v1),2) } else { var %a = $str(%commandchar,2) } if ($regex($1,$+(/,%a,?\.?me/))) { haltdef me $regsubex($2-,/(".+?")/g,01\t) } elseif ($hget(replacing,$+(/,$remove($1,%commandchar)))) { haltdef say $regsubex($($v1,2),/(\*.+?\*)/g,01\t) } } else { haltdef var %a = $1- if ($hget(replacing,$1)) { %a = $($hget(replacing,$1),2) } msg $chan $regsubex(%a,/(\*.+?\*)/g,06\t) } }