Alıntı
alias ratrun {
; Ver. 0.1 5/4/2003 By Budun
; showing ASCII animation of a cat chasing a mouse and mouses chasing a cat on titlebar
; type /ratrun to turn on/off
; to speed up or slow down just change the timer (300) to any number, you should leave 20 as is.
; This script was born out of boredom ;-)
; enjoy...
; Turning /ratrun on or off
if ($1 == $null) && ($timer(.ratrun)) { .timer.ratrun off | titlebar | return }
; setting up animation random spaces, ASCII sprites
var %c = $str($chr(160),150),%a $r(2,7),%a1 = $left(%c,%a),%a2 = $left(%c,$calc(7 - %a)),%d $r(1,3)
var %c1 ~(='.'),%c2 ('.'=)~,%m1 ~O'.',%m2 '.'O~,%x1 = %c1 $+ %a1 $+ ~O'.' $+ %a2,%x2 = %a2 $+ %c2 $+ %a1 $+ '.'Q~ $+ $left(%c,%d) $+ '.'o~ $+ $left(%c,$calc(4- %d)) $+ '.'O~
var %b $2,%x = $iif(!%b,%x1,%x2)
; Calculate the position to draw sprites on the scene
var %lx $len(%x),%y $calc(100 - %lx),%z = $iif($1 !isnum,- $+ %lx,$calc($1 $iif(!%b,+,-) 1))
var %p = $iif($calc(%y + %lx - 7) <= %z || 0 > %z,$ifmatch,%z)
; Calculate which direction the cat should turn
if (!%b) { var %x = $iif(%z > %p,$($+(%,c,$r(1,2)),2),%c1) $+ $mid(%x,8) }
; Calculate which sprites to put on the scene
if (%z >= 0) { var %o = $iif(%p > %y,$left(%x,- $+ $calc(%p - %y)),$iif(%p < 1,$right(%x,$calc(%lx + %p)),%x)) }
else { var %i = $right(%x,%z),%o = $iif($len(%i) > $len(%m2),%i,$($+(%,m,$r(1,2)),2)),%o = %o $+ $left(%c,$calc(%lx - $len(%o))) }
; Let the animals run free on your mIRC titlebar
titlebar $left(%c,$iif(%p < 1,0,%p)) $+ %o $+ $iif(%p < %y,$left(%c,$calc(%y - %p)))
; Calculate which direction should the next animation scroll, and reset the position.
; While stand still the cat and the mouse have 10 movements before changing direction
if (!%b) && ($calc(%z - %p) > 10) { var %b 1,%z %p }
elseif (%b) && (%z < 0) && ($calc($abs(%z) - %lx) > 10) { var %b 0,%z = $calc($len(%c1) - $len(%x1)) }
; Calculate the next timer
.timer.ratrun -mo 1 $r($iif(%z > %p || 0 >= %p,250,20),300) ratrun %z %b
}
; Ver. 0.1 5/4/2003 By Budun
; showing ASCII animation of a cat chasing a mouse and mouses chasing a cat on titlebar
; type /ratrun to turn on/off
; to speed up or slow down just change the timer (300) to any number, you should leave 20 as is.
; This script was born out of boredom ;-)
; enjoy...
; Turning /ratrun on or off
if ($1 == $null) && ($timer(.ratrun)) { .timer.ratrun off | titlebar | return }
; setting up animation random spaces, ASCII sprites
var %c = $str($chr(160),150),%a $r(2,7),%a1 = $left(%c,%a),%a2 = $left(%c,$calc(7 - %a)),%d $r(1,3)
var %c1 ~(='.'),%c2 ('.'=)~,%m1 ~O'.',%m2 '.'O~,%x1 = %c1 $+ %a1 $+ ~O'.' $+ %a2,%x2 = %a2 $+ %c2 $+ %a1 $+ '.'Q~ $+ $left(%c,%d) $+ '.'o~ $+ $left(%c,$calc(4- %d)) $+ '.'O~
var %b $2,%x = $iif(!%b,%x1,%x2)
; Calculate the position to draw sprites on the scene
var %lx $len(%x),%y $calc(100 - %lx),%z = $iif($1 !isnum,- $+ %lx,$calc($1 $iif(!%b,+,-) 1))
var %p = $iif($calc(%y + %lx - 7) <= %z || 0 > %z,$ifmatch,%z)
; Calculate which direction the cat should turn
if (!%b) { var %x = $iif(%z > %p,$($+(%,c,$r(1,2)),2),%c1) $+ $mid(%x,8) }
; Calculate which sprites to put on the scene
if (%z >= 0) { var %o = $iif(%p > %y,$left(%x,- $+ $calc(%p - %y)),$iif(%p < 1,$right(%x,$calc(%lx + %p)),%x)) }
else { var %i = $right(%x,%z),%o = $iif($len(%i) > $len(%m2),%i,$($+(%,m,$r(1,2)),2)),%o = %o $+ $left(%c,$calc(%lx - $len(%o))) }
; Let the animals run free on your mIRC titlebar
titlebar $left(%c,$iif(%p < 1,0,%p)) $+ %o $+ $iif(%p < %y,$left(%c,$calc(%y - %p)))
; Calculate which direction should the next animation scroll, and reset the position.
; While stand still the cat and the mouse have 10 movements before changing direction
if (!%b) && ($calc(%z - %p) > 10) { var %b 1,%z %p }
elseif (%b) && (%z < 0) && ($calc($abs(%z) - %lx) > 10) { var %b 0,%z = $calc($len(%c1) - $len(%x1)) }
; Calculate the next timer
.timer.ratrun -mo 1 $r($iif(%z > %p || 0 >= %p,250,20),300) ratrun %z %b
}
r:{ 
arkadaşa hakaret etmeye gerek yok kimsenin beyni sizin kadar çalışmıyorsa oturup yazmaya devam edin :