Evaluation Script

Platform:  mIRC
Published  Nov 14, 2009
Updated  Nov 14, 2009
This script will evaluate any variable in mIRC, by variable, I mean something like $idle, $away, or something like that.

Try doing something like //say $away or //say $mircdir in mIRC, and see what comes up, this script makes it look better and cooler by evaluating it.

==Usage==
/eval <variable>

Some example of what variables you can use:
$away, $mircdir, $idle, $duration($idle), $me .

Anything like that.

This script goes in your remote.

Enjoy! alias eval {
var %ticks $ticks
if ([ [ $1- ] ] != $null) { msg $active Evaluation | msg $active  $+ $chr(91) $+  $1-  $+ $chr(93) $+  == [ [ $1- ] ] - $calc($ticks - %ticks) $+ ms }
else { msg $active Evaluation | msg $active  $+ $chr(91) $+  $1-  $+ $chr(93) $+  == No such Identifier - $calc($ticks - %ticks) $+ ms }
:error
var %temperr = $error
if (%temperr) { msg $active Evaluation | msg $active  $+ $chr(91) $+  $1-  $+ $chr(93) $+  ==  $+ $gettok($gettok($gettok(%temperr,1-,32),2,58),1,32) $+  - $remove($gettok(%temperr,1,58),*) - $calc($ticks - %ticks) $+ ms }
reseterror
haltdef
}

Comments

Sign in to comment.
Kasbah   -  Nov 15, 2009
Good script CadetAndrew, keep it up.

You can also do: $!away, $!mircdir, $!idle, $!duration($idle), $!me, $!time, $!date etc.. to re-evaluate.
 Respond  
Riffpilgrim   -  Nov 15, 2009
or you could just do something along these lines:
Code
 
 Respond  
tzar469   -  Nov 14, 2009
$me is an identifier.
%me is a variable.

See the difference? ;)
 Respond  
Weasel   -  Nov 14, 2009
Try using //echo instead <_<
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.