MisterXYZ

Free Game Script Original

Aug 15th, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. (function()
  2. {
  3. if( location.hostname !== 'store.steampowered.com' )
  4. {
  5. alert( 'Run this code on the Steam Store!' );
  6. return;
  7. }
  8. else if( typeof jQuery !== 'function' )
  9. {
  10. ShowAlertDialog( 'Fail', 'This page has no jQuery, try homepage.' );
  11. return;
  12. }
  13. else if( document.getElementById( 'header_notification_area' ) === null )
  14. {
  15. ShowAlertDialog( 'Fail', 'You have to be logged in.' );
  16. return;
  17. }
  18.  
  19. var freePackages =
  20. [
  21. 6328, // ProtoGalaxy
  22. 21289, // Bloodline Champions
  23. 21290, // Dragon Nest
  24. 21291, // Americas Army 3
  25. 21292, // Global Agenda
  26. 21293, // Tribes: Ascend
  27. 21294, // Forsaken World
  28. 21295, // Rusty Hearts
  29. 21296, // CrimeCraft GangWars
  30. 21297, // Stronghold Kingdoms
  31. 21298, // Tactical Intervention
  32. 21299, // HOMEFRONT Demo
  33. 21300, // Spiral Knights
  34. 21301, // Puzzle Pirates
  35. 21302, // A.V.A - Alliance of Valiant Arms
  36. 21303, // Super Monday Night Combat
  37. 21304, // Age of Empires Online
  38. 21305, // Pandora Saga: Weapons of Balance
  39. 21306, // War Inc. Battlezone
  40. 21307, // Memoir 44 Online
  41. 21308, // MicroVolts Surge
  42. 21309, // Brawl Busters
  43. 21310, // Neverwinter
  44. 21311, // APB Reloaded
  45. 21312, // Fallen Earth
  46. 21313, // World of Battles
  47. 21314, // Realm of the Mad God
  48. 21315, // Magic: The Gathering � Tactics
  49. 21316, // PoxNora
  50. 21317, // EverQuest II
  51. 21318, // Americas Army: Proving Grounds Beta
  52. 21319, // EverQuest Free-to-Play
  53. 21320, // Gotham City Impostors: Free To Play
  54. 21321, // Archeblade
  55. 21322, // Moon Breakers
  56. 21323, // Loadout
  57. 21324, // War of the Immortals
  58. 21325, // RaceRoom Racing Experience
  59. 21326, // Bullet Run
  60. 21327, // Star Conflict
  61. 21328, // Vindictus
  62. 21329, // Combat Arms
  63. 21330, // Mabinogi
  64. 21331, // Dungeon Fighter Online
  65. 21332, // Atlantica
  66. 21333, // Arctic Combat
  67. 21334, // C9
  68. 21335, // The Lord of the Rings Online�
  69. 21336, // Super Crate Box
  70. 21337, // Dwarfs F2P
  71. 21338, // ROSE Online
  72. 21339, // Dungeon Party
  73. 21340, // Dungeonland
  74. 21341, // PlanetSide 2
  75. 21342, // Frontline Tactics
  76. 21343, // The Banner Saga: Factions
  77. 21344, // Football Superstars
  78. 21345, // District 187
  79. 21346, // Champions of Regnum
  80. 21347, // Uncharted Waters Online
  81. 21348, // RIDGE RACER� Driftopia
  82. 21349, // Construct 2 Free
  83. 21350, // Warframe
  84. 21351, // Ragnarok Online 2
  85. 21352, // March of War
  86. 21353, // War Thunder
  87. 21354, // Shadow Warrior Classic (1997)
  88. 21355, // Arcane Saga Online
  89. 21356, // Pinball Arcade
  90. 21357, // Path of Exile
  91. 21358, // Panzar
  92. 21359, // Tom Clancys Ghost Recon Phantoms - NA
  93. 21360, // Dragon Nest Europe
  94. 21361, // Dragons and Titans
  95. 21362, // Tom Clancys Ghost Recon Phantoms - EU
  96. 21363, // Fiesta Online
  97. 21364, // Thinking with Time Machine
  98. 21365, // Fiesta Online NA
  99. 31606, // Magic 2015 Demo Steam Store and Retail Key
  100. 33980, // World of Guns // (unaddable – sub 0)
  101. 34295, // La Tale
  102. 35341, // Steam Sub 35341 // Dark Blood
  103. 35650, // EVGA Precision X
  104. 41518, // Steam Sub 41518 (GAR Default store package)
  105. 42551, // Overcast - Walden and the Werewolf - Soundtrack
  106. 42558, // Steam Sub 42558 // Royal Quest
  107. 42889, // Dusty Revenge - Almost Human
  108. 43316, // Only If
  109. 43716, // Face of Mankind
  110. 44226, // Robocraft
  111. 44986, // Grand Chase
  112. 45117, // Quantum Rush Online
  113. 45123, // Unturned
  114. 45217, // Cakewalk Loop Manager
  115. 45660, // Defiance
  116. 45705, // Floating Point
  117. 45767, // Velvet Sundown
  118. 45800, // CRYENGINE - Sample Assets
  119. 45946, // Reversion: The Escape
  120. 46138, // March of War // (unaddable – sub 0)
  121. 46481, // Firefall
  122. 46682, // Star Trek Online
  123. 46693, // OMSI 2 - AI-Articulated Bus for Vienna
  124. 47144, // Warface
  125. 47182, // NEOTOKYO (NEOTOKYO°)
  126. 47235, // Steam Sub 47235 (The Expendabros)
  127. 47267, // Champions Online - Free for All
  128. 47333, // Aura Kingdom
  129. 47466, // Heroes & Generals
  130. 47514, // Sunrider
  131. 47669, // Xam
  132. 47670, // Tom Clancy's Ghost Recon Phantoms - EU: Assault Starter Pack FREE
  133. 47673, // Tom Clancy's Ghost Recon Phantoms - NA: Assault Starter Pack FREE
  134. 47674, // Tom Clancy's Ghost Recon Phantoms - EU: Support Starter Pack FREE
  135. 47675, // Tom Clancy's Ghost Recon Phantoms - NA: Support Starter Pack FREE
  136. 47676, // Tom Clancy's Ghost Recon Phantoms - EU: Recon Starter Pack FREE
  137. 47677, // Tom Clancy's Ghost Recon Phantoms - NA: Recon Starter Pack FREE
  138. 47709, // The Forgotten Ones
  139. 48316, // Dead Island Epidemic Free Access
  140. 48901, // Nosgoth Base Game Default Package
  141. 48909, // Marvel Heroes // (unaddable – sub 0)
  142. 48959, // Saira
  143. 48998, // Amazing World
  144. 49027, // Rise of Incarnates Beta
  145. 49298, // Team Fortress 2 - Free On-Demand
  146. 49307, // Dota 2 - Free On-Demand // (unaddable – sub 0)
  147. ];
  148.  
  149. var loaded = 0,
  150. total = freePackages.length,
  151. modal = ShowBlockingWaitDialog( 'Executing...', 'Please wait until all requests finish.' );
  152.  
  153. for( var i = 0; i < total; i++ )
  154. {
  155. jQuery.post(
  156. '//store.steampowered.com/checkout/addfreelicense',
  157. {
  158. action: 'add_to_cart',
  159. sessionid: g_sessionID,
  160. subid: freePackages[ i ]
  161. },
  162. function( data )
  163. {
  164. loaded++;
  165.  
  166. modal.Dismiss();
  167.  
  168. if( loaded === total )
  169. {
  170. ShowAlertDialog( 'All done!', 'Enjoy.' );
  171. }
  172. else
  173. {
  174. modal = ShowBlockingWaitDialog( 'Executing...', 'Loaded ' + loaded + '/' + total );
  175. }
  176. }
  177. ).fail(function(){
  178. loaded++;
  179.  
  180. modal.Dismiss();
  181.  
  182. if( loaded === total )
  183. {
  184. ShowAlertDialog( 'All done!', 'Enjoy.' );
  185. }
  186. else
  187. {
  188. modal = ShowBlockingWaitDialog( 'Executing...', 'Loaded ' + loaded + '/' + total );
  189. }
  190. });
  191. }
  192. }());
Add Comment
Please, Sign In to add comment