Yawnyawn
Yawnyawn
Yawnyawn
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Yawnyawn

Blah
 
HomePortalLatest imagesRegisterLog in

 

 Cut Script

Go down 
AuthorMessage
CiaraMist

CiaraMist


Posts : 65
Join date : 2008-09-24
Location : Somewhere over the rainbow....

Cut Script Empty
PostSubject: Cut Script   Cut Script Icon_minitimeTue Oct 14, 2008 9:44 pm

Under Remote:

on *:input:*: {
if ( ( $left($1,1) != / ) || ( $1 == /me ) ) {
var %next = $chr(3) $+ 102-
var %continue = $chr(3) $+ 102-
var %done = $chr(3) $+ 10
var %more = $chr(3) $+ 102-

var %emote_c = 06
var %say_c = 06
;
var %textlen = $len($1-)
;
if (%textlen > 400) {
var %pos = 1
var %text = $mid($1-, %pos, 400)
var %firsttime = 1
var %lastcolor = $null
var %nextcolor = $null
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) {
%lastcolor = $get_end_cc(%outtext)
if ($gettok(%outtext, 1, 32) == /me) {
%outtext %next
if (%lastcolor == $null) {
%lastcolor = %emote_c
}
}
else {
say %outtext %next
if (%lastcolor == $null) {
%lastcolor = %say_c
}
}
%firsttime = 0
}
else {
var %newcolor = $chr(3) $+ %lastcolor
if (%text != $null) {
say %continue $+ %newcolor %outtext %next
}
else {
if (%textlen <= 945) {
say %continue $+ %newcolor %outtext %done
}
else {
say %continue $+ %newcolor %outtext %more
}
}
%nextcolor = $get_end_cc(%outtext)
if (%nextcolor != $null) {
%lastcolor = %nextcolor
}
}
}
halt
}
}
}



Under Aliases:

get_end_cc {
if ($prop == bold) return $iif($calc($count($$1,) % 2),$true,$null)
if ($prop == underline) return $iif($calc($count($$1,­) % 2),$true,$null)
if ($prop == reverse) return $iif($calc($count($$1,) % 2),$true,$null)
var %re = /(\d{1,2}(?:,\d{1,2})*)(?:[^]*)$/
!.echo -q $regex(get_last,$$1,%re)
return $iif($regml(get_last,1),$ifmatch,$null)
}
Back to top Go down
 
Cut Script
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Yawnyawn :: OOC (Out Of Character) :: General Chat-
Jump to: