Skip to content
General IRCX

Aways

A TG007 community discussion started by Molson™.

Discussion 7 posts
Page 1 of 1
Open
Topic #8712 · 7 published posts · 1,871 views

Anyone have any idea why these don't work?

 

raw 305:*: {
  var %N = $me, %x 1
  while (%x <= $Chan(0)) {
    var %Chan = $Chan(%x)
    if ($me(%Chan, %N)) {
      echo -c Other  %Chan $replace($tstamp,04,05) 14 (05-15 Return 05-14) (05-15 Your no longer away 05-14) 
      cline -l $Color(gray) %Chan $Fline(%Chan, %N, 1, 1)
    }
    inc %x
  }
  halt
}

raw 306:*: {
  var %N = $me, %x 1
  while (%x <= $Chan(0)) {
    var %Chan = $Chan(%x)
    if ($me(%Chan, %N)) {
      echo -c Other %Chan $replace($tstamp,04,05) 14 (05-15 Away 05-14) (05-15 Your marked as being away 05-14) 
      cline -l $Color(gray) %Chan $Fline(%Chan, %N, 1, 1)
    }
    inc %x
  }
  halt
}

Edited Jul 20, 2007 4:02 AM by Molson™

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

Whats this supposed to do?

 

$me(%Chan, %N)

 

And why make a local variable for $me? why not just use $me?

Using variables in raws royally screw up your codes

How so X?

Like I said, they could. It depends on how you use them. Server raws should be used with mIRCs inbuilt functions, such as $comchan or $chan. Whereas error replies shouldn't really serve to much of a problem.

Anyway, Molson ..

raw 305:*: {
    var %chan = $comchan($me,1)
    echo -c Other %chan $replace($tstamp,04,05) 14 (05-15 Return 05-14) (05-15 Your no longer away 05-14) 
cline -l $Color(gray) %chan $fline(%chan,$me,1,1)
    haltdef 
  }
raw 306:*: {
    var %chan = $comchan($me,1)
    echo -c Other %chan $replace($tstamp,04,05) 14 (05-15 Away 05-14) (05-15 Your marked as being away 05-14) 
cline -l $Color(gray) %chan $fline(%chan,$me,1,1)
    haltdef 
}

Should work. If it doesn't, try not to use variables and see what happens.

 

Work thanks, fus. :)

Custom Computer

AMD Athlon 64 x2 Dual Core 5200+

Asus M2N-SLI MOB

2GB DDR2 @ 800mhz

160GB Hard Drive

NVidia GeForce 8400GS 256

NP :)