Advertisement
Guest User

bot pachangas mv

a guest
Dec 12th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.79 KB | None | 0 0
  1. ;===================================================
  2. ;= 1º copialo en la carpeta donde este el mirc.exe =
  3. ;= 2º Abre el mirc.exe =
  4. ;= 3º Pon /load -rs bot.mrc =
  5. ;===================================================
  6.  
  7.  
  8. on 1:text:*:?: {
  9. close -m
  10. if (!%elcanal) set %elcanal #tucanal
  11. if ($1 == !lanza) && ($nick isop %elcanal) {
  12. if ($nick == %bot-admin) || (%bot-estado == on) halt
  13. set %bot-admin $nick
  14. msg $nick [LISTA DE JUEGOS POSIBLES]
  15. msg $nick --------------------------
  16. msg $nick Counter-Strike
  17. msg $nick Day of Defeat
  18. msg $nick Half-Life
  19. msg $nick Unreal Tournament
  20. msg $nick Quake III Arena
  21. msg $nick ===========================
  22. msg $nick La sintaxis seria asi: mod version ip password cd-on/off
  23. msg $nick Ejemplo: Counter-Strike 1.6 192.168.1.124:27015 paxanga on
  24. msg $nick <--------->
  25. msg $nick Para quitar la partida pon !cancela
  26. }
  27. else if ($1 == !cancela) && ($nick == %bot-admin) && ($nick isop %elcanal) {
  28. if (%bot-estado !== on) halt
  29. msg %elcanal Partida cancelada por el Admin %bot-admin
  30. topic %elcanal %ultima
  31. unset %bot-*
  32. }
  33. else if ($nick == %bot-admin) && ($nick isop %elcanal) {
  34. if (%bot-estado == on) halt
  35. set %bot-mod $1
  36. set %bot-ver $2
  37. set %bot-ip $3
  38. set %bot-pass $4
  39. set %bot-cd $5
  40. set %bot-estado on
  41. set %bot-cuena 0
  42. set %bot-cuenb 0
  43. msg %elcanal Partida lanzada de %bot-mod por %bot-admin Para añadirte a una partida pon !juego !juego a (Para TEAM-A) o !juego b (Para TEAM-B) y para kitarte de la partida !kitame Si quieres ver como van los equipos pon !teams y para ver la ultima partida lanzada pon !ultima
  44. eltopic
  45. }
  46. }
  47.  
  48.  
  49. on 1:text:*:#tucanal: {
  50. if ($1 == !juego) {
  51. if (%bot-estado !== on) halt
  52. if ($2 == a) {
  53. mira a
  54. }
  55. else if ($2 == b) {
  56. mira b
  57. }
  58. else if ($2 !== a) || ($2 !== b) {
  59. if (%bot-cuena < %bot-cuenb) mira a
  60. else if (%bot-cuenb < %bot-cuena) mira b
  61. else mira a
  62. }
  63. }
  64. else if ($1 == !kitame) {
  65. set %bot-n 0
  66. while (%bot-n < 5) {
  67. inc %bot-n
  68. if ($address($nick,2) == %bot-ip-a [ $+ [ %bot-n ] ]) {
  69. set %bot-cuena $calc(%bot-cuena - 1)
  70. notice %bot-team-a [ $+ [ %bot-n ] ] Se te ha borrado de la pachanga
  71. unset %bot-ip-a [ $+ [ %bot-n ] ]
  72. unset %bot-team-a [ $+ [ %bot-n ] ]
  73. eltopic
  74. halt
  75. }
  76. }
  77. set %bot-n 0
  78. while (%bot-n < 5) {
  79. inc %bot-n
  80. if ($address($nick,2) == %bot-ip-b [ $+ [ %bot-n ] ]) {
  81. set %bot-cuenb $calc(%bot-cuenb - 1)
  82. notice %bot-team-b [ $+ [ %bot-n ] ] Se te ha borrado de la pachanga
  83. unset %bot-ip-b [ $+ [ %bot-n ] ]
  84. unset %bot-team-b [ $+ [ %bot-n ] ]
  85. eltopic
  86. halt
  87. }
  88. }
  89. }
  90. else if ($1 == !teams) {
  91. if ($calc(%bot-to + 20) > $ctime) halt
  92. set %bot-to $ctime
  93. if (%bot-estado !== on) { msg %elcanal %ultima | halt }
  94. msg %elcanal %bot-mod ( $+ $calc(%bot-cuena + %bot-cuenb) $+ /10) [Team-A] %bot-team-a1 - %bot-team-a2 - %bot-team-a3 - %bot-team-a4 - %bot-team-a5 ( $+ %bot-cuena $+ /5) [Team-B] %bot-team-b1 - %bot-team-b2 - %bot-team-b3 - %bot-team-b4 - %bot-team-b5 ( $+ %bot-cuenb $+ /5)
  95. }
  96. else if ($1 == !ultima) {
  97. if ($calc(%bot-to + 20) > $ctime) halt
  98. set %bot-to $ctime
  99. if (%bot-estado == on) { msg %elcanal %bot-mod ( $+ $calc(%bot-cuena + %bot-cuenb) $+ /10) [Team-A] %bot-team-a1 - %bot-team-a2 - %bot-team-a3 - %bot-team-a4 - %bot-team-a5 ( $+ %bot-cuena $+ /5) [Team-B] %bot-team-b1 - %bot-team-b2 - %bot-team-b3 - %bot-team-b4 - %bot-team-b5 ( $+ %bot-cuenb $+ /5) | halt }
  100. msg %elcanal %ultima
  101. }
  102. }
  103.  
  104.  
  105. alias eltopic {
  106. topic %elcanal %bot-mod ( $+ $calc(%bot-cuena + %bot-cuenb) $+ /10) [Team-A] %bot-team-a1 - %bot-team-a2 - %bot-team-a3 - %bot-team-a4 - %bot-team-a5 ( $+ %bot-cuena $+ /5) [Team-B] %bot-team-b1 - %bot-team-b2 - %bot-team-b3 - %bot-team-b4 - %bot-team-b5 ( $+ %bot-cuenb $+ /5)
  107. if (%bot-cuena == 5) && (%bot-cuenb == 5) lanza
  108. }
  109.  
  110.  
  111. alias team-a {
  112. :team-a
  113. inc %bot-na
  114. if (%bot-na == 6) { notice $nick Ya no quedan plazas para el Team A | set %bot-na 5 | team-b | halt }
  115. else if (%bot-team-a [ $+ [ %bot-na ] ] == $null) {
  116. set %bot-team-a $+ %bot-na $nick
  117. set %bot-ip-a $+ %bot-na $address($nick,2)
  118. notice $nick Se te ha añadido al Team A
  119. unset %bot-na
  120. inc %bot-cuena
  121. eltopic
  122. halt
  123. }
  124. goto team-a
  125. }
  126.  
  127. alias team-b {
  128. :team-b
  129. inc %bot-nb
  130. if (%bot-nb == 6) { notice $nick Ya no quedan plazas para el Team B | set %bot-nb 5 | team-a | halt }
  131. else if (%bot-team-b [ $+ [ %bot-nb ] ] == $null) {
  132. set %bot-team-b $+ %bot-nb $nick
  133. set %bot-ip-b $+ %bot-nb $address($nick,2)
  134. notice $nick Se te ha añadido al Team B
  135. unset %bot-nb
  136. inc %bot-cuenb
  137. eltopic
  138. halt
  139. }
  140. goto team-b
  141. }
  142.  
  143. alias lanza {
  144. set %bot-n 0
  145. while (%bot-n < 5) {
  146. inc %bot-n
  147. msg %bot-team-a [ $+ [ %bot-n ] ] IP: %bot-ip PASS: %bot-pass CD: %bot-cd TEAM: A
  148. }
  149. set %bot-n 0
  150. while (%bot-n < 5) {
  151. inc %bot-n
  152. msg %bot-team-b [ $+ [ %bot-n ] ] IP: %bot-ip PASS: %bot-pass CD: %bot-cd TEAM: B
  153. }
  154. inc %total
  155. set %ultima Ultima paxanga lanzada a las $time En total lleva %total
  156. topic %elcanal %ultima
  157. unset %bot-*
  158. }
  159.  
  160. alias mira {
  161. set %bot-n 0
  162. while (%bot-n < 5) {
  163. inc %bot-n
  164. if (%bot-ip-a [ $+ [ %bot-n ] ] == $address($nick,2)) { notice $nick Ya estas apuntado como %bot-team-a [ $+ [ %bot-n ] ] | halt }
  165. }
  166. set %bot-n 0
  167. while (%bot-n < 5) {
  168. inc %bot-n
  169. if (%bot-ip-b [ $+ [ %bot-n ] ] == $address($nick,2)) { notice $nick Ya estas apuntado como %bot-team-b [ $+ [ %bot-n ] ] | halt }
  170. }
  171. team- $+ $1
  172. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement