Page 1 of 1

My mIRC cutscript

PostPosted: Thu Nov 04, 2010 6:33 pm
by Dughal
While this is not my cutscript in the sense that I coded it, it is the one I use on a daily basis and it can handle almost an unlimited amount of buffering. For long posters, I really recommend this.


This goes in the "Remote" page of the scripts editor in mIRC.

Code: Select all
on *:input:*: {
  if ( ( $left($1,1) != / ) || ( $1 == /me ) ) {
    var %next = <14next2>
    var %continue = <14more1>
    var %more = <14more1>
    var %done = <4end1>
    var %textlen = $len($1-)
    if (%textlen > 400) {
      var %pos = 1
      var %text = $mid($1-, %pos, 400)
      var %firsttime = 1

      while ( %text != $null ) {
        if ( $len($deltok(%text, -1, 32)) < 370 ) {
          %text = $left(%text, 370)
          inc %pos 370
        }
        else {
          %text = $deltok(%text,-1,32)
          inc %pos $len(%text)
          inc %pos
        }
        var %outtext = %text
        %text = $mid($1-, %pos, 400)
        if (%firsttime == 1) {
          if ($gettok(%outtext, 1, 32) == /me) {
            %outtext %next
          }
          else {
            say %outtext %next
          }
          %firsttime = 0;
        }
        else {
          if (%text != $null) {
            say %continue %outtext %next
          }
          else {
            if (%textlen <= 945) {
              say %continue %outtext %done
            }
            else {
              say %continue %outtext %more
            }
          }
        }
      }
      halt
    }
  }
}

Re: My mIRC cutscript

PostPosted: Fri Nov 05, 2010 6:38 pm
by Thria
Or you could just update mIRC and use the fact that it handles buffer cutting for you in version 7.x...

Re: My mIRC cutscript

PostPosted: Fri Nov 05, 2010 8:11 pm
by Kaytoo
Worked great DuGhal, thanks!

K2

Re: My mIRC cutscript

PostPosted: Fri Nov 05, 2010 8:37 pm
by Avarwraith
Thria wrote:Or you could just update mIRC and use the fact that it handles buffer cutting for you in version 7.x...


I use this cutscript and strongly endorse it. I, personally, rather dislike IRC's new self-cutting and have it turned off because a solid wall of text is just.. well frankly not what I am used to.

Re: My mIRC cutscript

PostPosted: Fri Nov 05, 2010 9:00 pm
by Thria
Avarwraith wrote:I use this cutscript and strongly endorse it. I, personally, rather dislike IRC's new self-cutting and have it turned off because a solid wall of text is just.. well frankly not what I am used to.

Not... entirely sure how a solid wall of text is any different from a solid wall of text with a couple of <Nickname> 's thrown in, but whatever works for you I guess heh.... just more using it to clarify for those that are new.

Re: My mIRC cutscript

PostPosted: Sat Nov 06, 2010 3:46 pm
by Dughal
The break-up of text into "paragraphs" is a really nice feature of this cut-script, as it allows you track the line and place you are reading far more easily than if it was just a single, unbroken wall-o-text.

The only thing I wish this would do is carry over color codes, but you cannot have it all. I highly recommend the use of quotation marks whenever your character speaks as well, because that makes sure that no matter what coloration scheme a person might be using, or what version of IRC, they can tell what is spoken and what is action far more easily than otherwise.


Just my 2 coppers... and Kaytoo knows what 2 coppers is worth!