Advertisement
Guest User

ROBLOX SPAM BOT NO PATCHED

a guest
Feb 9th, 2016
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. hello!
  2. roblox spam bot :)
  3. keep number HIGH (like weed) so roblox wont detect :D
  4.  
  5.  
  6. var placeId = 218248596; // Place to check and message
  7. var waitTime = 5; // In seconds
  8. var group = 0; // 0 for no group check, otherwise people in this group will not receive the message
  9. function sendMsg(userId, username) {
  10. function send() {
  11. $.post('http://www.roblox.com/messages/send',{
  12. subject: 'wassup m9er',
  13. body: 'Hello, ' + username + '.\n\nu ok m9?????',
  14. recipientid: userId,
  15. cacheBuster: new Date().getTime()
  16. }).done(function(response) {
  17. if (response.success == true) {
  18. console.log('Sent message to ' + username + ' (' + userId + ')');
  19. } else {
  20. console.log('Error sending to ' + username + ': ' + response.shortMessage);
  21. }
  22. });
  23. }
  24. if (group > 0) {
  25. $.get('http://www.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=IsInGroup&playerid=' + userId + '&groupid=' + group, function(response) {
  26. if(response.indexOf('true') == -1) {
  27. send();
  28. } else {
  29. console.log('Didn\'t send a message to ' + username + ' because he is already in group ' + group + '.');
  30. }
  31. });
  32. } else {
  33. send();
  34. }
  35. }
  36.  
  37. var i=0;
  38. function run() {
  39. var timeout = 0;
  40. var url = 'http://www.roblox.com/games/getgameinstancesjson?placeId=' + placeId +'&startindex=' + i*10;
  41. $.get(url).done(function(obj){
  42. for (var server in obj.Collection) {
  43. for (var players in obj.Collection[server].CurrentPlayers) {
  44. var plr = obj.Collection[server].CurrentPlayers[players];
  45. if (plr.Id > 0) {
  46. (function(time,id,name) {
  47. setTimeout(sendMsg,time,id,name);
  48. })(timeout,plr.Id,plr.Username);
  49. timeout+=waitTime*1000;
  50. }
  51. }
  52. }
  53. i++;
  54. setTimeout(run, timeout);
  55. });
  56. }
  57. run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement