mIRC Home    About    Download    Register    News    Help

Print Thread
#8963 30/01/03 10:52 PM
Joined: Jan 2003
Posts: 21
J
Jay_T Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2003
Posts: 21
.War mode [( $+ #kick $+ )]
..Turn on: /enable #kick
..Turn off: /disable #kick

Can anyone help me what is wrong with this?

#8964 30/01/03 11:47 PM
Joined: Jan 2003
Posts: 11
T
Pikka bird
Offline
Pikka bird
T
Joined: Jan 2003
Posts: 11
.War mode ( $+ $group(#kick) $+ )
..Turn on: .enable #kick
..Turn off: .disable #kick


maybe thats what you're looking for

#8965 31/01/03 04:38 PM
Joined: Dec 2002
Posts: 143
A
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
Following from what Twistx said, why not go one better:
Code:
menu status {
  .War mode $chr(60) $+ $group(#kick) $+ $chr(62)
  ..Turn $iif($group(#kick) == on,Off,On):{
    $iif($group(#kick) == on,.disable #kick,.enable #kick)
    echo -a 10WARMODE: 14<<06#Kick14>> 04has now been turned $+(14<<,06,$iif($group(#kick) == on,On,Off),14>>)
  }
}

This only gives you the option to turn it on if it's off, or off if it's on...

Oh, and also tells you that it is on/off

Just a suggestion, but hope it helps smile


Aubs.
cool

#8966 01/02/03 12:29 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Following from what Aubs said, why not go one better:
Code:

menu status {
  .$iif($group(#kick).status == on,$style(1)) War mode:{
    $iif($group(#kick).status == on,.disable,.enable)  #kick
    echo -a 10WARMODE: 14<<06#Kick14>> 04has now been $&
      turned $+(14<<,06,$iif($group(#kick).status == on,On,Off),14>>)
  }
}

This one just shows a checkmark beside War mode if it's turned on, and doesn't show the checkmark if it's not turned on; clicking it toggles it on or off.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard