Project

General

Profile

/me and a Script of mIRC

Added by Chris Schlauri 2 months ago

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

Replies (12)

RE: /me and a Script of mIRC - Added by Per Amundsen 2 months ago

You need to make sure %commandchar has a value, disable the script, then type "/set %commandchar /" ... then enable the script again.

RE: /me and a Script of mIRC - Added by Chris Schlauri 2 months ago

That solves all! Thank you mate :D

RE: /me and a Script of mIRC - Added by Chris Schlauri 2 months ago

There is now only the Problem with the Double Post:

[09:14] <~Isabel_Karavic> Bin gleich zurück
[09:14] <~Isabel_Karavic> brb

The "Bin gleich zurück" is the Replace for the "brb" (it is German for be right back)

The Replace Script looks like this:

on *:input:*:{
  IF ($1 == lol) { /say  11L 10aughing  11o 10ut  11L 10oud $2- | halt }
  IF ($1 == brb) { /say  11B 10in  11g 10leich  11z 10urück $2- | halt }
  IF ($1 == wb) { /say  11W 10illkommen  11z 10urück $2- | halt }
  IF ($1 == ww) { /say  11W 10inke  11W 10inke $2- | halt }
  IF ($1 == n8) { /say  11G 10ute  11N 10acht $2- | halt }
  IF ($1 == sg) { /say  11S 10laft  11G 10ut $2- | halt }
  IF ($1 == twf) { /say  11T 10räumt  11w 10as  11F 10eines $2- | halt }
  IF ($1 == gb) { /say  11F 10ute  11B 10esserung $2- | halt }
  IF ($1 == re) { /say  11I 10ch  11b 10in  11z 10urück! $2- | halt }
  IF ($1 == sry) { /say  11T 10ut  11m 10ir  11L 10eid $2- | halt }
  IF ($1 == k) { /say  11O 10kay $2- | halt }
  IF ($1 == np) { /say  11K 10ein  11P 10roblem $2- | halt }
  IF ($1 == thx) { /say  11D 10anke $2- | halt }
  IF ($1 == afk) { /say  11Ich  10bin  11nun  10nicht  11am  10PC $2- | halt }
  IF ($1 == rofl) { /say  11L 10aughing  11o 10ut  11L 10oud  11and 10rolling $2- | halt }
  IF ($1 == hdl) { /say  11H 10ab  11d 10ich  11L 10ieb! $2- | halt }
  IF ($1 == hel) { /say  11H 10ab  11e 10uch  11L 10ieb $2- | halt }
  IF ($1 == bb) { /say  11B 10ye  11B 10ye $2- | halt }
  IF ($1 == hf) { /say  11H 10ave  11F 10un $2- | halt }
  IF ($1 == ka) { /say  11K 10eine  11A 10hnung $2- | halt }
  IF ($1 == /er) { /say   4 <<< $2 >>> | halt }
  IF ($1 == bg) { /say  11B 10is  11g 10leich $2- | halt }
  IF ($1 == bs) { /say  11B 10is  11S 10päter $2- | halt }
  IF ($1 == kn) { /say  11K 10nuddel $2- | halt }
  IF ($1 == knu) { /say  11K 10nutsch $2- | halt }
  IF ($1 == rekn) { /say  11R 10e  11k 10nuddel $2- | halt }
  IF ($1 == reknu) { /say  11R 10e  11k 10nutsch $2- | halt }
  IF ($1 == ida) { /say  11I 10ch  11d 10ich  11a 10uch $2- | halt }
  IF ($1 == rain) { /say  4 Es ist wieder so weit:  2R 3a 4i 5n 6b 7o 8w 9p 10o 11w 12e 13r  4!!!!!!!  $2- | halt }
  IF ($1 == tfp) { /say  11D 10anke  11f 10ürs  11S 10piel $2- | halt }
}

RE: /me and a Script of mIRC - Added by Per Amundsen 2 months ago

Do you have both script in different files? if so, put them in the same file and only one will trigger.

RE: /me and a Script of mIRC - Added by Chris Schlauri 2 months ago

I Tried... but then will only the colorchange trigger, the shortcut suddenly not.

RE: /me and a Script of mIRC - Added by Per Amundsen 2 months ago

try put the IF ($1 == lol) script at the top, so it triggers first.

RE: /me and a Script of mIRC - Added by Chris Schlauri 2 months ago

Then will the IF script work... but the colorchange does not work

RE: /me and a Script of mIRC - Added by Per Amundsen 2 months ago

are you trying to change the color of the output from the other script? if so, it wont work, it must happen in the same "input" block.

RE: /me and a Script of mIRC - Added by Chris Schlauri 2 months ago

OMG - sure, you're right Facepalm myself Now... it Works. Maybe you have also just a idea for another, last case before i can use the adiirc client with my community:

If there is a long text typed, it will be splitted. thats good. But it splits in the middle of the word, so it is not so comfortable to read. Is it possible to bring adiirc to the point, that he will make the cut before the word, so that there will no words be splitted for a second post?

Exemple:

[09:44] * Ephesus rannte wie eine Irre durch die Flure... jaulte immer wieder lauthals und bekam aus dem Biotop eine Antwort. So ging es schon seit guten 10 Minuten. Ein stetiges hin und her Gejaule von einem Rudel Wölfe, welches dem einsamen Wolf eine Antwort gab. Jolene war total aufgedreht und rannte nun auf eine Anhöhe, streckte die Brust heraus und die Schnauze nach oben... und jaulte umso lauter auf. //Das macht Spass... wie lange geht das, bis ic 
[09:44] * Ephesus h Kloppe bekomme?//

In that case, the Word "ich" is splitted. Perfect would be the following:

[09:44] * Ephesus rannte wie eine Irre durch die Flure... jaulte immer wieder lauthals und bekam aus dem Biotop eine Antwort. So ging es schon seit guten 10 Minuten. Ein stetiges hin und her Gejaule von einem Rudel Wölfe, welches dem einsamen Wolf eine Antwort gab. Jolene war total aufgedreht und rannte nun auf eine Anhöhe, streckte die Brust heraus und die Schnauze nach oben... und jaulte umso lauter auf. //Das macht Spass... wie lange geht das, bis 
[09:44] * Ephesus ich Kloppe bekomme?//

Is there a Setting or anything for that?

RE: /me and a Script of mIRC - Added by Per Amundsen 2 months ago

I never thought of that for some reason, I will look into adding that for next beta as default, no option needed.

RE: /me and a Script of mIRC - Added by Chris Schlauri 2 months ago

Cool - thank you very much

So we i will use it for my IRC RPG Community as IRC Client from now on - thanks for your work.

RE: /me and a Script of mIRC - Added by Per Amundsen 2 months ago

Your welcome, and thanks for using AdiIRC :>

    (1-12/12)