Advertisement
WraithRIOT

Fixed

Sep 1st, 2011
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.73 KB | None | 0 0
  1. alias Sini {
  2.   dialog -ma Sini Sini
  3. }
  4.  
  5. dialog Sini {
  6.   title "Invite Dialog"
  7.   size -1 -1 385 179
  8. }
  9.  
  10. on *:dialog:Sini:*:*: {
  11.   if ($devent == init) {
  12.     dcx Mark $dname Sini_cb
  13.     xdialog -b $dname +zto
  14.  
  15.     xdialog -c $dname 2 button 3 155 75 20 tabstop
  16.     xdid -t $dname 2 Join Channel
  17.  
  18.     xdialog -c $dname 5 edit 278 156 100 20 autohs autovs tabstop
  19.     xdid -a $dname 5 Your Reply
  20.  
  21.     xdialog -c $dname 1 richedit 1 0 390 150 multi hsbar vsbar tabstop read
  22.  
  23.     xdialog -c $dname 3 button 83 155 85 20 tabstop
  24.     xdid -t $dname 3 Ignore Invite
  25.  
  26.     xdialog -c $dname 4 button 174 155 98 20 tabstop
  27.     xdid -t $dname 4 Notice And Ignore
  28.  
  29.     xdid -f $dname 1 +a ansi 10 Times New Roman
  30.     xdid -f $dname 2,3,4,5 +a ansi 8 Times New Roman
  31.  
  32.     xdid -C $dname 1 +t $color(15)
  33.     xdid -C $dname 1 +b $color(1)
  34.     xdid -C $dname 1 +k $color(1)
  35.     xdid -k $dname 1 $color(1)
  36.  
  37.   }
  38. }
  39.  
  40. alias Sini_cb {
  41.   If ($2 == Sclick) {
  42.     If ($3 == 4) { Notice %Nick.Sini 11,1 $chr(171) $+ 14(15Invite Not Approved14)11 $+ $chr(187)  Reason: $xdid($1,5).text | Dialog -x $1 $1 }
  43.     If ($3 == 3) { Dialog -x $1 $1 }
  44.     If ($3 == 2) { Join %Chan.Sini | Dialog -x $1 $1 }
  45.   }
  46.   If ($2 == Close) { Unset %Nick.Sini %Chan.Sini }
  47. }
  48.  
  49.  
  50. On ^*:Invite:*:{
  51. If (!$Dialog(Sini)) {
  52.   Dialog -m Sini Sini
  53.   Set %Nick.Sini $Nick
  54.   Set %Chan.Sini $Chan
  55.   xdid -a Sini 1 15,1 Invite From $Nick $crlf
  56.   xdid -a Sini 1 15,1 Server: $Server $crlf
  57.   xdid -a Sini 1 15,1 Channel: $chan
  58.   Halt
  59. }
  60. elseif ($Dialog(Sini)) {
  61.   Set %Nick.Sini $Nick
  62.   Set %Chan.Sini $Chan
  63.   xdid -r Sini 1
  64.   xdid -a Sini 1 15,1 Invite From $Nick $crlf
  65.   xdid -a Sini 1 15,1 Server: $Server $crlf
  66.   xdid -a Sini 1 15,1 Channel: $chan
  67.   Halt
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement