Advertisement
Guest User

NoticeChat

a guest
Nov 10th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ON *:DIALOG:Ntable:init:0: {
  3.   set %ntable on
  4. }
  5.  
  6. on *:NOTICE:*:*:{
  7.   set %eNick $nick
  8.   set %msj $1-
  9.   if (%ntable == on) { /notchat }
  10. }
  11.  
  12. alias notchat {
  13.   var %bsnicks = 0
  14.   while (%bsnicks < 40) {
  15.     if ($did(ntable, 2,%bsnicks).text == %enick) { /notnick  |  halt }
  16.     inc %bsnicks 1
  17.   }
  18.   Echo -s 4Notice: 3 %enick 1 No agregado al chat Notice
  19. }
  20.  
  21. ON *:DIALOG:Ntable:close:*: {
  22.   set %ntable off
  23. }
  24.  
  25.  
  26.  
  27.  
  28. alias Notnick {
  29.   var %bsnick = 1
  30.   while (%bsnick < 40) {
  31.     if ($did(ntable, 2,%bsnick).text == %enick) { did -a ntable 8 %enick $+ : %msj $chr(10)  |  halt }
  32.     else {
  33.       did -a ntable 2 %enick
  34.       did -a ntable 8 %enick $+ : %msj  $chr(10)
  35.       halt
  36.     }
  37.     inc %bsnick 1
  38.   }
  39.  
  40. }
  41.  
  42. on *:dialog:ntable:sclick:6:{
  43.   if ($did(ntable, 2, 1).text == $null) { did -a ntable 8 **NO HAY USUARIOS EN LISTA**  $chr(10)  }
  44.   else {
  45.     /okManda
  46.   }
  47.  
  48. }
  49.  
  50. alias okmanda {
  51.   var %bbnick = 1
  52.   while (%bbnick < 15) {
  53.     if ($did(ntable, 2,%bbnick).text == $null) {  halt }
  54.     else {
  55.       did -a ntable 8 $me $+ : $did(ntable, 5).text $chr(10)
  56.       /notice $did(ntable, 2,%bbnick).text $did(ntable, 5).text
  57.       did -r ntable 5
  58.       did -t ntable 6
  59.       did -f ntable 5
  60.       halt
  61.     }
  62.     inc %bbnick 1
  63.   }
  64.  
  65. }
  66.  
  67. on *:dialog:ntable:sclick:4:{
  68.   did -a ntable 2 $$?"Agregar Nick al Chat Notice"
  69.   /notice $! Participas en un canal ChatNotice con $me
  70. }
  71.  
  72. on *:dialog:ntable:sclick:3:{
  73.   /notice $did(ntable, 2).seltext Ya no participas de la sesión ChatNotice de $me
  74.   did -d ntable 2 $did(ntable, 2).sel
  75. }
  76.  
  77.  
  78. on *:dialog:ntable:sclick:7:{
  79.   did -a ntable 8  $me <Susurro> $did(ntable, 2).seltext $did(ntable, 5).text $chr(10)
  80.   /notice $did(ntable, 2).seltext <Susurro> $did(ntable, 5).text
  81. }
  82.  
  83.  
  84. dialog Ntable {
  85.   title "Notice Chat"
  86.   size -1 -1 276 150
  87.   option dbu
  88.   box "Notice List chat", 1, 209 7 67 125
  89.   list 2, 210 14 65 104, size vsbar
  90.   button "-", 3, 214 118 28 12
  91.   button "+", 4, 243 118 28 12
  92.   edit "", 5, 1 135 209 13
  93.   button "Enviar", 6, 210 136 33 11 default
  94.   button "Select Send", 7, 243 136 31 11
  95.   edit "", 8, 6 18 200 112, multi return vsbar
  96.   box "Mensajes Notice", 9, 3 7 206 125
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement