Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. on *:TEXT:!Register:#: {
  2. if ($readini(username.ini, Nicks, $nick) == $address) {
  3. notice $nick 4Error, this username is already registered!
  4. halt
  5. }
  6. else {
  7. writeini username.ini Nicks $nick $address
  8. writeini username.ini Join $nick 4Error: No join message set! Please use !setjoin to create one! Your join message is the message displayed once you join $chan! Type !setjoin
  9. notice $nick 9You have been registered! Please use !setjoin for more commands.
  10. auser R $nick
  11. }
  12. }
  13.  
  14. on R:TEXT:!Setjoin *:#: {
  15. if ($readini(username.ini, Nicks, $nick) == $address) {
  16. writeini username.ini Join $nick $2-
  17. notice $nick 9Your join message is4 " $2- "!
  18. }
  19. else {
  20. notice $nick 4Error: You are not registered!
  21. }
  22. }
  23.  
  24. on A:INPUT:#: {
  25. if ($1 == !op) { cs aop # ADD $2 | kick $active $2 | auser O }
  26. if ($1 == !deop) { cs aop # DEL $2 | kick $active $2 }
  27. if ($1 == !hop) { cs hop # ADD $2 | kick $active $2 }
  28. if ($1 == !dehop) { cs hop # DEL $2 | kick $active $2 }
  29. if ($1 == !kick) { kick $active $2 }
  30. if ($1 == !ban) { ban $active $address($2,2) }
  31. if ($1 == !kb) { ban $active $2 | kick $active $2 }
  32. if ($1 == !unban) { mode $active -b $address($2,2) }
  33. if ($1 == !voice) { mode $active +v $2 }
  34. if ($1 == !devoice) { mode $active -v $2 }
  35. }
  36.  
  37. on *:TEXT:!start*:#:{
  38. /enable #game
  39. /set %game on
  40. /set %guess $rand(1,100)
  41. /msg $chan 11The higher/lower Is On Type !guess <number> To play. All Numbers Are Between 1 And 100.
  42. if (%game == on) { msg $chan 4Error! Low High game is already started! }
  43.  
  44. }
  45. #game on
  46. on *:TEXT:!guess*:#:{
  47. if ( $2 < %guess ) msg $chan 7Too Low, Please try A higher number!
  48. elseif ( $2 > %guess ) msg $chan 7Too High, Please try A Lower number!
  49. elseif ( $2 == %guess ) { msg $chan 9Correct! %guess was the correct number! $nick wins!
  50. unset %game
  51. unset %guess
  52. disable #game
  53. }
  54. }
  55. #game end
  56. on *:TEXT:!stop*:#:{
  57. /msg $chan 1H14igher/Lower Game Has Been Stopped By $nick
  58. /disable #game
  59. /unset %guess
  60. }
  61.  
  62. on *:TEXT:*:#: {
  63. if (%rps == on) {
  64. if ($1 == !rock) || ($1 == !paper) || ($1 == scissors) {
  65. set %answer $rand(1,3)
  66. set %attack $1
  67. if (%check == %answer) { set %result Draw }
  68. if (%attack == !rock) && (%answer == 2) { set %result You Lose }
  69. if (%attack == !rock) && (%answer == 3) { set %result You Win }
  70. if (%attack == !paper) && (%answer == 1) { set %result You Win }
  71. if (%attack == !paper) && (%answer == 3) { set %result You Lose }
  72. if (%attack == !scissors) && (%answer == 1) { set %result You Lose }
  73. if (%attack == !scissors) && (%answer == 2) { set %result You Win }
  74. if (%answer == 1) { set %botattack Rock }
  75. if (%answer == 2) { set %botattack Paper }
  76. if (%answer == 3) { set %botattack Scissors }
  77. if (%attack == !rock) { set %check 1 }
  78. if (%attack == !paper) { set %check 2 }
  79. if (%attack == !scissors) { set %check 3 }
  80. .timer 1 0.1 msg $chan 7Bot chooses %botattack $+ ! %result $+ !
  81. }
  82. }
  83. }
  84.  
  85.  
  86. alias enable {
  87. set %rps on
  88. }
  89.  
  90. alias disable {
  91. set %rps off
  92. }
  93.  
  94. on A:TEXT:!*:#: {
  95. if ($1 == !op) { cs aop # ADD $2 | kick $active $2 }
  96. if ($1 == !deop) { cs aop # DEL $2 | kick $active $2 }
  97. if ($1 == !hop) { cs hop # ADD $2 | kick $active $2 }
  98. if ($1 == !dehop) { cs hop # DEL $2 | kick $active $2 }
  99. if ($1 == !kick) { kick $active $2 }
  100. if ($1 == !ban) { ban $active $address($2,2) }
  101. if ($1 == !kb) { ban $active $2 | kick $active $2 }
  102. if ($1 == !unban) { mode $active -b $address($2,2) }
  103. if ($1 == !voice) { mode $active +v $2 }
  104. if ($1 == !devoice) { mode $active -v $2 }
  105. }
  106.  
  107. on *:Join:#TD: {
  108. msg $chan 9 $+ $nick has joined $chan! Type !help for more information!
  109. }
  110.  
  111. on *:Join:#TD: {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement