mIRC Home    About    Download    Register    News    Help

Print Thread
#34825 07/07/03 09:35 PM
Joined: Jul 2003
Posts: 2
H
Header Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
H
Joined: Jul 2003
Posts: 2
hello people!
i need to add in nicklist popup this code but i cant

$iif(party(party),$style(1)) $chr(160) $iif($1,Party): party $iif(partyoff(partyoff),partyoff) partyoff

how can make this code in ON/OFF in one clicked
On = Party Off = Party off

#34826 07/07/03 10:02 PM
Joined: Dec 2002
Posts: 29
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 29
This example is done by using group,i have group named party
so it goes :
#party off
some commands here
#party end
---------------------
in popups section:
Party
.$iif($group(#party) == on,$style(1)) On:enable #party
.$iif($group(#party) == off,$style(1)) Off:disable #party
---------------------------------
This can be done with variables too for example if you have Variable %party set to 1 for on and 0 for off then popups will be
Party
.$iif(%party == 1,$style(1)) On:set %party 1
.$iif(%party == 0,$style(1)) Off:set %party 0

#34827 07/07/03 10:15 PM
Joined: Jul 2003
Posts: 2
H
Header Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
H
Joined: Jul 2003
Posts: 2
thnx but not work just is this notice
* /enable: no such group(s)

is not posible to make in one click On/Off i mean if i click one time on name eg. Party on menu at te moment is actived and when i click back on the same name Party desactived ?

#34828 07/07/03 10:55 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
menu channel {
Party
.$iif($group(#party) == off,Activate Party) { enable #party }
.$iif($group(#party) == on,De-active Party) { disable #party }
}

#party off
Commands
#party end

*Before anyone quotes me on this post it did actually read
Code:
 
.$iif($group(#whois) == off,Activate Party) { enable #party }
.$iif($group(#whois) == on,De-active Party) { disable #party }

That was because I used my whois group as an example to get it to work and forgot to change it back to #party when posting the reply. Sorry about that.

Last edited by SladeKraven; 07/07/03 11:11 PM.

Link Copied to Clipboard