Ok, I'm trying to build a new away system for my mIRC script. And I have run into some problems here. Everytime I use the change status command on it, it just says ( ) unknown command. Here is the code.
menu status,menubar {
Away System
.Status ( $+ %AwayStatus $+ ) : /AwayStatus
.Reason ( $+ %AwayReason $+ ) :/AwayReason $$?="Reason:"
}
alias AwayReason {
set -n %AwayReason $$1
echo **Away Reason Set
}
alias AwayStatus {
if (%AwayStatus == 0) {
set %AwayStatus 1
echo **You are now set as away! }
elseif (%AwayStatus == 1) {
set %AwayStatus 0
echo **You are not set as away! }
}
on *:TEXT:$me:#: {
if (%AwayStatus == 1)
me is away! Reason: %AwayReason
}
WTF is wrong here?