mIRC Homepage
Posted By: Larra little clases - 23/01/03 04:00 AM
would be useful a kind of clases, such as alias, but allowing its own aliases in them

class away {
start {
set %reason $1
away $iif($1,$ifmatch,No Reason)
}
back { if ($away) away }
show { amsg %reason }
}

where %reason is only accesible in away class
away.start, away.back, away.show

thats all, aliases containing aliases and custom vars.
Posted By: Sabby Re: little clases - 23/01/03 05:02 AM
well you can use $prop and other stuff..

example:

Code:
alias blah {
if ($prop == moo) return $1- $+ ; A cow goes MOO!
if ($prop == oink) return $1- $+ ; A pig goes OINK!
}

//me $blah(Nickname).moo


you could also set $1 and $2

Code:
alias blah {
if ($1 == moo) return $2- $+ ; A cow goes MOO!
if ($1 == oink) return $2- $+ ; A pig goes OINK!
}

//me $blah(moo,Nickname)
Posted By: BoredNL Re: little clases - 26/01/03 01:44 AM
Classes sound like a wonderful idea.

Using props is super sloppy. :P
Posted By: tontito Re: little clases - 04/02/03 11:57 AM
i also sugest something like a class compiler to dll to allow the code to run faster smile
Posted By: Hammer Re: little clases - 04/02/03 12:02 PM
A class compiler to a DLL? You know, that sounds remarkably like C++. Why not use C++ to create your classes and then compile them into a DLL to make them run faster? You know, you could even interface mIRC to your classes using $dll and /dll. Fantastic, huh?
Posted By: tontito Re: little clases - 04/02/03 03:29 PM

Your right and i know that, but there are some scripters that don't know c++ or delphi so this could be very good for them, if possible smile .
© mIRC Discussion Forums