mIRC Home    About    Download    Register    News    Help

Print Thread
#7918 23/01/03 04:00 AM
Joined: Dec 2002
Posts: 39
L
Larra Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 39
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
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
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)


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk
#7920 26/01/03 01:44 AM
Joined: Jan 2003
Posts: 154
B
Vogon poet
Offline
Vogon poet
B
Joined: Jan 2003
Posts: 154
Classes sound like a wonderful idea.

Using props is super sloppy. :P


- Wherever you go there you are.[color:lightgreen]
#7921 04/02/03 11:57 AM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
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,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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?


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#7923 04/02/03 03:29 PM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307

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