Advertisement
LoveAbleElf

spin

May 6th, 2017
911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. ### This Script Not Belong To Me But I Do Some Changes.
  2. ### Now The Spin The Bottle Have A Random Message.
  3. ### Anyone Can Add Easily The Options Of The Random Message That Want.
  4. ###
  5. ### Written By Sergios K. sergios_k@hotmail.com
  6. ###
  7. ###
  8. ### Testing
  9. ### Platforms : Linux 2.2.16 TCL v8.3
  10. ### Eggdrop v1.6.0
  11. ### Eggdrop v1.6.6
  12. ### And : SunOS 5.8 TCL v8.3
  13. ### Eggdrop v1.5.4
  14. ###
  15. ### Description : IRC Game,the famous game Spin The Bottle (night at beatch,that was my job,lol)
  16. ###
  17. ### Future Plans : Send in suggestions.
  18. ###
  19. ### Author Contact : Email - sergios_k@hotmail.com
  20. ### Email - sergios@zeus.dynip.com
  21. ### Home Page - http://zeus.dynip.com/programs
  22. ### IRC - Nick: Sergios
  23. ### Support Channels: #Parea @GRNet (nini.irc.gr)
  24. ### #Help @ZeusNet (patra.dynip.com)
  25. ###
  26. ###
  27. ### History : 07/29/2001 - First Release
  28. ###
  29. ### This Script Belong To moonwolf, just i do change into random message.
  30. ### Flames/suggestions/invitations to dinner:
  31. ### moonwolf on IRC moonwolf@wolflair.demon.co.uk
  32. ### BOTNET: moonwolf@phelan wolf@spodbox.ehche.ac.uk
  33. ###
  34. ### Oh, BTW, right now the last_nick function doesn't work. Anyone tell
  35. ### me why please? Also working on stopping more than one person
  36. ### spinning it at a time. Suggestions for that also appreciated. k.
  37. ###
  38. ### Modified a bit by dhbrown [chocolat@undernet]. I think "last_nick"
  39. ### works now...
  40. ### Adapted for 1.0 by Robey
  41. ###
  42.  
  43. ### spin_bunny: Coded by moonwolf with input from Sloot. Reworked by chocolat
  44. ### to eliminate bot, self, last_nick kissing. Incorporates
  45. ### previous "init_bunny" code.
  46.  
  47. ###
  48. ### Define last_nick to be $botnick if not yet defined...
  49. ###
  50. if {![info exists last_nick]} {set last_nick $botnick}
  51.  
  52. proc spin_bunny {nick uhost handle chan args} {
  53. global botnick last_nick
  54. global rep
  55. #
  56. # Define last_nick = $botnick if last_nick now gone from channel
  57. #
  58. if {![onchan $last_nick $chan]} {set last_nick $botnick}
  59. set mylist [chanlist $chan]
  60. #
  61. # Remove the bot from the list (life's too short to kiss bots!)
  62. #
  63. set wb [lsearch $mylist $botnick]
  64. set mylist [lreplace $mylist $wb $wb]
  65. #
  66. # Remove the invoking nick from the list
  67. #
  68. set wn [lsearch $mylist $nick]
  69. set mylist [lreplace $mylist $wn $wn]
  70. #
  71. # If our first time thru, last_nick = $botnick, so we're done.
  72. # Else, remove last person kissed from the list too.
  73. #
  74. if {$last_nick != $botnick} {
  75. set wl [lsearch $mylist $last_nick]
  76. set mylist [lreplace $mylist $wl $wl]
  77. }
  78. #
  79. # Pick one of the remaining people at random. Make sure
  80. # we're not just playing with ourselves... :)
  81. #
  82. set mylength [llength $mylist]
  83. if {$mylength == 0} {
  84. putserv "PRIVMSG $chan :Well, $nick, there's no one new to kiss! :("
  85. return 0
  86. }
  87. set myindex [rand $mylength]
  88. set result [lindex $mylist $myindex]
  89. set rep {
  90. "kiss"
  91. "tickle"
  92. "tell a joke to"
  93. "throw a pie in the face of"
  94. "hugs"
  95. "kiss into mouth of"
  96. "Smooch"
  97. "stand close to"
  98. "kiss on the cheek to"
  99. "explain what do you feel for"
  100. "kicks"
  101. "french kiss"
  102. "slaps"
  103. "grab the ass of"
  104. "make out in a dark closet alone with"
  105. }
  106. #
  107. # Build the suspense up somewhat
  108. #
  109. putserv "PRIVMSG $chan :$nick spins the bottle ....."
  110. putserv "PRIVMSG $chan :Where it will point nobody knows ...."
  111. putserv "PRIVMSG $chan :Round and round it goes ....."
  112. putserv "PRIVMSG $chan :Round and round it goes ....."
  113. putserv "PRIVMSG $chan :and it slows and comes to a stop ..."
  114. putserv "PRIVMSG $chan :pointing at ..... $result!!!!"
  115. putserv "PRIVMSG $chan :Now $nick you must [lindex $rep [rand [llength $rep]]] $result!!!"
  116. #
  117. # Now define last_nick for future spins...
  118. #
  119. set last_nick $result
  120. return 1
  121. }
  122. #
  123. # Bind the command public so anyone can do it. (on any channel)
  124. #
  125. bind pubm - "*!spin*" spin_bunny
  126. bind pubm - "*spin the bunny*" spin_bunny
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement