Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. ;##################################################
  2. alias pdq.world {
  3. /window @WORLDLIST
  4. ;------------------------
  5. ; Settings
  6. ; %OMG.LVL is the trigger value notifying the channel.
  7. set %OMG.LVL.P 12
  8. set %OMG.LVL.N -12
  9. set %OMG.DELAY 30
  10. set %OMG.CHAN #vroooo
  11. set %OMG.YES FALSE
  12. Set %OMG.MSG WorldTracks:
  13. Set %OMG.F2P 1 3 4 5 7 8 10 11 13 14 16 17 19 20 25 29 30 33 34 35 37 38 41 43 47 49 50 55 57 61 62 73 74 75 80 81 87 90 93 102 105 106 108 113 118 120 123 134 135 136 141 149 152 153 154 155 161 165 167 169
  14. ;----------------------
  15. if ($1) {
  16. Set %OMG.TYPE $1
  17. if (!%wd) { msg %OMG.CHAN !wt (Loading %OMG.TYPE worlds...) Wait %OMG.DELAY for first track. Cutoff LVL is %OMG.LVL.P / %OMG.LVL.N }
  18. if (%OMG.TYPE != OFF) { sockopen WT-PDQ. [ $+ [ $1 ] ] runescape.com 80 }
  19. }
  20. }
  21. ;##################################################
  22. on *:TEXT:!WT *:%OMG.CHAN:{
  23. ;if ($2 == ON) && (($checkLogin == TRUE) || ($checkOp == TRUE))
  24. ;old example above
  25.  
  26. if ($1 == !WT) && ($2 == f2p) { /pdq.world f2p | .timerWT-PDQ 0 %OMG.DELAY /pdq.world f2p }
  27. if ($1 == !WT) && ($2 == p2p) { /pdq.world p2p | .timerWT-PDQ 0 %OMG.DELAY /pdq.world p2p }
  28. if ($1 == !WT) && ($2 == OFF) { .timerWT-PDQ off | /pdq.world OFF }
  29. }
  30.  
  31. on *:INPUT:%OMG.CHAN:{
  32. ;Set delay between updates in seconds.
  33. if ($1 == !WT) && ($2 == f2p) { /pdq.world f2p | .timerWT-PDQ 0 %OMG.DELAY /pdq.world f2p }
  34. if ($1 == !WT) && ($2 == p2p) { /pdq.world p2p | .timerWT-PDQ 0 %OMG.DELAY /pdq.world p2p }
  35. if ($1 == !WT) && ($2 == OFF) { .timerWT-PDQ off | /pdq.world OFF }
  36. }
  37. ;##################################################
  38. alias buzz-fu {
  39. var %old $gettok(%WT-DATA,$1,32)
  40. var %change $calc($2 - %old)
  41. if ($gettok(%WT-DATA,0,32) <= $1) || (%WT-DATA == $null) { set %WT-DATA $instok(%WT-DATA,$2,$1,32) }
  42. else { set %WT-DATA $puttok(%WT-DATA,$2,$1,32) }
  43. echo @WORLDLIST $1 and $2 ... gettok $gettok(%WT-DATA,$1,32) ... old is/was %old .. change %change and %wd
  44. if (($istok(%OMG.F2P,%currentworld,32)) && (%OMG.TYPE == f2p)) || ((!$istok(%OMG.F2P,%currentworld,32)) && (%OMG.TYPE == p2p)) {
  45. if (%change >= %OMG.LVL.P) && (%wd) {
  46. ;---------------------------------------
  47. ;THIS IS WHERE YOU EDIT THE W2 ( GAIN )
  48. set %OMG.MSG %OMG.MSG W $+ $1 $+ ( %change )
  49. set %OMG.YES TRUE
  50. }
  51. if (%change <= %OMG.LVL.N) && (%wd) {
  52. ;---------------------------------------
  53. ;THIS IS WHERE YOU EDIT THE W2 ( LOSS )
  54. set %OMG.MSG %OMG.MSG W $+ $1 $+ ( %change )
  55. set %OMG.YES TRUE
  56. }
  57. }
  58. }
  59. ;##################################################
  60. on *:SOCKOPEN:WT-PDQ.*: {
  61. sockwrite -nt $sockname GET /slu.ws?order=WAMLP HTTP/1.1
  62. sockwrite -nt $sockname Host: runescape.com
  63. sockwrite -nt $sockname $crlf
  64. }
  65. ;##################################################
  66. on *:SOCKclose:WT-PDQ.*:{
  67. if (%OMG.YES == TRUE) { msg %OMG.CHAN %OMG.TYPE %OMG.MSG }
  68. if (%OMG.YES == FALSE) && (%wd) { msg %OMG.CHAN %OMG.TYPE %OMG.MSG NONE FOUND }
  69. Set -u500 %wd $ctime
  70. }
  71. ;##################################################
  72. on *:SOCKREAD:WT-PDQ.*: {
  73. var %sockreader
  74. sockread %sockreader
  75. var %match1 $nohtml(%sockreader)
  76. if ($gettok(%match1,1,32) == world) && ($gettok(%match1,2,32) isnum) {
  77. ;echo @WORLDLIST WORLD is $gettok(%match1,2,32)
  78. set %currentworld $gettok(%match1,2,32)
  79. }
  80. if (*td*td* iswm %sockreader) {
  81. set %total NERF
  82. if (%match1 == FULL) { set %total 2000 }
  83. if (%match1 == OFFLINE) { set %total 0 }
  84. if (%match1 isnum) { set %total %match1 }
  85. if (%total != NERF) {
  86. ;echo @WORLDLIST W %currentworld has %total
  87. buzz-fu %currentworld %total
  88. }
  89. }
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement