mIRC Home    About    Download    Register    News    Help

Print Thread
#21720 01/05/03 03:15 AM
Joined: Feb 2003
Posts: 8
M
mattiaz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Feb 2003
Posts: 8
i've made a channel specific script in which a use..
Code:
menu channel {
  script setup: /setup
}

but i only want it to appear in that channel,
not every channel i am on.. also if possible
it should only appear on a specific network..

Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Code:
menu channel {
  $iif([color:blue]#Channelname[/color] == # && $network == [color:darkblue]network[/color],script setup):setup
}

Change the blue #channelname and the network

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
menu channel {
$iif($active == #chan, Script Setup):/setup
}


-KingTomato
Joined: Jan 2003
Posts: 20
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 20
How can I create submenus with it? I tried to put $iif around every menuitem, but it renders without submenus like this:

ESL Support
.Queue
..open
..close
.Users
..next
..done

Code:
menu channel {
  $iif( $chan == #esl.support, ESL Support )
  $iif( $chan == #esl.support, .Queue )
  $iif( $chan == #esl.support, ..open ):msg #esl.support !openque
  $iif( $chan == #esl.support, ..close ):msg #esl.support !closeque
  $iif( $chan == #esl.support, .Users )
  $iif( $chan == #esl.support, ..next ):msg #esl.support !next
  $iif( $chan == #esl.support, ..done ):msg #esl.support !done
}


What am I doing wrong?


__________________
"Who cares. Out of sight, out of mind."
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
you are using $chan, not $active >:D $chan is only for events, not for "independant" compares.


-KingTomato
Joined: Jan 2003
Posts: 20
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 20
well, doesn't work either, it renders the same way.


__________________
"Who cares. Out of sight, out of mind."
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
u also don't have the ".." "..." or "." prefixed infront of the $iif's to "indent" the popups.


-KingTomato
Joined: Jan 2003
Posts: 20
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 20
That's it, thanks smile


__________________
"Who cares. Out of sight, out of mind."

Link Copied to Clipboard