Hello!
I've just started to script dialogs for my bot, and well.. I am stuck at how to set the value of a variable depending on whether a checkbox is checked or not.
This is the specific code I am trying to use to set %banprot to 1 if the checkbox with ID 4 is checked:
on *:dialog:config:sclick:4: {
set %banprot 1
}
However, I have no idea whatsoever on how to make %banprot 0 if the checkbox stays unchecked.
Any help at all will be hugely appreciated!
Regards,
Wishie