Skip to content
MSN

dialog help

A TG007 community discussion started by darkside123.

Discussion 12 posts
Page 1 of 1
Open
Topic #3065 · 12 published posts · 827 views

hi i am trying to code a dialog kicker. i coded out a nicklist type section to where i could click on a nick on the left then click on a button and it will kick the nick. but i cant seem to work out how to code it where u click on the nick and it identifys it to kick. could anyone plz help me out so far i got

dialog kickdialog {
 title "kickdialog"
 size -1 -1 184 224
 option dbu
 icon C:\mirc.l\images\nuke.ico, 0
 icon 1, 8 0 159 47, C:\mirc.l\Images\hi.jpg, 0
 button "Button", 2, 104 208 37 12, ok
 list 3, 0 56 74 106, sort size extsel
 button "kick cust", 6, 80 56 37 12
}
on *:dialog:kickdialog:init:*:{
 mdxinit
 mdx SetControlMDX $dname 1001 positioner  minbox > dll\dialog.mdx
 loadnicks
 did -a $dname 2 $nick($active,0)
}
alias loadnicks {
 set %nickzchan $active
 set %n 0
 :start
 inc %n
 if ($nick($active,%n) isowner $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) 
   goto start
 }
 if ($nick($active,%n) isop $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) 
   goto start
 }
 if ($nick($active,%n) isvo $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) 
   goto start
 }
 if ($nick($active,%n) isreg $active) {
   did -a $dname 3 $nick($active,%n) $chr(9) 
   goto start
 }
  On *:Dialog:kickdialog:sclick:6:{

 

and them im lost

Edited Mar 9, 2005 11:18 AM by darkside123

dialog kickdialog {
title "kickdialog"
size -1 -1 184 224
option dbu
icon C:\mirc.l\images\nuke.ico, 0
icon 1, 8 0 159 47, C:\mirc.l\Images\hi.jpg, 0
button "Button", 2, 104 208 37 12, ok
list 3, 0 56 74 106, sort size extsel
button "kick nick", 6, 80 56 37 12
}
on *:dialog:kickdialog:init:*:{ loadnicks | did -a $dname 2 $nick($active,0) }
On *:Dialog:kickdialog:sclick:6: kick $active $did($dname,3).seltext
alias loadnicks {
var %chan = $active , %l = 1
while ($nick(%chan,%l)) { did -a $dname 3 $ifmatch | inc %l }
}

 

this is the same thing, but isn't MDX. So yea, this should get you started, and you just start modifying it to suite the MDX needs.

ahhh ok i see where i went wrong. thanks it works like a charm

how would i add a ban to that??? so i can make it a kick with a one min ban or somthing

On *:Dialog:kickdialog:sclick:6:{ $iif($network == MSN,access $active add deny $address($did($dname $+ $chr(44) $+ 3).seltext $+ $chr(44) $+ 1) 1,mode $active +b $address($did($dname $+ $chr(44) $+ 3).seltext $+ $chr(44) $+ 1) 1) | kick $active $did($dname,3).seltext }

Edited Mar 12, 2005 11:14 AM by Warrior124

*Too few parameters: $address

how do i change that??

On *:Dialog:kickdialog:sclick:6:{ $iif($network == MSN,access $active add deny,mode $active +b) $ial($did($dname,8).seltext).addr 1 | kick $active $did($dname,3).seltext }

ok its adding DENY 1!*@*$* to the access list but not a gatekeeper along with it. so its not banning the nick

gatekeeper's code will work, but you have to do /who $chan when you first go into the room, or any time before actually using the command.

bfush.PNG

i'm guessing you are now using MDX so in that case try this

 

On *:Dialog:kickdialog:sclick:6:{ $iif($network == MSN,access $active add deny,mode $active +b) $ial($gettok($did($dname,8).seltext,6,32)).addr 1 | kick $active $gettok($did($dname,8).seltext,6,32) }

lol well this is odd cuz i cant get anything to work.i dunno if it matters that im using nuclear and not vincula so the access comands are different?. ill keep at it but thanks for all ur help guys

in that case, Vex is the man to talk to then cause i aint so clueie on NuClear