Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var inter = setInterval(function() {
- if(
- ($('body', window.parent.frames[2].document).querySelector("[src='graphics/life.gif']"))
- )
- {
- if($('body', window.parent.frames[0].document).querySelector("[alt='Search for an enemy to fight']")){
- $('body', window.parent.frames[0].document).querySelector("[alt='Search for an enemy to fight']").parentElement.click();
- }
- setTimeout(function() {
- if($('body', window.parent.frames[0].document).querySelector("[alt='Fight until one of you is dead.']")){
- $('body', window.parent.frames[0].document).querySelector("[alt='Fight until one of you is dead.']").parentElement.click();
- }
- }, 1000);
- setTimeout(function() {
- if($('body', window.parent.frames[0].document).querySelector("[alt='Pickup this item']")){
- $('body', window.parent.frames[0].document).querySelector("[alt='Pickup this item']").parentElement.click();
- }
- if($('body', window.parent.frames[0].document).querySelector("[alt='Sell your current armor']")){
- $('body', window.parent.frames[0].document).querySelector("[alt='Go back to the base']").parentElement.click();
- setTimeout(function() {
- $('body', window.parent.frames[0].document).querySelector("[alt='The wastelands']").parentElement.click();
- }, 1000);
- }
- }, 2000);
- }
- else{
- clearInterval(inter);
- console.log("Your hero is dead or captcha has appeared. Script stopped.");
- }
- }, 3500);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement