Autore: bull
Data: 30/11/2020
Linguaggio: mIRC Scripting
Descrizione: Botcentral test v1
  1. ;--botcentral
  2. alias botcentral { dialog -m botcentral botcentral }
  3. dialog botcentral {
  4.   title "Pannello comandi Bot - [/botcentral]"
  5.   size -1 -1 635 270
  6.   text "Nome bot", 1, 10 12 50 15
  7.   edit "", 2, 70 10 100 20, autohs
  8.  
  9.   tab "Admin", 101, 0 35 999 999
  10.   tab "AutoMode", 102
  11.   tab "Channel", 103
  12.   tab "Config", 104
  13.   tab "Misc", 105
  14.   tab "Network", 106
  15.   tab "NickAuth", 107
  16.   tab "Owner", 108
  17.   tab "User", 109
  18.   tab "Utilities", 110
  19.  
  20.   button "", 3, 5 65 100 20, disable
  21.   button "", 4, 110 65 100 20, disable
  22.   button "", 5, 215 65 100 20, disable
  23.   button "", 6, 320 65 100 20, disable
  24.   button "", 7, 425 65 100 20, disable
  25.   button "", 8, 530 65 100 20, disable
  26.  
  27.   button "", 9, 5 90 100 20, disable
  28.   button "", 10, 110 90 100 20, disable
  29.   button "", 11, 215 90 100 20, disable
  30.   button "", 12, 320 90 100 20, disable
  31.   button "", 13, 425 90 100 20, disable
  32.   button "", 14, 530 90 100 20, disable
  33.  
  34.   button "", 15, 5 115 100 20, disable
  35.   button "", 16, 110 115 100 20, disable
  36.   button "", 17, 215 115 100 20, disable
  37.   button "", 18, 320 115 100 20, disable
  38.   button "", 19, 425 115 100 20, disable
  39.   button "", 20, 530 115 100 20, disable
  40.  
  41.   button "", 21, 5 140 100 20, disable
  42.   button "", 22, 110 140 100 20, disable
  43.   button "", 23, 215 140 100 20, disable
  44.   button "", 24, 320 140 100 20, disable
  45.   button "", 25, 425 140 100 20, disable
  46.   button "", 26, 530 140 100 20, disable
  47.  
  48.   button "", 27, 5 165 100 20, disable
  49.   button "", 28, 110 165 100 20, disable
  50.   button "", 29, 215 165 100 20, disable
  51.   button "", 30, 320 165 100 20, disable
  52.   button "", 31, 425 165 100 20, disable
  53.   button "", 32, 530 165 100 20, disable
  54.  
  55.   button "", 33, 5 190 100 20, disable
  56.   button "", 34, 110 190 100 20, disable
  57.   button "", 35, 215 190 100 20, disable
  58.   button "", 36, 320 190 100 20, disable
  59.   button "", 37, 425 190 100 20, disable
  60.   button "", 38, 530 190 100 20, disable
  61.  
  62.   button "", 39, 5 215 100 20, disable
  63.   button "", 40, 110 215 100 20, disable
  64.   button "", 41, 215 215 100 20, disable
  65.   button "", 42, 320 215 100 20, disable
  66.   button "", 43, 425 215 100 20, disable
  67.   button "", 44, 530 215 100 20, disable
  68. }
  69. on *:dialog:botcentral:*:*: {
  70.   if ($devent = init) { botcentral.load admin
  71.   }
  72.   if ($devent = sclick) {
  73.     if ($did = 101) { botcentral.load $did(101).text  }
  74.     if ($did = 102) { botcentral.load $did(102).text  }
  75.     if ($did = 103) { botcentral.load $did(103).text  }
  76.     if ($did = 104) { botcentral.load $did(104).text  }
  77.     if ($did = 105) { botcentral.load $did(105).text  }
  78.     if ($did = 106) { botcentral.load $did(106).text  }
  79.     if ($did = 107) { botcentral.load $did(107).text  }
  80.     if ($did = 108) { botcentral.load $did(108).text  }
  81.     if ($did = 109) { botcentral.load $did(109).text  }
  82.     if ($did = 110) { botcentral.load $did(110).text  }
  83.   }
  84.   if ($devent = mouseZ) {
  85.     if ($did($dname,$did).text = acmd) { echo -a (list [--private] [--unloaded] [<plugin>]) -- Lists the commands available in the given plugin. If no plugin is given, lists the public plugins available. If --private is given, lists the private plugins. If --unloaded is given, it will list available plugins that are not loaded. }
  86.   }
  87. }
  88. alias botcentral.load {
  89.   if ($1 = Admin) {
  90.     did -rb botcentral 3-44
  91.     did -ea botcentral 3 acmd
  92.     did -ea botcentral 4 capability add
  93.     did -ea botcentral 5 capability remove
  94.     did -ea botcentral 6 channels
  95.     did -ea botcentral 7 clearq
  96.     did -ea botcentral 8 ignore add
  97.     did -ea botcentral 9 ignore list
  98.     did -ea botcentral 10 ignore remove
  99.     did -ea botcentral 11 join
  100.     did -ea botcentral 12 nick
  101.   }
  102.   if ($1 = Automode) {
  103.     did -rb botcentral 3-44
  104.   }
  105.   if ($1 = channel) {
  106.     did -rb botcentral 3-44
  107.     did -ea botcentral 3 alert
  108.     did -ea botcentral 4 ban add
  109.     did -ea botcentral 5 ban hostmask
  110.     did -ea botcentral 6 ban list
  111.     did -ea botcentral 7 ban remove
  112.     did -ea botcentral 8 capability add
  113.     did -ea botcentral 9 capability list
  114.     did -ea botcentral 10 capability remove
  115.     did -ea botcentral 11 capability set
  116.     did -ea botcentral 12 capability setdefault
  117.     did -ea botcentral 13 capability unset
  118.     did -ea botcentral 14 cycle
  119.     did -ea botcentral 15 dehalfop
  120.     did -ea botcentral 16 deop
  121.     did -ea botcentral 17 devoice
  122.     did -ea botcentral 18 disable
  123.     did -ea botcentral 19 enable
  124.     did -ea botcentral 20 halfop
  125.     did -ea botcentral 21 iban
  126.     did -ea botcentral 22 ignore add
  127.     did -ea botcentral 23 ignore list
  128.     did -ea botcentral 24 ignore remove
  129.     did -ea botcentral 25 invite
  130.     did -ea botcentral 26 kban
  131.     did -ea botcentral 27 key
  132.     did -ea botcentral 28 kick
  133.     did -ea botcentral 29 limit
  134.     did -ea botcentral 30 listbans
  135.     did -ea botcentral 31 lobotomy add
  136.     did -ea botcentral 32 lobotomy list
  137.     did -ea botcentral 33 lobotomy remove
  138.     did -ea botcentral 34 mode
  139.     did -ea botcentral 35 moderate
  140.     did -ea botcentral 36 nicks
  141.     did -ea botcentral 37 op
  142.     did -ea botcentral 38 part
  143.     did -ea botcentral 39 unban
  144.     did -ea botcentral 40 unmoderate
  145.     did -ea botcentral 41 voice
  146.   }
  147.   if ($1 = config) {
  148.     did -rb botcentral 3-44
  149.     did -ea botcentral 3 channel
  150.     did -ea botcentral 4 config
  151.     did -ea botcentral 5 default
  152.     did -ea botcentral 6 export
  153.     did -ea botcentral 7 help
  154.     did -ea botcentral 8 list
  155.     did -ea botcentral 9 network
  156.     did -ea botcentral 10 reload
  157.     did -ea botcentral 11 reset channel
  158.     did -ea botcentral 12 reset network
  159.     did -ea botcentral 13 search
  160.     did -ea botcentral 14 search help
  161.     did -ea botcentral 15 searchvalues
  162.     did -ea botcentral 16 setdefault
  163.   }
  164.   if ($1 = misc) {
  165.     did -rb botcentral 3-44
  166.     did -ea botcentral 3 apropos
  167.     did -ea botcentral 4 clearmores
  168.     did -ea botcentral 5 completenick
  169.     did -ea botcentral 6 help
  170.     did -ea botcentral 7 last
  171.     did -ea botcentral 8 list
  172.     did -ea botcentral 9 more
  173.     did -ea botcentral 10 noticetell
  174.     did -ea botcentral 11 ping
  175.     did -ea botcentral 12 source
  176.     did -ea botcentral 13 tell
  177.     did -ea botcentral 14 version
  178.   }
  179.   if ($1 = network) {
  180.     did -rb botcentral 3-44
  181.     did -ea botcentral 3 cmdall
  182.     did -ea botcentral 4 command
  183.     did -ea botcentral 5 connect
  184.     did -ea botcentral 6 disconnect
  185.     did -ea botcentral 7 driver
  186.     did -ea botcentral 8 latency
  187.     did -ea botcentral 9 networks
  188.     did -ea botcentral 10 reconnect
  189.     did -ea botcentral 11 uptime
  190.     did -ea botcentral 12 whois
  191.     did -ea botcentral 13 whowas
  192.   }
  193.   if ($1 = nickauth) {
  194.     did -rb botcentral 3-44
  195.     did -ea botcentral 3 auth
  196.     did -ea botcentral 4 nick add
  197.     did -ea botcentral 5 nick list
  198.     did -ea botcentral 6 nick remove
  199.   }
  200.   if ($1 = owner) {
  201.     did -rb botcentral 3-44
  202.     did -ea botcentral 3 announce
  203.     did -ea botcentral 4 defaultcapability
  204.     did -ea botcentral 5 defaultplugin
  205.     did -ea botcentral 6 disable
  206.     did -ea botcentral 7 enable
  207.     did -ea botcentral 8 flush
  208.     did -ea botcentral 9 ircquote
  209.     did -ea botcentral 10 load
  210.     did -ea botcentral 11 logmark
  211.     did -ea botcentral 12 quit
  212.     did -ea botcentral 13 reload
  213.     did -ea botcentral 14 reloadlocale
  214.     did -ea botcentral 15 rename
  215.     did -ea botcentral 16 unload
  216.     did -ea botcentral 17 unrename
  217.     did -ea botcentral 18 unkeep
  218.   }
  219.   if ($1 = user) {
  220.     did -rb botcentral 3-44
  221.     did -ea botcentral 3 capabilities
  222.     did -ea botcentral 4 changename
  223.     did -ea botcentral 5 hostmask
  224.     did -ea botcentral 6 hostmask add
  225.     did -ea botcentral 7 hostmask list
  226.     did -ea botcentral 8 hostmask remove
  227.     did -ea botcentral 9 register
  228.     did -ea botcentral 10 set password
  229.     did -ea botcentral 11 set secure
  230.     did -ea botcentral 12 stats
  231.     did -ea botcentral 13 unidentify
  232.     did -ea botcentral 14 unregister
  233.     did -ea botcentral 15 username
  234.     did -ea botcentral 16 whoami
  235.   }
  236.   if ($1 = utilities) {
  237.     did -rb botcentral 3-44
  238.     did -ea botcentral 3 apply
  239.     did -ea botcentral 4 countargs
  240.     did -ea botcentral 5 echo
  241.     did -ea botcentral 6 ignore
  242.     did -ea botcentral 7 last
  243.     did -ea botcentral 8 let
  244.     did -ea botcentral 9 sample
  245.     did -ea botcentral 10 shuffle
  246.     did -ea botcentral 11 sort
  247.     did -ea botcentral 12 success
  248.   }
  249. }
  250.  
dPaste use Geshi

Torna al NoPaste