This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

.chanset thing

Old posts that have not been replied to for several years.
Locked
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

.chanset thing

Post by caesar »

Hi. I want some sugestions, tips or something like this, and to use .chanset #chan +something and for the channels with the +something the tcl reacts and for the channels without +something or -something to not do nothing at all..
Once the game is over, the king and the pawn go back in the same box.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

setudef?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Yes, setudef, but I was asking how can I make something with this? I meen how to chk if it exists in a channel flags. And please give me an example of the usage of the setudef cos I don't want to screw it up. Thanks.
Once the game is over, the king and the pawn go back in the same box.
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

If you're using a new eggdrop (I forget which version of 1.6 this appeared in) then you can very easily check the status of the flag with

channel get #chan flagname

If it returns 0, the flag is off. Anything else means the flag is on.

To create the flag, look up the syntax of setudef. I forgot it.

If you want to make it work on older eggdrops, you have to use "channel info" and then look through the list that it returns for your flag. I think.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

The "channel get #chan setting" was added in 1.6.11.

For flags, it returns 0 if a setudef flag is - (disabled) or non-zero if it's + (enabled). For int settings, it returns the value.

In versions before this, you have to use "channel info" and use lsearch to locate the setting. Flags will takr the format "+flag" and "-flag" and int will take the format "flag value".
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Can you give me please an short example of this?
Once the game is over, the king and the pawn go back in the same box.
Locked