okay i made now better script for my "user settings"
-> description: you edit your $nick, $anick, $fullname and identd ID with enableing ident/disableing it

this is code:


alias perstg {
dialog -m perstg perstg
}


dialog perstg {
title "Personal User Settings"
size -1 -1 167 108
option dbu
box " User Settings ", 1, 5 5 157 97
text "Current nick:", 2, 11 20 34 8
text "Alternate nick:", 3, 11 35 36 8
text "Full (IRC) name:", 4, 11 50 41 8
text "Identd ID:", 5, 11 66 26 8
edit "", 6, 56 19 100 10
edit "", 7, 56 34 100 10
edit "", 8, 56 49 100 10
edit "", 9, 56 66 23 10
check "Enable Identd Server", 13, 90 68 60 8
button "Cancel", 10, 124 85 32 12, cancel flat
button "Apply", 11, 55 85 32 12, ok flat
button "Reset", 12, 89 85 32 12, flat
}

on *:DIALOG:perstg:init:*:{

if (%nick != $null) { did -a perstg 6 %nick }
if (%anick != $null) { did -a perstg 7 %anick }
if (%fname != $null) { did -a perstg 8 %fname }
if (%id != $null) { did -a perstg 9 %id }
}

on *:dialog:perstg:sclick:*:{

if ($did = 13) { if (%identd = Off) { did -u perstg 13 | .set %ident Off | elseif { %identd = On | did -c perstg 13 | .set %ident On } } }

}

if ($did = 11) {
%nick = $did(6) | .nick %nick
%anick = $did(7) | .anick %anick
%fname = $did(8) | .fullname %fname
%id = $did(9) | .identd on %id
if (%identd = On) { did -c perstg 13 | .identd on %id | elseif { %identd = Off | did -u perstg 13 | .identd off } }
}

if ($did = 12) {
%nick = %nick | did -r perstg 6 | did -a perstg 6 Guest91236 | .set %nick Guest91236 | .nick Guest91236
%anick = %anick | did -r perstg 7 | did -a perstg 7 Guest8264 | .set %anick Guest8264 | .anick Guest8264
%fname = %fname | did -r perstg 8 | did -a perstg 8 ~ | .set %fname ~ | .fullname ~
%id = %id | did -r perstg 9 | did -a perstg 9 id | .set %id id | .identd on id | .timer 1 3 .identd off
%identd = On | did -c perstd 13

}

it worked GREAT until i added checkbox for identd server On/Off and now nothing wont work and i cant control with checkbox that identd (when it will go on or off)

someone wise please help