pony

userlist dialog box

Mar 15th, 2020
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.08 KB | None | 0 0
  1. on *:LOAD:dialog -m setup setup
  2.  
  3. dialog userlist {
  4. title "Userlist Viewing"
  5. size -1 -1 443 148
  6. option dbu
  7. list 1, 10 12 95 95, sort size hsbar vsbar
  8. list 2, 120 12 95 95, sort size hsbar vsbar
  9. list 3, 229 12 95 95, sort size hsbar vsbar
  10. box Level 1 ----- %Adminset , 4, 5 3 105 108
  11. box Level 2 ----- %Goldset , 5, 115 3 105 108
  12. box Level 3 ----- %brownset , 6, 224 3 105 108
  13. button "Remove", 7, 11 112 45 10
  14. button "Remove", 8, 121 112 45 10
  15. button "Remove", 9, 232 112 45 10
  16. button "Close", 10, 173 138 100 8, ok
  17. edit "", 11, 156 126 134 10, read autohs center
  18. button "Clear", 14, 58 112 45 10
  19. button "Clear", 15, 168 112 45 10
  20. button "Clear", 16, 279 112 45 10
  21. box Level 4 ----- %Kickset , 17, 333 3 105 108
  22. list 18, 337 12 95 95, sort size hsbar vsbar
  23. button "Remove", 19, 338 112 45 10
  24. button "Clear", 20, 386 112 45 10
  25. button "Set-up", 21, 316 133 50 10
  26. button "Help", 22, 367 133 50 10
  27. button "Manual Adding", 23, 28 131 50 12
  28. button "Manual Removing", 24, 80 131 50 12
  29. }
  30. on *:dialog:userlist:init:0:{
  31. getlist
  32. getlist1
  33. getlist2
  34. getlist3
  35. did -z userlist 1
  36. did -z userlist 2
  37. did -z userlist 3
  38. did -z userlist 18
  39. }
  40. on *:dialog:userlist:sclick:1:{
  41. did -ra userlist 11 $msn.decode($did($dname,1).seltext)
  42. }
  43. on *:dialog:userlist:sclick:2:{
  44. did -ra userlist 11 $msn.decode($did($dname,2).seltext)
  45. }
  46. on *:dialog:userlist:sclick:3:{
  47. did -ra userlist 11 $msn.decode($did($dname,3).seltext)
  48. }
  49. on *:dialog:userlist:sclick:18:{
  50. did -ra userlist 11 $msn.decode($did($dname,18).seltext)
  51. }
  52.  
  53. on *:dialog:userlist:sclick:7:{ /ruser $did($dname,1).seltext | getlist3 | did -r userlist 11
  54. }
  55. on *:dialog:userlist:sclick:8:{ /ruser $did($dname,2).seltext | getlist | did -r userlist 11
  56. }
  57. on *:dialog:userlist:sclick:9:{ /ruser $did($dname,3).seltext | getlist1 | did -r userlist 11
  58. }
  59. on *:dialog:userlist:sclick:19:{ /ruser $did($dname,18).seltext | getlist2 | did -r userlist 11
  60. }
  61.  
  62. on *:dialog:userlist:sclick:14:{ /rlevel admin | getlist3 | did -r userlist 11
  63. }
  64. on *:dialog:userlist:sclick:15:{ /rlevel gold | getlist | did -r userlist 11
  65. }
  66. on *:dialog:userlist:sclick:16:{ /rlevel brown | getlist1 | did -r userlist 11
  67. }
  68. on *:dialog:userlist:sclick:20:{ /rlevel kick | getlist2 | did -r userlist 11
  69. }
  70. on *:dialog:userlist:sclick:21:{ dialog -m setup setup }
  71. on *:dialog:userlist:sclick:22:{ dialog -m help help }
  72. on *:dialog:userlist:sclick:24:{ dialog -m remove remove }
  73. on *:dialog:userlist:sclick:23:{ dialog -m adding adding }
  74.  
  75. alias -l getlist {
  76. did -r userlist 2
  77. var %a = $ulist(*,%goldset,0), %b = 0
  78. while (%b < %a) {
  79. inc %b
  80. did -a userlist 2 $ulist(*,%goldset,%b)
  81. }
  82. }
  83. alias -l getlist1 {
  84. did -r userlist 3
  85. var %a = $ulist(*,%brownset,0), %b = 0
  86. while (%b < %a) {
  87. inc %b
  88. did -a userlist 3 $ulist(*,%brownset,%b)
  89. }
  90. }
  91. alias -l getlist2 {
  92. did -r userlist 18
  93. var %a = $ulist(*,%kickset,0), %b = 0
  94. while (%b < %a) {
  95. inc %b
  96. did -a userlist 18 $ulist(*,%kickset,%b)
  97. }
  98. }
  99. alias -l getlist3 {
  100. did -r userlist 1
  101. var %a = $ulist(*,%adminset,0), %b = 0
  102. while (%b < %a) {
  103. inc %b
  104. did -a userlist 1 $ulist(*,%adminset,%b)
  105. }
  106. }
  107.  
  108.  
  109. ;;;;;setup dialog;;;;;
  110.  
  111. dialog setup {
  112. title "Set-Up"
  113. size -1 -1 145 83
  114. option dbu
  115. box "Box 1", 1, 8 5 61 26
  116. edit "", 2, 12 15 50 10
  117. box "Box 2", 3, 8 33 61 26
  118. edit "", 4, 13 43 50 10
  119. box "Box 3", 5, 76 5 61 26
  120. edit "", 6, 81 15 50 10
  121. box "Box 4", 7, 76 33 61 26
  122. edit "", 8, 81 43 50 10
  123. button "Help", 9, 57 62 37 10
  124. button "Close", 10, 57 72 37 10, ok
  125. }
  126.  
  127. on *:dialog:setup:init:0:{
  128. did -ra setup 2 %adminset
  129. did -ra setup 4 %goldset
  130. did -ra setup 6 %brownset
  131. did -ra setup 8 %kickset
  132. }
  133. on *:dialog:setup:edit:2:{
  134. /set %adminset $did($dname,2).text
  135. }
  136. on *:dialog:setup:edit:4:{
  137. /set %goldset $did($dname,4).text
  138. }
  139. on *:dialog:setup:edit:6:{
  140. /set %brownset $did($dname,6).text
  141. }
  142. on *:dialog:setup:edit:8:{
  143. /set %kickset $did($dname,8).text
  144. }
  145. on *:dialog:setup:sclick:9:{ dialog -m help help }
  146.  
  147. ;;;;;help dialog;;;;;
  148.  
  149. dialog help {
  150. title "Help"
  151. size -1 -1 145 84
  152. option dbu
  153. button "Close", 2, 56 73 37 10, ok
  154. list 3, 8 4 132 67, size extsel hsbar vsbar
  155. }
  156.  
  157. on *:dialog:help:init:0:{
  158. did -a help 3 You must first set up the dialog to work with your Userlist,
  159. did -a help 3 for example i use the levels (admin,gold,brown,kick)
  160. did -a help 3 If you dont set them to the way you add them this dialog wont work
  161. did -a help 3 All you have to do is type the level you use into the set-up dialog
  162. did -a help 3 and everything should work, if not to make sure you are using the right levels
  163. did -a help 3 In mIRC click tools, then remotes to open the editor, once open click the
  164. did -a help 3 users tab and look at how your userlist is added too, it will be the first word
  165. did -a help 3 on your left. should look like this gold:«¤WîçkêÐMððn§hâÐðw¤»
  166. did -a help 3 gold is the user level in that example.
  167. did -a help 3 If you have any Suggestions or Comments Please ask me on the XT Forum
  168. did -a help 3 In the mIRC section @ http://xt.proboards7.com/index.cgi?board=mirc
  169. did -z help 3
  170. }
  171. dialog remove {
  172. title "Manual Removal"
  173. size -1 -1 226 55
  174. option dbu
  175. combo 1, 3 9 60 27, size drop
  176. edit "", 2, 70 10 152 10, autohs
  177. button "Remove ", 8, 113 26 68 12
  178. button "Close", 9, 113 43 68 10, ok
  179. box "Access Mask", 10, 67 3 158 22
  180. button "Get Gate", 13, 186 34 35 12
  181. text "Remove From:", 19, 4 1 50 8
  182. text Level 1 = %adminset, 20, 2 36 53 8
  183. text Level 2 = %goldset, 21, 2 44 53 8
  184. text Level 3 = %brownset, 22, 56 36 53 8
  185. text Level 4 = %kickset, 23, 56 44 51 8
  186. }
  187. on *:dialog:remove:init:0: {
  188. didtok remove 1 44 Level 1,Level 2,Level 3,Level 4
  189. did -c remove 1 1
  190. }
  191.  
  192. on *:dialog:remove:sclick:8:{
  193. if ($did($dname,2).text == $null) {
  194. dialog -m error5 error5
  195. .halt
  196. }
  197. if ($did($dname,1).text == Level 1) {
  198. /ruser %adminset $did($dname,2).text
  199. }
  200. if ($did($dname,1).text == Level 2) {
  201. /ruser %goldset $did($dname,2).text
  202. }
  203. if ($did($dname,1).text == Level 3) {
  204. /ruser %brownset $did($dname,2).text
  205. }
  206. if ($did($dname,1).text == Level 4) {
  207. /ruser %kickset $did($dname,2).text
  208. }
  209. dialog -x remove remove
  210. getlist
  211. getlist1
  212. getlist2
  213. getlist3
  214. }
  215. on *:dialog:remove:sclick:13:{ clipboard $address($snick($comchan($me,1),1),6)
  216. }
  217.  
  218.  
  219. dialog adding {
  220. title "Manual Access Entry"
  221. size -1 -1 226 55
  222. option dbu
  223. combo 1, 3 9 60 27, size drop
  224. edit "", 2, 70 10 152 10, autohs
  225. button "Add ", 8, 113 26 68 12
  226. button "Close", 9, 113 43 68 10, ok
  227. box "Access Mask", 10, 67 3 158 22
  228. button "Get Gate", 13, 186 34 35 12
  229. text "Add To:", 19, 4 1 28 8
  230. text Level 1 = %adminset, 20, 2 36 53 8
  231. text Level 2 = %goldset, 21, 2 44 53 8
  232. text Level 3 = %brownset, 22, 56 36 53 8
  233. text Level 4 = %kickset, 23, 56 44 51 8
  234. }
  235. on *:dialog:adding:init:0: {
  236. didtok adding 1 44 Level 1,Level 2,Level 3,Level 4
  237. did -c adding 1 1
  238. }
  239. on *:dialog:adding:sclick:8:{
  240. if ($did($dname,2).text == $null) {
  241. dialog -m error5 error5
  242. .halt
  243. }
  244. if ($did($dname,1).text == Level 1) {
  245. /auser %adminset $did($dname,2).text
  246. }
  247. if ($did($dname,1).text == Level 2) {
  248. /auser %goldset $did($dname,2).text
  249. }
  250. if ($did($dname,1).text == Level 3) {
  251. /auser %brownset $did($dname,2).text
  252. }
  253. if ($did($dname,1).text == Level 4) {
  254. /auser %kickset $did($dname,2).text
  255. }
  256. dialog -x adding adding
  257. getlist
  258. getlist1
  259. getlist2
  260. getlist3
  261. }
  262. on *:dialog:adding:sclick:13:{ clipboard $address($snick($comchan($me,1),1),6)
  263. }
  264.  
  265. dialog error5 {
  266. title "Error"
  267. size -1 -1 93 55
  268. option dbu
  269. text "Enter a Mask ", 1, 10 12 75 8, nowrap center
  270. button "OK", 2, 23 40 48 12, ok
  271. text %me, 3, 2 20 89 8, center
  272. icon 4, 1 38 15 15, Pics\8 Ball.ico, 0, noborder
  273. icon 5, 77 38 15 15, Pics\8 Ball.ico, 0, noborder
  274. text "ERROR !!", 6, 29 4 35 8, center
  275. }
  276. on *:dialog:error5:init:0:{
  277. set %me $msn.decode($me)
  278. }
  279.  
  280.  
  281. menu channel,nicklist {
  282. <<-Userlist Viewing->>:/dialog -m userlist userlist
  283. }
Advertisement
Add Comment
Please, Sign In to add comment