Advertisement
Guest User

main.ini tab

a guest
Sep 1st, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. on *:START: {
  2. if ($readini(Raider,Info,Raider)) {
  3. /server irc.quakenet.org
  4. /server -m frostbrood.com:6667
  5. }
  6. Else { setup }
  7. }
  8. on *:Connect: {
  9. if ($network == Quakenet) {
  10. /auth $me enterpasswordhere*********************************
  11. /mode $me +x
  12. /join #pulsecrew
  13. /join #FAP
  14. /join #the-office
  15. }
  16. if ($network == RaidGod) {
  17. var %Chans $readini(Raider,n,info,chans)
  18. var %Auth $readini(Raider,n,Auth,user)
  19. var %pw $readini(Raider,n,Auth,pw)
  20. /join %Chans
  21. msg nickserv identify %auth %pw
  22. Login
  23. }
  24. }
  25.  
  26. Alias Login {
  27. Sockclose Login*
  28. var %sUser $readini(Raider,n,Sigil,user)
  29. var %sPW $readini(Raider,n,Sigil,pw)
  30. var %tUser $readini(Raider,n,Torax,user)
  31. var %tPW $readini(Raider,n,Torax,PW)
  32. Sockopen Login.sigil. $+ %sUser $+ . $+ %sPW sigil.outwar.com 80
  33. Sockopen Login.torax. $+ %tUser $+ . $+ %tPW torax.outwar.com 80
  34. }
  35. on *:Sockopen:Login.*: {
  36. Tokenize 46 $Sockname
  37. var %server $2
  38. sockwrite -n $sockname POST /index HTTP/1.1
  39. sockwrite -n $sockname Host: %server $+ .outwar.com
  40. sockwrite -n $sockname User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5
  41. sockwrite -n $sockname Accept-Language: en-us;en
  42. sockwrite -n $sockname Referer: http:// $+ %Server $+ .outwar.com/index
  43. sockwrite -n $sockname Connection: Close
  44. sockwrite -n $sockname Content-type: application/x-www-form-urlencoded
  45. sockwrite -n $sockname Content-Length: $len(login_username= $+ $3 $+ &login_password= $+ $4 $+ &remember=1)
  46. sockwrite -n $sockname $crlf
  47. sockwrite -n $sockname login_username= $+ $3 $+ &login_password= $+ $4 $+ &remember=1
  48. sockwrite -n $sockname $crlf
  49. }
  50. on *:Sockread:Login.*: {
  51. var %T
  52. sockread -f %T
  53. if (*rg_sess_id=* iswm %T) {
  54. tokenize 46 $Sockname
  55. writeini Raider $2 RGA $gettok($gettok(%T,2,61),1,59)
  56. echo -a Logged in $3
  57. }
  58. if (*/login?LE=1* iswm %T) { echo -a 4Invalid username/password }
  59. if (*failed to log in* iswm %T) { echo -a 4You have failed to log in too many times. Please wait 15 minutes and try again. }
  60. }
  61.  
  62. Alias F3 {
  63. set %raidready Yes
  64. var %T = 1
  65. while ($scon(0) >= %T) {
  66. var %a 1
  67. var %Chans $readini(Raider,n,Info,Chans)
  68. while (%a <= $numtok(%Chans,44)) {
  69. scid $scon(%T) if ($network == Raidgod) { msg $gettok(%chans,%a,44) !here }
  70. inc %a
  71. }
  72. inc %t
  73. }
  74. }
  75. Alias F4 {
  76. unset %raidready
  77. var %T = 1
  78. while ($scon(0) >= %T) {
  79. var %a 1
  80. var %Chans $readini(Raider,n,Info,Chans)
  81. while (%a <= $numtok(%Chans,44)) {
  82. scid $scon(%T) if ($network == Raidgod) { msg $gettok(%chans,%a,44) !gone }
  83. inc %a
  84. }
  85. inc %t
  86. }
  87. }
  88. Alias F6 { login }
  89.  
  90. alias tpms { return $right($ctimems,3) }
  91.  
  92. ;usage /ctimems : well revaluate the the offset values used to produce the $identifier results (2 second delay during this processing)
  93. ;usage $ctimems : returns $ctime and 3 digit decimal place being miliseconds, (2 second delay if no /ctimems call is made prior to this $identifier being used)
  94. alias ctimems {
  95. if (!$var(%milliseconds.ticks,0) || !$var(%milliseconds.ctime,0) || (!$isid)) {
  96. var %ctime = $calc($ctime + 1)
  97. while (%ctime == $ctime) { }
  98. set -e %milliseconds.ticks $calc($ticks - 1000)
  99. set -e %milliseconds.ctime $calc($ctime - 1)
  100. }
  101. return $left($calc(%milliseconds.ctime + (($ticks - %milliseconds.ticks) / 1000) + .0001),-1)
  102. }
  103.  
  104. Alias F7 echo -a $asc($?)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement