Advertisement
Guest User

Faptitans Scripts

a guest
Nov 17th, 2019
9,674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.81 KB | None | 0 0
  1. Add Gold:
  2.  
  3. var request=new XMLHttpRequest;
  4.  
  5. request.open('POST', 'api/', false);
  6.  
  7. request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
  8.  
  9. request.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
  10.  
  11. request.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
  12.  
  13. request.send('data={"method":"battle.monsterKilled","args":{"gameTime":0,"clicks":{"__dec__":0,"val":"10e99999"},"reward":{"res":{"gold":{"__dec__":0,"val":"10e99999"}}}},"uniqueSid":"' + uniqueSid + '"}');
  14.  
  15. DPS via hero upgrade (requires enough gold to buy upgrades):
  16.  
  17. function post(method, args, times = 1) {
  18.  
  19. method = 'data={"method":"' + method + '","args":{' + args.replace(/\b[a-zA-Z_][a-zA-Z0-9_]+\b/g, '"$&"') + '},"uniqueSid":"' + uniqueSid + '"}';
  20.  
  21. for (var index = 0; index < times; index++) {
  22.  
  23. var poster = new XMLHttpRequest();
  24.  
  25. poster.open('POST', 'http://faptitans.com/api/', false);
  26.  
  27. poster.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
  28.  
  29. poster.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
  30.  
  31. poster.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
  32.  
  33. poster.send(method); console.log(method); console.log(poster.responseText); }
  34.  
  35. }
  36.  
  37. runLoop = async () =>
  38. {
  39. for (i=0;;i++){
  40. await new Promise( resolve => setTimeout( resolve, 450) );
  41. {
  42. post("heroes.buy","_id:100529,level:200");
  43. post("heroes.buy","_id:100529,level:200");
  44. post("heroes.buy","_id:100529,level:200");
  45. }
  46. }
  47. }
  48.  
  49. runLoop()
  50.  
  51. Unlock Heros Part 1 (requires enough gold to buy heros):
  52.  
  53. function post(method, args, times = 1) {
  54.  
  55. method = 'data={"method":"' + method + '","args":{' + args.replace(/\b[a-zA-Z_][a-zA-Z0-9_]+\b/g, '"$&"') + '},"uniqueSid":"' + uniqueSid + '"}';
  56.  
  57. for (var index = 0; index < times; index++) {
  58.  
  59. var poster = new XMLHttpRequest();
  60.  
  61. poster.open('POST', 'http://faptitans.com/api/', false);
  62.  
  63. poster.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
  64.  
  65. poster.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
  66.  
  67. poster.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
  68.  
  69. poster.send(method); console.log(method); console.log(poster.responseText); }
  70.  
  71. }
  72.  
  73.  
  74.  
  75. post("heroes.buy","_id:100499,level:200");
  76.  
  77. post("heroes.buy","_id:100500,level:200");
  78.  
  79. post("heroes.buy","_id:100501,level:200");
  80.  
  81. post("heroes.buy","_id:100502,level:200");
  82.  
  83. post("heroes.buy","_id:100703,level:200");
  84.  
  85. post("heroes.buy","_id:100701,level:200");
  86.  
  87. post("heroes.buy","_id:100503,level:200");
  88.  
  89. post("heroes.buy","_id:100702,level:200");
  90.  
  91. post("heroes.buy","_id:100498,level:200");
  92.  
  93. post("heroes.buy","_id:100504,level:200");
  94.  
  95. post("heroes.buy","_id:101503,level:200");
  96.  
  97. post("heroes.buy","_id:100497,level:200");
  98.  
  99. post("heroes.buy","_id:100601,level:200");
  100.  
  101. post("heroes.buy","_id:100802,level:200");
  102.  
  103. post("heroes.buy","_id:101501,level:200");
  104.  
  105. post("heroes.buy","_id:910001,level:200");
  106.  
  107. post("heroes.buy","_id:777001,level:200");
  108.  
  109. post("heroes.buy","_id:101506,level:200");
  110.  
  111. post("heroes.buy","_id:100505,level:200");
  112.  
  113. post("heroes.buy","_id:800001,level:200");
  114.  
  115. post("heroes.buy","_id:920001,level:200");
  116.  
  117. Unlock Heros Part 2:
  118.  
  119. function post(method, args, times = 1) {
  120.  
  121. method = 'data={"method":"' + method + '","args":{' + args.replace(/\b[a-zA-Z_][a-zA-Z0-9_]+\b/g, '"$&"') + '},"uniqueSid":"' + uniqueSid + '"}';
  122.  
  123. for (var index = 0; index < times; index++) {
  124.  
  125. var poster = new XMLHttpRequest();
  126.  
  127. poster.open('POST', 'http://faptitans.com/api/', false);
  128.  
  129. poster.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
  130.  
  131. poster.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
  132.  
  133. poster.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
  134.  
  135. poster.send(method); console.log(method); console.log(poster.responseText); }
  136.  
  137. }
  138.  
  139.  
  140.  
  141. post("heroes.buy","_id:777002,level:200");
  142.  
  143. post("heroes.buy","_id:930001,level:200");
  144.  
  145. post("heroes.buy","_id:100602,level:200");
  146.  
  147. post("heroes.buy","_id:100803,level:200");
  148.  
  149. post("heroes.buy","_id:777004,level:200");
  150.  
  151. post("heroes.buy","_id:101502,level:200");
  152.  
  153. post("heroes.buy","_id:777005,level:200");
  154.  
  155. post("heroes.buy","_id:940001,level:200");
  156.  
  157. post("heroes.buy","_id:100496,level:200");
  158.  
  159. post("heroes.buy","_id:100801,level:200");
  160.  
  161. post("heroes.buy","_id:100804,level:200");
  162.  
  163. post("heroes.buy","_id:777006,level:200");
  164.  
  165. post("heroes.buy","_id:100705,level:200");
  166.  
  167. post("heroes.buy","_id:100706,level:200");
  168.  
  169. post("heroes.buy","_id:101504,level:200");
  170.  
  171. post("heroes.buy","_id:100707,level:200");
  172.  
  173. post("heroes.buy","_id:100708,level:200");
  174.  
  175. post("heroes.buy","_id:100510,level:200");
  176.  
  177. post("heroes.buy","_id:100511,level:200");
  178.  
  179. post("heroes.buy","_id:100704,level:200");
  180.  
  181. post("heroes.buy","_id:100512,level:200");
  182.  
  183. Unlock Heros Part 3:
  184.  
  185. function post(method, args, times = 1) {
  186.  
  187. method = 'data={"method":"' + method + '","args":{' + args.replace(/\b[a-zA-Z_][a-zA-Z0-9_]+\b/g, '"$&"') + '},"uniqueSid":"' + uniqueSid + '"}';
  188.  
  189. for (var index = 0; index < times; index++) {
  190.  
  191. var poster = new XMLHttpRequest();
  192.  
  193. poster.open('POST', 'http://faptitans.com/api/', false);
  194.  
  195. poster.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
  196.  
  197. poster.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
  198.  
  199. poster.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
  200.  
  201. poster.send(method); console.log(method); console.log(poster.responseText); }
  202.  
  203. }
  204.  
  205.  
  206.  
  207. post("heroes.buy","_id:100513,level:200");
  208.  
  209. post("heroes.buy","_id:100514,level:200");
  210.  
  211. post("heroes.buy","_id:777008,level:200");
  212.  
  213. post("heroes.buy","_id:100603,level:200");
  214.  
  215. post("heroes.buy","_id:100516,level:200");
  216.  
  217. post("heroes.buy","_id:100517,level:200");
  218.  
  219. post("heroes.buy","_id:100518,level:200");
  220.  
  221. post("heroes.buy","_id:100519,level:200");
  222.  
  223. post("heroes.buy","_id:101505,level:200");
  224.  
  225. post("heroes.buy","_id:100520,level:200");
  226.  
  227. post("heroes.buy","_id:100521,level:200");
  228.  
  229. post("heroes.buy","_id:100522,level:200");
  230.  
  231. post("heroes.buy","_id:100523,level:200");
  232.  
  233. post("heroes.buy","_id:100515,level:200");
  234.  
  235. post("heroes.buy","_id:100524,level:200");
  236.  
  237. post("heroes.buy","_id:100604,level:200");
  238.  
  239. post("heroes.buy","_id:100525,level:200");
  240.  
  241. post("heroes.buy","_id:100526,level:200");
  242.  
  243. post("heroes.buy","_id:100527,level:200");
  244.  
  245. post("heroes.buy","_id:100528,level:200");
  246.  
  247. post("heroes.buy","_id:100529,level:200");
  248.  
  249. Advance locations x100:
  250.  
  251. var boss_chest_start=JSON.parse(JSON.parse(userData).counters).WMAXLOCK;
  252. var post_cache=[];
  253.  
  254. function post(method,cachable){
  255.  
  256. if(cachable&&(post_cache.length<50)){post_cache[post_cache.length]=method;return;}
  257.  
  258. method.uniqueSid=uniqueSid;
  259.  
  260. method.batch=post_cache;
  261.  
  262. method='data='+JSON.stringify(method);
  263.  
  264. post_cache.length=0;
  265.  
  266. for(var i=0;i<3;i++){
  267.  
  268. var request=new XMLHttpRequest();
  269.  
  270. request.open('POST','http://faptitans.com/api/',false);
  271.  
  272. request.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset=UTF-8');
  273.  
  274. request.setRequestHeader('X-Requested-With','XMLHttpRequest');
  275.  
  276. request.setRequestHeader('X-CSRFToken',document.cookie.split('csrftoken=')[1].split(';')[0]);
  277.  
  278. request.send(method);
  279.  
  280. if(request.status==200)return JSON.parse(request.responseText);
  281.  
  282. }}
  283.  
  284. function kill(){this.method='battle.monsterKilled';this.args={gameTime:0,reward:{res:{gold:{__dec__:0,val:'1'},boss_chest:{__dec__:0,val:'0'}}},clicks:{__dec__:0,val:'1e100000'},times:20};
  285.  
  286. kill.prototype.set_chest=function(value){this.args.reward.res.boss_chest.val=value?'1':'0';return this;}}
  287.  
  288. function climb(){this.method='battle.changeLocation';this.args={locationId:0};
  289.  
  290. climb.prototype.set_id=function(value){this.args.locationId=value;return this;}}
  291.  
  292. function start(){this.method='misc.dailyquest.start';}
  293.  
  294. function claim(){this.method='misc.dailyquest.claim';}
  295.  
  296. for(var i=post(new climb).response.locationId,j=0;;i++,j++){if((i%100)==0)console.log('locationId:',i);
  297.  
  298. post((new kill).set_chest((i>boss_chest_start+25)&&((i%5)==0)&&(j>25)),true);
  299.  
  300. post((new climb).set_id(i+1),i>25);
  301.  
  302. }
  303.  
  304. Advance Locations x100 + Add Diamonds:
  305.  
  306. var boss_chest_start=JSON.parse(JSON.parse(userData).counters).WMAXLOCK;
  307. var post_cache=[];
  308.  
  309. function post(method,cachable){
  310.  
  311. if(cachable&&(post_cache.length<50)){post_cache[post_cache.length]=method;return;}
  312.  
  313. method.uniqueSid=uniqueSid;
  314.  
  315. method.batch=post_cache;
  316.  
  317. method='data='+JSON.stringify(method);
  318.  
  319. post_cache.length=0;
  320.  
  321. for(var i=0;i<3;i++){
  322.  
  323. var request=new XMLHttpRequest();
  324.  
  325. request.open('POST','http://faptitans.com/api/',false);
  326.  
  327. request.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset=UTF-8');
  328.  
  329. request.setRequestHeader('X-Requested-With','XMLHttpRequest');
  330.  
  331. request.setRequestHeader('X-CSRFToken',document.cookie.split('csrftoken=')[1].split(';')[0]);
  332.  
  333. request.send(method);
  334.  
  335. if(request.status==200)return JSON.parse(request.responseText);
  336.  
  337. }}
  338.  
  339. function kill(){this.method='battle.monsterKilled';this.args={gameTime:0,reward:{res:{gold:{__dec__:0,val:'1'},boss_chest:{__dec__:0,val:'0'}}},clicks:{__dec__:0,val:'1e100000'},times:20};
  340.  
  341. kill.prototype.set_chest=function(value){this.args.reward.res.boss_chest.val=value?'1':'0';return this;}}
  342.  
  343. function climb(){this.method='battle.changeLocation';this.args={locationId:0};
  344.  
  345. climb.prototype.set_id=function(value){this.args.locationId=value;return this;}}
  346.  
  347. function start(){this.method='misc.dailyquest.start';}
  348.  
  349. function claim(){this.method='misc.dailyquest.claim';}
  350.  
  351. for(var i=post(new climb).response.locationId,j=0;;i++,j++){if((i%100)==0)console.log('locationId:',i);
  352.  
  353. post((new kill).set_chest((i>boss_chest_start+25)&&((i%5)==0)&&(j>25)),true);
  354.  
  355. post((new climb).set_id(i+1),i>25);
  356.  
  357. if((i%25)==0){post(new claim,true);post(new start,true);}
  358.  
  359. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement