My mIRC cutscript

Useful items for all visitors - virus warnings, firewalls, IRC scripts etc

Moderators: Ehlanna, Twerlinger

My mIRC cutscript

Postby Dughal on Thu Nov 04, 2010 6:33 pm

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
    }
  }
}
User avatar
Dughal
Initiate
Initiate
 
Posts: 44
Joined: Fri Sep 04, 2009 4:50 pm
Location: Southern California

Re: My mIRC cutscript

Postby Thria on Fri Nov 05, 2010 6:38 pm

Or you could just update mIRC and use the fact that it handles buffer cutting for you in version 7.x...
Thria
Adept
Adept
 
Posts: 65
Joined: Sun Oct 15, 2006 8:49 pm

Re: My mIRC cutscript

Postby Kaytoo on Fri Nov 05, 2010 8:11 pm

Worked great DuGhal, thanks!

K2
"Call me savage, and you're only telling me how much you have forgotten of the natural world, and the nature of minds."
Image
User avatar
Kaytoo
Adept
Adept
 
Posts: 82
Joined: Mon Apr 11, 2005 7:37 pm
Location: Dachvst among da Ut'Kref Savages

Re: My mIRC cutscript

Postby Avarwraith on Fri Nov 05, 2010 8:37 pm

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.
Image
User avatar
Avarwraith
Predominate
Predominate
 
Posts: 252
Joined: Sun Mar 11, 2007 6:17 pm

Re: My mIRC cutscript

Postby Thria on Fri Nov 05, 2010 9:00 pm

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.
Thria
Adept
Adept
 
Posts: 65
Joined: Sun Oct 15, 2006 8:49 pm

Re: My mIRC cutscript

Postby Dughal on Sat Nov 06, 2010 3:46 pm

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!
User avatar
Dughal
Initiate
Initiate
 
Posts: 44
Joined: Fri Sep 04, 2009 4:50 pm
Location: Southern California


Return to Public Service

Who is online

Users browsing this forum: No registered users and 4 guests