mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
ok, here is what i got, it echo's me, but i want it to message the current channel.

Code:
 menu channel {
  :sysinfo1
  Record Uptime {
    if ( $calc($ticks / 1000) > %uptimer ) {  set %uptimer $calc($ticks / 1000)  }
    else { goto sysinfo2 }
    :sysinfo2
    if (%sys.mode = a) { goto end } 
    else {
      %sys.mode [ $+ $dll(moo.dll,osinfo,_) $+ ] $+ . Record Uptime:4: $+ $duration(%uptimer)
    }
  }
  :end
}  

Joined: Jun 2004
Posts: 291
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
menu channel {
:sysinfo1
Record Uptime {
if ( $calc($ticks / 1000) > %uptimer ) { set %uptimer $calc($ticks / 1000) }
else { goto sysinfo2 }
:sysinfo2
if (%sys.mode = a) { goto end }
else {
%sys.mode [ $+ $dll(moo.dll,osinfo,_) $+ ] $+ . ­R­ecord ­U­ptime:4: $+ $duration(%uptimer)
}
}
:end
}

this is the command(in blue)
and im assuming that the variables
value is echo
but i cant see
so maybe if you changed the value
to msg $chan
or msg #channel
it would work
or just replace the variable with the actual command

------------------------------------------------------------------------
menu channel {
:sysinfo1
Record Uptime {
if ( $calc($ticks / 1000) > %uptimer ) { set %uptimer $calc($ticks / 1000) }
else { goto sysinfo2 }
:sysinfo2
if (%sys.mode = a) { goto end }
else {
msg $chan [ $+ $dll(moo.dll,osinfo,_) $+ ] $+ . ­R­ecord ­U­ptime:4: $+ $duration(%uptimer)
}
}
:end
}
-------------------------------------------------------------------------
but if the script sets a varible for the command
i would have thought you would
be able to choose somehow between echo and msg?



Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
didnt work off the bat. had to change something on your script (thx btw). this part
Code:
 msg $chan [ $+ $dll(moo.dll,osinfo,_) $+ ] $+[color:blue] .  [/color]  ­R­ecord ­U­ptime:4: $+ $duration(%uptimer)
  


didnt work so i tried this

Code:
 msg $chan [ $+ $dll(moo.dll,osinfo,_) $+ ] $+[color:blue] $chan  [/color]  ­R­ecord ­U­ptime:4: $+ $duration(%uptimer)
  


and it worked, thx for the help though


Link Copied to Clipboard