Advertisement
Guest User

help

a guest
Dec 29th, 2014
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4.  
  5. function sendMsg(userId, username)
  6. {
  7.  $.post("http://www.roblox.com/My/NewMessage.aspx?RecipientID='.length",{
  8.   subject   :   "AI | Group Invite",
  9.   body   :   "Hello, " + username + "!\n\n I see you're interested in fighting. I am now here to invite you to Allied Infantry.\n Allied Infantry is a rapidly growing clan, with over 3,900 members. If you join AI and are active, I can assure that you will have much success.\n\n If you do decide to join, I suggest you get Merely's Group Enhancer for Google Chrome if you want to become active, it's such a great way to improve your time with us. Simply go to the Chrome Webstore, search for \"ROBLOX Group Enhancer by Merely\" and click the 'Add to Chrome' button and you will be notified every time something happens!\n\nhttp://www.roblox.com/Groups/Group.aspx?gid=715274\nThank you,\n- TLE High Command",
  10.   recipientid  :   userId,
  11.   cacheBuster  :   new Date().getTime()
  12.  }).complete(function(){
  13.   console.log('Sent message to ' + username + '.')
  14.  })
  15. }
  16.  
  17. function getPlayers()
  18. {
  19.  var ids = []
  20.  var sel = $('#ctl00_cphRoblox_TabbedInfo_GamesTab_RunningGamesList_RunningGamesContainer');
  21.  sel = $(sel).find('a')
  22.  for(i=0;i<sel.length;i++) {
  23.   if(sel[i].href.toLowerCase().substring(0,'http://www.roblox.com/User.aspx?id='.length) == 'http://www.roblox.com/User.aspx?id='.toLowerCase()) {
  24.    ids.push(sel[i].href.substring('http://www.roblox.com/User.aspx?id='.length))
  25.   }
  26.  }
  27.  return ids
  28. }
  29.  
  30. function getUsernames()
  31. {
  32.  var ids = []
  33.  var sel = $('#ctl00_cphRoblox_TabbedInfo_GamesTab_RunningGamesList_RunningGamesContainer');
  34.  sel = $(sel).find('a')
  35.  for(i=0;i<sel.length;i++) {
  36.   if(sel[i].href.toLowerCase().substring(0,'http://www.roblox.com/User.aspx?id='.length) == 'http://www.roblox.com/User.aspx?id='.toLowerCase()) {
  37.    ids.push(sel[i].title)
  38.   }
  39.  }
  40.  return ids
  41. }
  42.  
  43. var players = getPlayers()
  44. var users = getUsernames()
  45.  
  46. var i=0;
  47. function Loop()
  48. {
  49.  setTimeout(function () {  
  50.       sendMsg(players[i],users[i])    
  51.       i++;        
  52.       if (i < players.length) {  
  53.          Loop();      
  54.       } else {      
  55.   alert('Done!')
  56.    }
  57.    }, 10000)
  58. }
  59.  
  60. Loop()
  61.  
  62. This is where the error log is
  63. jquery-1.11.1.min.js:4 GET http://www.roblox.com/RobloxDefaultErrorPage.aspx?id=5ddf3746-b2fd-42e0-82e0-208c0d7c3c86&mode=&code=500 500 (Internal Server Error)jquery-1.11.1.min.js:4 sendjquery-1.11.1.min.js:4 m.extend.ajaxjquery-1.11.1.min.js:4 m.(anonymous function)VM7876:4 sendMsgVM7874:47 (anonymous function)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement