Advertisement
Guest User

Sinister Strike

a guest
Mar 30th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. function sendMsg(userId, username)
  2. {
  3. $.post("http://www.roblox.com/messages/send",{
  4. subject : "Sinister Strike Needs you!",
  5. body : "!\n\n You have been invited to join a group, called Sinister Strike. Joining today will result in you being trained to the best of your abilities; your friends would be amazed at your new talents! Our legacy has only started. Sinister Strike is a new group, one that you could be a part of right now or help in the creation of the group. We need members like you in our group. \n\ \n\ \nThe uniforms are located below;\n\Shirt: http://www.roblox.com/Low-Rank-Uniform-item?id=229356166\n\Pants: http://www.roblox.com/Low-Rank-Uniform-item?id=229357612\n\nFor more information, ask me or another high rank. We'll happily answer it. Join today! Hail SS!\n\nIf you would like to join and serve Sinister Strike the group link is here: \n\ \n\http://www.roblox.com/My/Groups.aspx?gid=16927\n\ \n\ \n\Thank you,\n- Sinister Strike High Command",
  6. recipientid : userId,
  7. cacheBuster : new Date().getTime()
  8. }).complete(function(){
  9. console.log('Sent message to ' + username + '.')
  10. })
  11. }
  12.  
  13. function getPlayers()
  14. {
  15. var ids = []
  16. var sel = $('#ctl00_cphRoblox_TabbedInfo_GamesTab_RunningGamesList_RunningGamesContainer');
  17. sel = $(sel).find('a')
  18. for(i=0;i<sel.length;i++) {
  19. if(sel[i].href.toLowerCase().substring(0,'http://www.roblox.com/User.aspx?id='.length) == 'http://www.roblox.com/User.aspx?id='.toLowerCase()) {
  20. ids.push(sel[i].href.substring('http://www.roblox.com/User.aspx?id='.length))
  21. }
  22. }
  23. return ids
  24. }
  25.  
  26. function getUsernames()
  27. {
  28. var ids = []
  29. var sel = $('#ctl00_cphRoblox_TabbedInfo_GamesTab_RunningGamesList_RunningGamesContainer');
  30. sel = $(sel).find('a')
  31. for(i=0;i<sel.length;i++) {
  32. if(sel[i].href.toLowerCase().substring(0,'http://www.roblox.com/User.aspx?id='.length) == 'http://www.roblox.com/User.aspx?id='.toLowerCase()) {
  33. ids.push(sel[i].title)
  34. }
  35. }
  36. return ids
  37. }
  38.  
  39. var players = getPlayers()
  40. var users = getUsernames()
  41.  
  42. var i=0;
  43. function Loop()
  44. {
  45. setTimeout(function () {
  46. sendMsg(players[i],users[i])
  47. i++;
  48. if (i < players.length) {
  49. Loop();
  50. } else {
  51. alert('Done!')
  52. }
  53. }, 10000)
  54. }
  55.  
  56. Loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement