Go Back   the Dragongate > the Mundane World > IRC tricks and help
FAQ Members List Calendar Arcade Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2004, 03:21 PM
Megera's Avatar
Megera Megera is offline
She Who Must Be Appeased.
 

Join Date: Aug 2001
Location: the Internet
Posts: 1,061
Default long cutscript

Code:
cutscript

on *:input:*: { 
  if ( ( $left($1,1) != / ) || ( $1 == /me ) ) { 
    var %next     = <cut> 
    var %continue = <cont> 
    var %done     = <done> 
    var %more     = <wait> 
    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 
    } 
  } 
}
__________________

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:29 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Design by Alantris
in business of RP since 1978 - the dragongate has been around since 1994 - all things posted here are considered part of the dragongate and should be left when you part its domain lest dragons eat you up.