Advertisement
Guest User

Zenith Consortium Game PM bot 2

a guest
Mar 29th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Make sure this is on a game page.
  2. function sendMsg(userId, username)
  3. {
  4. $.post("http://www.roblox.com/messages/send",{
  5. subject : "Like fighting and sci-fi? Zenith Consortium's for you!",
  6. body : "" + username + "! You are summoned to fight across the world! You are summoned to the ZENITH CONSORTIUM! \n\n ZENITH CONSORTIUM is an active, science-fiction war group with multiple fortresses, firearms, and warbands. We launch deep offensives into other groups and fend off their counterattacks. We work as one in battle, making use of efficient tactics and flanks. We are a disciplined, hardened corps of mainly veterans from other clans and we hereby call you to arms to join our assaults and operations. \n\n ZENITH CONSORTIUM strives to always be at war. There are no boring periods of peace, just sitting around, doing nothing. When one enemy is defeated, we move on to the next as soon as we can reload. There is no lull in the firing, no period of armistice. \n\n ZENITH CONSORTIUM does not believe in mindless, droning trainings. The best teacher is experience and that is best earned from battles, raids, invasions. Trainings are sparsed between them and are short and concentrated. You will not spend an hour and a half waiting in a sword tournament. You will be firsthand invading the enemy and breaking them on our walls.\n\nIf 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\n Join the Campaign! For the Consortium! \n http://www.roblox.com/My/Groups.aspx?gid=427667",
  7. recipientid : userId,
  8. cacheBuster : new Date().getTime()
  9. }).complete(function(){
  10. console.log('Sent message to ' + username + '.')
  11. })
  12. }
  13.  
  14. function getPlayers()
  15. {
  16. var ids = []
  17. var sel = $('#ctl00_cphRoblox_TabbedInfo_GamesTab_RunningGamesList_RunningGamesContainer')​;
  18. sel = $(sel).find('a')
  19. for(i=0;i<sel.length;i++) {
  20. if(sel[i].href.toLowerCase().substring(0,'http://www.roblox.com/User.aspx?id='.length) == 'http://www.roblox.com/User.aspx?id='.toLowerCase()) {
  21. ids.push(sel[i].href.substring('http://www.roblox.com/User.aspx?id='.length))
  22. }
  23. }
  24. return ids
  25. }
  26.  
  27. function getUsernames()
  28. {
  29. var ids = []
  30. var sel = $('#ctl00_cphRoblox_TabbedInfo_GamesTab_RunningGamesList_RunningGamesContainer')​;
  31. sel = $(sel).find('a')
  32. for(i=0;i<sel.length;i++) {
  33. if(sel[i].href.toLowerCase().substring(0,'http://www.roblox.com/User.aspx?id='.length) == 'http://www.roblox.com/User.aspx?id='.toLowerCase()) {
  34. ids.push(sel[i].title)
  35. }
  36. }
  37. return ids
  38. }
  39.  
  40. var players = getPlayers()
  41. var users = getUsernames()
  42.  
  43. var i=0;
  44. function Loop()
  45. {
  46. setTimeout(function () {
  47. sendMsg(players[i],users[i])
  48. i++;
  49. if (i < players.length) {
  50. Loop();
  51. } else {
  52. alert('Done!')
  53. }
  54. }, 10000)
  55. }
  56.  
  57. Loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement