mIRC Home    About    Download    Register    News    Help

Print Thread
#7918 23/01/03 04:00 AM
L
Larra
Larra
L
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.

#7919 23/01/03 05:02 AM
S
Sabby
Sabby
S
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)

#7920 26/01/03 01:44 AM
B
BoredNL
BoredNL
B
Classes sound like a wonderful idea.

Using props is super sloppy. :P

#7921 04/02/03 11:57 AM
Joined: Feb 2003
Posts: 306
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 306
i also sugest something like a class compiler to dll to allow the code to run faster smile

#7922 04/02/03 12:02 PM
Joined: Dec 2002
Posts: 1,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
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?

#7923 04/02/03 03:29 PM
Joined: Feb 2003
Posts: 306
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 306

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 .


Link Copied to Clipboard