mIRC Home    About    Download    Register    News    Help

Print Thread
#259679 10/01/17 04:22 PM
Joined: Jan 2017
Posts: 2
E
Ephesus Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Jan 2017
Posts: 2
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.

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)
  }
}

Ephesus #259680 10/01/17 05:32 PM
Joined: Jan 2017
Posts: 2
E
Ephesus Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
E
Joined: Jan 2017
Posts: 2
Okay, Update: The first Problem was solved - i missed a "HALT" in the other Script.


Link Copied to Clipboard