pony

connection waynes

Aug 14th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. on *:start: {
  2. if (%Logger == on) {
  3. window -nk0e @Logger
  4. echo @Logger =================
  5. echo @Logger MiniScript Logger
  6. echo @Logger =================
  7. ;echo -sa *Logger enabled
  8. }
  9. echo -s =================
  10. echo -s Welcome to MiniScript
  11. echo -s =================
  12. echo -s By Tasman 2010
  13. echo -s [ Private Only
  14. if (%autoconn == on) {
  15. echo -s Automatic Connection to the buzzen server is enabled, please wait...
  16. .timercon1 1 1 connect
  17. }
  18. }
  19. on *:sockread:n.s:{
  20. while ($sock(n.s).rq) {
  21. var %r | sockread %r
  22. if ($sockbr = 0) halt
  23. tokenize 32 $regsubex(%r,/(\;)*?\]|\[\/style\])/ig,$null)
  24. if ($1 == :FlashIrcServer.1) && (successful isin $1-) { halt }
  25. if ($1 == :FlashIrcServer.1) && (hostname isin $1-) { halt }
  26. if (PRIVMSG isin $1-) && (TIME isin $1-) { halt }
  27. if ($4 == PID) set %pid $6
  28. if (%proxy == on) {
  29. if ($1-4 == HTTP/1.0 200 Connection established) w n.s loginh %u $md5(%p)
  30. if ($1-3 == HTTP/1.0 200 OK) w n.s loginh %u $md5(%p)
  31. }
  32. if ($2 = WHISPER) l $1 PRIVMSG $4-
  33. if ($1 == PING) sockwrite -n $sockname PONG $2-
  34. l $1-
  35. }
  36. }
  37. on *:sockread:n.l:{
  38. while ($sock(n.l).rq) {
  39. var %r | sockread %r | tokenize 32 %r
  40. if ($sockbr = 0) halt
  41. if ($1 = USER) w n.s loginh %u $md5(%p)
  42. ;if (PRIVMSG isin $1-) { echo @SIGNALS *privmsg n.l: $1- }
  43. if ($1 = PRIVMSG) && ($left($2,1) != $chr(37)) w n.s WHISPER $comchan($2,1) $2 $3-
  44. if ($1 = JOIN) && ($numtok($2,44) > 1) w n.s JOIN $numtok($1,44)
  45. if ($1 == PING) sockwrite -n $sockname PONG $2-
  46. if ($sock(n.s)) w n.s $1-
  47. }
  48. }
  49. alias w {
  50. if ($sock($1).status != active) { .timer -m 1 10 w $1- | halt }
  51. sockwrite -n $1- | halt
  52. }
  53. on *:sockopen:n.s: {
  54. echo -a **Please wait, connecting to the Buzzen Server...
  55. echo -a -
  56. if (%proxy == on) {
  57. sockwrite -n $sockname CONNECT 69.197.23.17:6668 HTTP/1.0 $+ $str($crlf, 2)
  58. }
  59. }
  60. alias l { sockwrite -n n.l $1- | halt }
  61. else { echo -s Automatic Connection to the Buzzen server is Disabled, To connect type "/con", to view current Passport type "/view", to change Passport type "/pp EMAIL PASSWORD", or to enable Automatic connection on start type "/ac on" }
  62. alias ac {
  63. if ($1 == on) { set %autoconn on | echo -a Automatic connection to the buzzen server on start is now enabled }
  64. if ($1 == off) { set %autoconn off | echo -a Automatic connection to the buzzen server on start is now disabled }
  65. }
  66. alias view { echo -a Your Current Passport email is " $+ %u $+ " }
  67. alias pp { echo -a please restart the script after it automatically reconnects to the buzzen server, it must set your new passport before you can use it | set %u $1 | set %p $2- | pause s 2 | sockclose n.* | socklisten n.i | server localhost $sock(n.i).port }
  68. alias con { connect }
  69. alias connect { sockclose n.* | socklisten n.i | server localhost $sock(n.i).port }
  70. on *:socklisten:n.i:{
  71. sockaccept n.l
  72. sockclose n.i
  73. if (%proxy == on) { sockopen n.s $proxy | halt }
  74. else { sockopen n.s 69.197.23.17:6668 }
  75. }
  76. alias profile {
  77. set %pnick $1
  78. .sockwrite -n n.s PID $1
  79. .timerprofile 1 1 openprofile $1
  80. }
  81. alias openprofile {
  82. if (%pid != $null) { echo -a **Alternatively the link for %pnick $+ 's profile is http://www.buzzen.net/profile.aspx?pid= $+ %pid | set %homepage http://www.buzzen.net/profile.aspx?pid= $+ %pid | MiniBrowser }
  83. else { .echo -a ERROR: Could not retrieve profile for user: $1 }
  84. }
  85. alias proxy { var %curprox = $replace($read(Texts\proxy.txt),$chr(58),$chr(32)) | echo -a Proxy = %curprox | return %curprox }
Advertisement
Add Comment
Please, Sign In to add comment