PDA

View Full Version : Advice


Silus
27-07-2001, 15:23
Lo fellas,

I run an ftp server and basically I want a system so if i type /off (or what ever) when ever someone does !status, they will get a /notice saying its currently offline. Or if its /on they will get a different /notice.

I know how to do the on:text etc, but I dont know how to set the variable on and off.

Any suggestions appreciated :)

GameGuru
27-07-2001, 15:57
ok you need two things, an alias for /on and /off which will set a variable, then an on text event that checks the variable and then gives out a notice to the user depending on its state.

mIRC Knowledge needed: Aliases, On TEXT event, Variables.

Here's the alias code:


/on %FTPon = 1
/off unset %FTPon


Here's the Remote code:


on *:text:!status:#: {
if ( %FTPon != $null ) { notice $nick FTP is online! }
else { notice $nick FTP is offline. }
}


Sorted :)

Silus
27-07-2001, 16:07
wp that man ;)

Cheers m8