Guest User

Untitled

a guest
Dec 14th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.29 KB | None | 0 0
  1. dialog clanbot {
  2. title "S4.Gaming ClanBOT"
  3. size -1 -1 100 100
  4. option dbu
  5. ;button "Vent", 1, -2 122 117 36
  6. ;button "Server", 2, 116 121 112 37
  7. ;button "Game", 3, -1 89 116 35
  8. ;button "#Channel", 4, 115 88 112 33
  9. ;button "WebSiteURL", 5, 2 57 114 32
  10. ;radio "Red", 6, 2 13 50 10
  11. ;radio "Blue", 7, 2 23 50 10
  12. ;radio "Black", 8, 2 33 50 10
  13. ;radio "Green", 9, 2 42 50 10
  14. ;box "Credits", 10, 169 3 55 50
  15. ;button "Members", 11, 116 58 112 31
  16. ;button "Cancel", 12, 131 0 37 12, cancel
  17. ;text "Made and developed by secon- and Roeyzzzz. All rights reserved.", 13, 170 13 52 37
  18. button "Ventrilo",1, 5 5 45 12
  19. button "Server",2, 50 5 45 12
  20. button "Game",3, 5 17 45 12
  21. button "Channel",4, 50 17 45 12
  22. button "Website",5, 5 29 45 12
  23. box "Messages Color",6, 5 43 90 40
  24. radio "Random Color",7, 10 51 80 10
  25. radio "Selected Color",8, 10 61 80 10
  26. button "Select the Color",9, 10 71 80 10
  27. button "Members",11, 50 29 45 12
  28. button "Close",12, 5 85 90 12, ok cancel
  29. }
  30.  
  31. ON *:dialog:ClanBOT:sclick:9: {
  32. clanbot.colors
  33. }
  34.  
  35. dialog Colors {
  36. title "S4.Gaming ClanBOT - Color"
  37. size -1 -1 100 110
  38. option dbu
  39. radio "Black",1, 5 5 40 10
  40. radio "Dark Blue",2, 5 15 40 10
  41. radio "Dark Green",3, 5 25 40 10
  42. radio "Red",4, 5 35 40 10
  43. radio "Brown",5, 5 45 40 10
  44. radio "Purple",6, 5 55 40 10
  45. radio "Orange",7, 5 75 40 10
  46. radio "Yellow",8, 55 5 40 10
  47. radio "Light Green", 9, 55 15 40 10
  48. radio "Turquoise", 10, 55 25 40 10
  49. radio "Light Blue",11, 55 35 40 10
  50. radio "Blue", 12, 55 45 40 10
  51. radio "Pink", 13, 55 55 40 10
  52. radio "Grey", 14, 55 65 40 10
  53. radio "Light Grey", 15, 5 65 40 10
  54. button "Close", 16, 5 90 90 15, cancel
  55. }
  56.  
  57. ON *:dialog:ClanBOT:init:*: {
  58. var %rand = $r(0,15)
  59. while (%rand == 1) {
  60. %rand = $r(0,15)
  61. }
  62. var %color = $readini(ClanBOT.ini,Color,Selected)
  63. if (!%color) { %color = 0 } ; Random Color
  64. if (%color == 0) {
  65. did -b $dname 9
  66. }
  67. if (%color == 0) { set %globalColor %rand }
  68. if (%color == 1) { set %globalColor $iif($readini(ClanBOT.ini,Color,Color),$readini(ClanBOT.ini,Color,Color),0) }
  69. did -c $dname $iif(%color == 0,7,8)
  70. }
  71.  
  72. ON *:dialog:ClanBOT:sclick:7,8: {
  73. if ($did == 8) { did -e $dname 9 }
  74. if ($did == 7) { did -b $dname 9 }
  75. writeini ClanBOT.ini Color Selected $iif($did == 7,0,1)
  76. }
  77.  
  78. ON *:dialog:Colors:init:*: {
  79. var %color = $readini(ClanBOT.ini,Color,Color)
  80. if (!%color) { %color = 0 }
  81. if (%color == 0) {
  82. %color = 1
  83. }
  84. did -c $dname %color
  85. }
  86.  
  87. ON *:dialog:Colors:sclick:1,2,3,4,5,6,7,8,9,10,11,12,13,14,15: {
  88. writeini ClanBOT.ini Color Color $did
  89. }
  90.  
  91. alias clanbot.colors {
  92. dialog -m Colors Colors
  93. }
  94.  
  95. alias clanbot {
  96. .dialog -m clanbot clanbot
  97. }
  98.  
  99. menu * {
  100. ClanBOT: clanbot
  101. }
  102.  
  103. on *:DIALOG:clanbot:sclick:3: {
  104. var %game = $input(Enter The Clan Game:,e,Change Game,$readini(ClanBOT.ini,Game,Game))
  105. writeini ClanBot.ini Game Game %game
  106. }
  107.  
  108. ON *:dialog:clanbot:sclick:12: {
  109. var %close = $input(Are you sure that you want to close the ClanBOT Dialog Manager?,y,Close)
  110. if (!%close) { Halt }
  111. }
  112.  
  113. on *:text:*:#S4.Gaming: {
  114. var %ss = $readini(ClanBOT.ini,Color,Selected)
  115. var %color
  116. if (%ss == 0) { %color = $r(1,15) }
  117. if (%ss == 1) { %color = $iif($readini(ClanBOT.ini,Color,Color),$readini(ClanBOT.ini,Color,Color),0) }
  118. var %commandList = !Members, !Website, !Channel, !Server, !Vent, !Game
  119. if ($1 == !Help || $1 == Commands) {
  120. msg #  $+ %color $+ S4.Gaming Channel Commands are:15 %commandList
  121. }
  122. if ($1 == !Members) {
  123. var %Members = $readini(Clanbot.ini,Members,Members)
  124. msg # 0,1S4.Gaming Team Members are:15 %Members
  125. }
  126.  
  127. if ($1 == !WebSite) {
  128. var %WebSite = $readini(Clanbot.ini,WebSite,WebSite)
  129. msg # 0,1S4.Gaming Website is:15 %WebSite
  130. }
  131.  
  132. if ($1 == !Channel) {
  133. var %Channel = $readini(Clanbot.ini,Channel,Channel)
  134. msg # 0,1S4.Gaming Channel is:15 %Channel
  135. }
  136. if ($1 == !Server) {
  137. var %Server = $readini(Clanbot.ini,Server,Server)
  138. msg # 0,1S4.Gaming Game's Server IP is:15 %Server
  139. }
  140. if ($1 == !vent) {
  141. var %vent = $readini(Clanbot.ini,Vent,Vent)
  142. msg # 0,1S4.Gaming Ventrilo's Server IP is:15 %vent
  143. }
  144. if ($1 == !game) {
  145. var %game = $readini(Clanbot.ini,Game,Game)
  146. msg # 0,1S4.Gaming Game is:15 %game
  147. }
  148. }
  149.  
  150. on *:DIALOG:clanbot:sclick:1: {
  151. var %Vent = $input(Enter The Ventip:,e,Change Vent,$readini(Clanbot.ini,Vent,Vent))
  152. if (!%Vent) {
  153. var %s = $input(You must enter the Ventrilo IP in order to make a change!,o,Ventrilo)
  154. Halt
  155. }
  156. writeini ClanBot.ini Vent Vent %Vent
  157. }
  158.  
  159. on *:DIALOG:clanbot:sclick:2: {
  160. var %Server = $input(Enter The Serverip:,e,Change Server,$readini(Clanbot.ini,Server,Server))
  161. writeini ClanBot.ini Server Server %Server
  162. }
  163.  
  164. on *:DIALOG:clanbot:sclick:4: {
  165. var %Channel = $input(Enter The ChannelName:,e,Change Channel,$readini(Clanbot.ini,Channel,Channel))
  166. writeini ClanBot.ini Channel Channel %Channel
  167. }
  168.  
  169. on *:DIALOG:clanbot:sclick:5: {
  170. var %WebSite = $input(Enter The WebSiteURL:,e,Change URL,$readini(Clanbot.ini,WebSite,WebSite))
  171. writeini ClanBot.ini WebSite WebSite %WebSite
  172. }
  173.  
  174. on *:DIALOG:clanbot:sclick:11: {
  175. var %Members = $input(Enter The Team Members:,e,Change Members,$readini(Clanbot.ini,Members,Members))
  176. writeini ClanBot.ini Members Members %Members
  177. }
Add Comment
Please, Sign In to add comment