Skip to content
MSN

Dialog Help

A TG007 community discussion started by RAIN70.

Discussion 6 posts
Page 1 of 1
Open
Topic #3228 · 6 published posts · 841 views

I have been using this on Phriek chat it works great showing the GateKeeper and the Decoded Nic, Im trying to get it to work in groups but the only part that is not working is its not showing Decoded Nic at all but everything else works

The Niclist part works great also but when i click on nic it dont decode in the decoded nic box but gatekeeper works great

menu menubar,nicklist,channel { 
 - 
 ROOM HELP:/dialog -ma nick nick 
} 
dialog nick { 
 title "Room Controls" 
 size -1 -1 182 115 
 option dbu 
 list 1, 2 2 92 60, size 
 text "GateKeeper", 24, 5 89 41 8 
 edit "", 25, 3 98 122 10, read 
 edit "", 26, 3 77 93 10, read 
 text "Decoded Nick", 27, 5 67 39 8 
 box "ADMIN CONTROLS", 2, 98 0 81 24 
 button "ADMIN +", 3, 100 9 37 10 
 button "ADMIN -", 6, 139 9 37 10 
 box "AUTO HELP", 66, 98 26 81 24 
 button "ON", 67, 100 34 37 10 
 button "OFF", 68, 139 34 37 10 
} 
; AUTO HELP 
on *:dialog:nick:sclick:67:{ .enable #autohelp | echo -a AutoHelp On } 
on *:dialog:nick:sclick:68:{ .disable #autohelp | echo -a AutoHelp off } 
; Admin Commands 
on *:dialog:nick:sclick:3:{ .auser admin *! $+ $$ial(%nickz $+ *,1).addr $dc(%nickz) | echo -a %nickz is now added to admin |  notice %nickz Please type @com1 for Admin commands | unset %nickz | .timer -m 1 3 refnick } 
on *:dialog:nick:sclick:6:{ .ruser admin *! $+ $$ial(%nickz $+ *,1).addr | echo -a %nickz is now removed from admin | notice %nickz  You have been Removed from Admin | unset %nickz | .timer -m 1 3 refnick } 

on *:dialog:nick:init:*: { 
 did -r nick 1 
 refnick 
} 
on *:dialog:nick:sclick:1:{ 
 set %nickz $did(1).seltext 
 did -ra nick 26 $dc($did(1).seltext) 
 did -ra nick 25 $$ial($did(1).seltext,1).addr 
}  
alias refnick { 
 unset %nickz 
 did -r nick 1 
 did -r nick 26 | did -a nick 26 -=[No Nickname Selected]=- 
 did -r nick 25 | did -a nick 25 -=[No Gatekeeper Selected]=- 
 set %nk 1 
 :nk 
 if (%nk == $calc($nick($active,0) + 1)) { unset %nk | return } 
 if (%nk != $calc($nick($active,0) + 1)) { did -a nick 1 $nick($active,%nk) | inc %nk 1 | goto nk | return } 
} 

 

Thanks in Advance

RAIN70, I just tried your dialog. However, not all the aliases were put down, and it isn't working properly. I can only guess that the flaw you are getting is in one of the aliases that you didn't give. Is there any way you can give all that you have, and we will be able to better help you then?

Edited Mar 29, 2005 9:47 AM by Warrior124

Thas all thier is Warrior

 

menu menubar,nicklist,channel {
 -
 ROOM HELP:/dialog -ma nick nick
}
dialog nick {
 title "Room Controls"
 size -1 -1 182 115
 option dbu
 list 1, 2 2 92 60, size
 text "GateKeeper", 24, 5 89 41 8
 edit "", 25, 3 98 122 10, read
 edit "", 26, 3 77 93 10, read
 text "Decoded Nick", 27, 5 67 39 8
 box "ADMIN CONTROLS", 2, 98 0 81 24
 button "ADMIN +", 3, 100 9 37 10
 button "ADMIN -", 6, 139 9 37 10
 box "AUTO HELP", 66, 98 26 81 24
 button "ON", 67, 100 34 37 10
 button "OFF", 68, 139 34 37 10
}
; AUTO HELP
on *:dialog:nick:sclick:67:{ .enable #autohelp | echo -a AutoHelp On }
on *:dialog:nick:sclick:68:{ .disable #autohelp | echo -a AutoHelp off }
; Admin Commands
on *:dialog:nick:sclick:3:{ .auser admin *! $+ $$ial(%nickz $+ *,1).addr $dc(%nickz) | echo -a %nickz is now added to admin |  notice %nickz Please type @com1 for Admin commands | unset %nickz | .timer -m 1 3 refnick }
on *:dialog:nick:sclick:6:{ .ruser admin *! $+ $$ial(%nickz $+ *,1).addr | echo -a %nickz is now removed from admin | notice %nickz  You have been Removed from Admin | unset %nickz | .timer -m 1 3 refnick }

on *:dialog:nick:init:*: { 
 did -r nick 1
 refnick 
}
on *:dialog:nick:sclick:1:{ 
 set %nickz $did(1).seltext
 did -ra nick 26 $dc($did(1).seltext)
 did -ra nick 25 $$ial($did(1).seltext,1).addr
}  
alias refnick {
 unset %nickz
 did -r nick 1
 did -r nick 26 | did -a nick 26 -=[No Nickname Selected]=-
 did -r nick 25 | did -a nick 25 -=[No Gatekeeper Selected]=-
 set %nk 1
 :nk
 if (%nk == $calc($nick($active,0) + 1)) { unset %nk | return }
 if (%nk != $calc($nick($active,0) + 1)) { did -a nick 1 $nick($active,%nk) | inc %nk 1 | goto nk | return }
}

 

Thas the complete code i just loaded it into sercencer ver 2 in groups and it worked great except the decoding the nic part so i have no idea but ty anyway

 

Okay, it looks like it is missing the alias for dc. Here is the code I'm specifying that needs the dc alias...

 

on *:dialog:nick:sclick:1:{
set %nickz $did(1).seltext
did -ra nick 26 $dc($did(1).seltext)
did -ra nick 25 $$ial($did(1).seltext,1).addr
}  

i tried that snippit in its place but still no luck

but thankyou

What is the actual alias (code) for dc?