Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add Gold:
- var request=new XMLHttpRequest;
- request.open('POST', 'api/', false);
- request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
- request.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
- request.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
- request.send('data={"method":"battle.monsterKilled","args":{"gameTime":0,"clicks":{"__dec__":0,"val":"10e99999"},"reward":{"res":{"gold":{"__dec__":0,"val":"10e99999"}}}},"uniqueSid":"' + uniqueSid + '"}');
- DPS via hero upgrade (requires enough gold to buy upgrades):
- function post(method, args, times = 1) {
- method = 'data={"method":"' + method + '","args":{' + args.replace(/\b[a-zA-Z_][a-zA-Z0-9_]+\b/g, '"$&"') + '},"uniqueSid":"' + uniqueSid + '"}';
- for (var index = 0; index < times; index++) {
- var poster = new XMLHttpRequest();
- poster.open('POST', 'http://faptitans.com/api/', false);
- poster.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
- poster.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
- poster.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
- poster.send(method); console.log(method); console.log(poster.responseText); }
- }
- runLoop = async () =>
- {
- for (i=0;;i++){
- await new Promise( resolve => setTimeout( resolve, 450) );
- {
- post("heroes.buy","_id:100529,level:200");
- post("heroes.buy","_id:100529,level:200");
- post("heroes.buy","_id:100529,level:200");
- }
- }
- }
- runLoop()
- Unlock Heros Part 1 (requires enough gold to buy heros):
- function post(method, args, times = 1) {
- method = 'data={"method":"' + method + '","args":{' + args.replace(/\b[a-zA-Z_][a-zA-Z0-9_]+\b/g, '"$&"') + '},"uniqueSid":"' + uniqueSid + '"}';
- for (var index = 0; index < times; index++) {
- var poster = new XMLHttpRequest();
- poster.open('POST', 'http://faptitans.com/api/', false);
- poster.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
- poster.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
- poster.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
- poster.send(method); console.log(method); console.log(poster.responseText); }
- }
- post("heroes.buy","_id:100499,level:200");
- post("heroes.buy","_id:100500,level:200");
- post("heroes.buy","_id:100501,level:200");
- post("heroes.buy","_id:100502,level:200");
- post("heroes.buy","_id:100703,level:200");
- post("heroes.buy","_id:100701,level:200");
- post("heroes.buy","_id:100503,level:200");
- post("heroes.buy","_id:100702,level:200");
- post("heroes.buy","_id:100498,level:200");
- post("heroes.buy","_id:100504,level:200");
- post("heroes.buy","_id:101503,level:200");
- post("heroes.buy","_id:100497,level:200");
- post("heroes.buy","_id:100601,level:200");
- post("heroes.buy","_id:100802,level:200");
- post("heroes.buy","_id:101501,level:200");
- post("heroes.buy","_id:910001,level:200");
- post("heroes.buy","_id:777001,level:200");
- post("heroes.buy","_id:101506,level:200");
- post("heroes.buy","_id:100505,level:200");
- post("heroes.buy","_id:800001,level:200");
- post("heroes.buy","_id:920001,level:200");
- Unlock Heros Part 2:
- function post(method, args, times = 1) {
- method = 'data={"method":"' + method + '","args":{' + args.replace(/\b[a-zA-Z_][a-zA-Z0-9_]+\b/g, '"$&"') + '},"uniqueSid":"' + uniqueSid + '"}';
- for (var index = 0; index < times; index++) {
- var poster = new XMLHttpRequest();
- poster.open('POST', 'http://faptitans.com/api/', false);
- poster.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
- poster.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
- poster.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
- poster.send(method); console.log(method); console.log(poster.responseText); }
- }
- post("heroes.buy","_id:777002,level:200");
- post("heroes.buy","_id:930001,level:200");
- post("heroes.buy","_id:100602,level:200");
- post("heroes.buy","_id:100803,level:200");
- post("heroes.buy","_id:777004,level:200");
- post("heroes.buy","_id:101502,level:200");
- post("heroes.buy","_id:777005,level:200");
- post("heroes.buy","_id:940001,level:200");
- post("heroes.buy","_id:100496,level:200");
- post("heroes.buy","_id:100801,level:200");
- post("heroes.buy","_id:100804,level:200");
- post("heroes.buy","_id:777006,level:200");
- post("heroes.buy","_id:100705,level:200");
- post("heroes.buy","_id:100706,level:200");
- post("heroes.buy","_id:101504,level:200");
- post("heroes.buy","_id:100707,level:200");
- post("heroes.buy","_id:100708,level:200");
- post("heroes.buy","_id:100510,level:200");
- post("heroes.buy","_id:100511,level:200");
- post("heroes.buy","_id:100704,level:200");
- post("heroes.buy","_id:100512,level:200");
- Unlock Heros Part 3:
- function post(method, args, times = 1) {
- method = 'data={"method":"' + method + '","args":{' + args.replace(/\b[a-zA-Z_][a-zA-Z0-9_]+\b/g, '"$&"') + '},"uniqueSid":"' + uniqueSid + '"}';
- for (var index = 0; index < times; index++) {
- var poster = new XMLHttpRequest();
- poster.open('POST', 'http://faptitans.com/api/', false);
- poster.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
- poster.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
- poster.setRequestHeader('X-CSRFToken', document.cookie.split('csrftoken=')[1].split(';')[0]);
- poster.send(method); console.log(method); console.log(poster.responseText); }
- }
- post("heroes.buy","_id:100513,level:200");
- post("heroes.buy","_id:100514,level:200");
- post("heroes.buy","_id:777008,level:200");
- post("heroes.buy","_id:100603,level:200");
- post("heroes.buy","_id:100516,level:200");
- post("heroes.buy","_id:100517,level:200");
- post("heroes.buy","_id:100518,level:200");
- post("heroes.buy","_id:100519,level:200");
- post("heroes.buy","_id:101505,level:200");
- post("heroes.buy","_id:100520,level:200");
- post("heroes.buy","_id:100521,level:200");
- post("heroes.buy","_id:100522,level:200");
- post("heroes.buy","_id:100523,level:200");
- post("heroes.buy","_id:100515,level:200");
- post("heroes.buy","_id:100524,level:200");
- post("heroes.buy","_id:100604,level:200");
- post("heroes.buy","_id:100525,level:200");
- post("heroes.buy","_id:100526,level:200");
- post("heroes.buy","_id:100527,level:200");
- post("heroes.buy","_id:100528,level:200");
- post("heroes.buy","_id:100529,level:200");
- Advance locations x100:
- var boss_chest_start=JSON.parse(JSON.parse(userData).counters).WMAXLOCK;
- var post_cache=[];
- function post(method,cachable){
- if(cachable&&(post_cache.length<50)){post_cache[post_cache.length]=method;return;}
- method.uniqueSid=uniqueSid;
- method.batch=post_cache;
- method='data='+JSON.stringify(method);
- post_cache.length=0;
- for(var i=0;i<3;i++){
- var request=new XMLHttpRequest();
- request.open('POST','http://faptitans.com/api/',false);
- request.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset=UTF-8');
- request.setRequestHeader('X-Requested-With','XMLHttpRequest');
- request.setRequestHeader('X-CSRFToken',document.cookie.split('csrftoken=')[1].split(';')[0]);
- request.send(method);
- if(request.status==200)return JSON.parse(request.responseText);
- }}
- 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};
- kill.prototype.set_chest=function(value){this.args.reward.res.boss_chest.val=value?'1':'0';return this;}}
- function climb(){this.method='battle.changeLocation';this.args={locationId:0};
- climb.prototype.set_id=function(value){this.args.locationId=value;return this;}}
- function start(){this.method='misc.dailyquest.start';}
- function claim(){this.method='misc.dailyquest.claim';}
- for(var i=post(new climb).response.locationId,j=0;;i++,j++){if((i%100)==0)console.log('locationId:',i);
- post((new kill).set_chest((i>boss_chest_start+25)&&((i%5)==0)&&(j>25)),true);
- post((new climb).set_id(i+1),i>25);
- }
- Advance Locations x100 + Add Diamonds:
- var boss_chest_start=JSON.parse(JSON.parse(userData).counters).WMAXLOCK;
- var post_cache=[];
- function post(method,cachable){
- if(cachable&&(post_cache.length<50)){post_cache[post_cache.length]=method;return;}
- method.uniqueSid=uniqueSid;
- method.batch=post_cache;
- method='data='+JSON.stringify(method);
- post_cache.length=0;
- for(var i=0;i<3;i++){
- var request=new XMLHttpRequest();
- request.open('POST','http://faptitans.com/api/',false);
- request.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset=UTF-8');
- request.setRequestHeader('X-Requested-With','XMLHttpRequest');
- request.setRequestHeader('X-CSRFToken',document.cookie.split('csrftoken=')[1].split(';')[0]);
- request.send(method);
- if(request.status==200)return JSON.parse(request.responseText);
- }}
- 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};
- kill.prototype.set_chest=function(value){this.args.reward.res.boss_chest.val=value?'1':'0';return this;}}
- function climb(){this.method='battle.changeLocation';this.args={locationId:0};
- climb.prototype.set_id=function(value){this.args.locationId=value;return this;}}
- function start(){this.method='misc.dailyquest.start';}
- function claim(){this.method='misc.dailyquest.claim';}
- for(var i=post(new climb).response.locationId,j=0;;i++,j++){if((i%100)==0)console.log('locationId:',i);
- post((new kill).set_chest((i>boss_chest_start+25)&&((i%5)==0)&&(j>25)),true);
- post((new climb).set_id(i+1),i>25);
- if((i%25)==0){post(new claim,true);post(new start,true);}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement