Advertisement
Guest User

tl v3

a guest
Mar 30th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if($('body', window.parent.frames[0].document).querySelectorAll("[alt='The wastelands']")[0]){
  2.     $('body', window.parent.frames[0].document).querySelectorAll("[alt='The wastelands']")[0].parentElement.click();
  3. }
  4. else{
  5.     $('body', window.parent.frames[0].document).querySelectorAll("[alt='Go back to the base']")[0].parentElement.click();
  6.     setTimeout(function() {
  7.         $('body', window.parent.frames[0].document).querySelectorAll("[alt='The wastelands']")[0].parentElement.click();
  8.     }, 1500);
  9. }
  10.  
  11. setInterval(function() {
  12.    
  13.     if(
  14.         ($('body', window.parent.frames[2].document).querySelectorAll("[src='graphics/life.gif']")[0])
  15.     )
  16.     {
  17.         if(($('body', window.parent.frames[2].document).querySelectorAll("[src='graphics/life.gif']")[0].offsetWidth)<2){
  18.            
  19.             $('body', window.parent.frames[0].document).querySelectorAll("[alt='Search for an enemy to fight']")[0].parentElement.click();
  20.  
  21.             setTimeout(function() {
  22.                 $('body', window.parent.frames[0].document).querySelectorAll("[alt='Fight until one of you is dead.']")[0].parentElement.click();
  23.             }, 400);
  24.  
  25.             setTimeout(function() {
  26.                 if($('body', window.parent.frames[0].document).querySelectorAll("[alt='Pickup this item']")[0]){
  27.                     $('body', window.parent.frames[0].document).querySelectorAll("[alt='Pickup this item']")[0].parentElement.click();
  28.                 }
  29.             }, 800);
  30.  
  31.             setTimeout(function() {
  32.                 $('body', window.parent.frames[0].document).querySelectorAll("[alt='Go back to the base']")[0].parentElement.click();
  33.             }, 1200);
  34.  
  35.             setTimeout(function() {
  36.                 $('body', window.parent.frames[0].document).querySelectorAll("[alt='Go to the hospital']")[0].parentElement.click();
  37.             }, 1600);
  38.  
  39.             setTimeout(function() {
  40.                 $('body', window.parent.frames[0].document).querySelectorAll("[alt='Recieve a healing injection']")[0].parentElement.click();
  41.             }, 2000);
  42.            
  43.             setTimeout(function() {
  44.                 $('body', window.parent.frames[0].document).querySelectorAll("[alt='Go back to the base']")[0].parentElement.click();
  45.             }, 2400);
  46.  
  47.             setTimeout(function() {
  48.                 $('body', window.parent.frames[0].document).querySelectorAll("[alt='The wastelands']")[0].parentElement.click();
  49.             }, 2800);
  50.         }
  51.         else{
  52.             $('body', window.parent.frames[0].document).querySelectorAll("[alt='Search for an enemy to fight']")[0].parentElement.click();
  53.  
  54.             setTimeout(function() {
  55.                 $('body', window.parent.frames[0].document).querySelectorAll("[alt='Fight until one of you is dead.']")[0].parentElement.click();
  56.             }, 500);
  57.             setTimeout(function() {
  58.                 if($('body', window.parent.frames[0].document).querySelectorAll("[alt='Pickup this item']")[0]){
  59.                     $('body', window.parent.frames[0].document).querySelectorAll("[alt='Pickup this item']")[0].parentElement.click();
  60.                 }
  61.             }, 1000);
  62.         }
  63.        
  64.     }
  65.     else{
  66.         $('body', window.parent.frames[2].document).querySelectorAll("[value='Am I out of stasis yet?']")[0].click();
  67.        
  68.         setTimeout(function() {
  69.             $('body', window.parent.frames[0].document).querySelectorAll("[alt='Go back to the base']")[0].parentElement.click();
  70.         }, 500);
  71.        
  72.         setTimeout(function() {
  73.             $('body', window.parent.frames[0].document).querySelectorAll("[alt='The wastelands']")[0].parentElement.click();
  74.         }, 1000);
  75.     }
  76.  
  77. }, 3200);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement