Meh...Code:javascript: var bh_skill = '1'; var bh_retreat = true; function bh_do_attack () { var hasopponent = false; var lostbattle = false; for ( var i in battle_data.monsters ) { if ( $ ( '#monster_' + i + ' .health_bar' ).attr ( 'data_current_hp' ) > 0 ) { hasopponent = true; break; } } if ( $ ( ".header_box" ).text ( ).indexOf ( 'lost' ) > -1 ) { lostbattle = true; } if ( hasopponent && !lostbattle ) { if ( $ ( '#energy_timer' ).width ( ) == 100 ) { $ ( 'a[data_skill_id="' + bh_skill + '"]' ).click ( ); } setTimeout ( 'bh_do_attack ()' , 1000 ); } else if ( lostbattle ) { $ ( "a.cancel_button" ).click ( ); } else { if ( bh_retreat ) { $ ( "#retreat_waves" ).click ( ); } else { $ ( "#continue_waves" ).click ( ); } } } bh_do_attack ();
Results 1 to 3 of 3
Thread: Boredom strikes again...
- 18 Jan. 2012 10:36am #1
- Age
- 30
- Join Date
- Nov. 2009
- Location
- Anaheim, California
- Posts
- 1,065
- Reputation
- 99
- LCash
- 0.00
Boredom strikes again...
- 18 Jan. 2012 11:12am #2
- Age
- 28
- Join Date
- Nov. 2009
- Location
- Asia
- Posts
- 2,701
- Reputation
- 72
- LCash
- 0.00
- Awards
Teach me!!!
Humans yawn when they think of it.
- 18 Jan. 2012 11:43am #3
- Age
- 30
- Join Date
- Nov. 2009
- Location
- Anaheim, California
- Posts
- 1,065
- Reputation
- 99
- LCash
- 0.00