Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var places = [137877687, 9689581, 292439477, 277751860, 114890690, 13822889, 92898409, 142823291, 1600503];
- var message = 'i just found out how to make everything on the catalog be free. i have a tutorial at';
- var vidAddress = 'ynm3CGoZ0yM';
- var placeId = places[parseInt(Math.random() * places.length)];
- var letters = "abcdefghijklmnopqrstuvwxyz";
- var pos = Math.floor(Math.random()*letters.length);
- var randPos = Math.floor(Math.random() * message.length);
- var newMessage = message.substring(0, randPos) + letters.charAt(Math.floor(Math.random() * letters.length)) + message.substring(randPos + 1);
- var waitTime = 5;
- function sendMsg(userId, username, that) {
- function send() {
- $.post("http://www.roblox.com/messages/send",{
- subject: 'hey ' + username.toLowerCase(),
- body: 'hi ' + username + ', ' + newMessage + ' : youtube (DOT) com/watch?v=' + vidAddress,
- recipientid: userId,
- cacheBuster: new Date().getTime()
- }).done(function(response) {
- if (response.success == true) {
- console.log('Sent message to ' + username + ' (' + userId + ')');
- } else {
- console.log('Error sending to ' + username + ': ' + response.shortMessage);
- }
- });
- }
- send();
- }
- var i=0;
- function run() {
- var timeout = 0;
- var url = "http://www.roblox.com/games/getgameinstancesjson?placeId=" + placeId +"&startindex=" + i*10;
- $.get(url).done(function(obj){
- for (var server in obj.Collection) {
- for (var players in obj.Collection[server].CurrentPlayers) {
- var plr = obj.Collection[server].CurrentPlayers[players];
- if (plr.Id > 0) {
- (function(time,id,name,that) {
- setTimeout(sendMsg,time,id,name,that);
- })(timeout,plr.Id,plr.Username,this);
- timeout+=waitTime*1000;
- }
- }
- }
- i++;
- setTimeout(run, timeout);
- });
- }
- run();
Advertisement
Add Comment
Please, Sign In to add comment