mIRC Home    About    Download    Register    News    Help

Print Thread
#107194 07/01/05 08:22 PM
S
state
state
S
there was a dialog about that looked like the msn chat one. does any one know the code for this? thanks in advance

#107195 07/01/05 08:48 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
What do you mean?

#107196 07/01/05 09:04 PM
S
state
state
S
in msn chat, there was a custum kick dialog. i have seen someone create something simular in mirc.

#107197 07/01/05 09:06 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Sorry for being dense, I don't know what a custom kick dialog is.

Is that a dialog box allowing you to kick someone from a channel when entering their nickname in an editbox/input box?

#107198 07/01/05 09:13 PM
S
state
state
S
it would of been created i dialog studio or something simular. basicly a text box witch you could add a custom kick msg, then a drop down list with varible bans on, i.e 1 hour,5 hours etc

#107199 07/01/05 09:38 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Ok I just came up with this, it looks kinda crappy but you get the idea right?
Code:
dialog kicker {
  title "Custom kicker"
  size -1 -1 100 100
  option dbu
  Text "Length:",1,35 5 20 10 center
  combo 2, 15 20 70 30, drop
  edit "", 3, 15 40 70 10
  Button "Submit" 4, 24 60 50 10
}

on 1:dialog:kicker:init:0: {
  did -a kicker 2 1 hour
  did -a kicker 2 half hour
  did -a kicker 2 15 mins
  did -a kicker 2 7 mins
  did -a kicker 2 3 mins
  did -a kicker 2 1 min
  did -a kicker 2 30 secs
}

on 1:dialog:kicker:sclick:2 {
  if ($did($dname,2).seltext == 1 hour) { Set %ban 3600 }
  if ($did($dname,2).seltext == half hour) { Set %ban 1800 }
  if ($did($dname,2).seltext == 15 mins) { Set %ban 900 }
  if ($did($dname,2).seltext == 7 mins) { Set %ban 420 }
  if ($did($dname,2).seltext == 3 mins) { Set %ban 180 }
  if ($did($dname,2).seltext == 1 min) { Set %ban 60 }
  if ($did($dname,2).seltext == 30 secs) { Set %ban 30 }
}

on 1:dialog:kicker:sclick:4: {
  if (%ban) && ($did($dname,3)) { 
    if ($me isop $did($dname,3)) { var %nick = $?? | ban -ku $+ %ban $did($dname,3) %nick banned for $duration($+(%ban)) }
  }
}

#107200 07/01/05 10:09 PM
S
state
state
S
thank you laugh you are very kind

#107201 07/01/05 10:19 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
You're most welcome. smile


Link Copied to Clipboard