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...
- 01-18-2012 09:36 AM #1
Boredom strikes again...
- 01-18-2012 10:12 AM #2I'm too crazy for this
- Join Date
- Nov 2009
- Location
- Tabaco, Philippines
- Age
- 21
- Posts
- 1,265
- Rep
- 68
- Gold (TOP! 48)
- 157,419
Teach me!!!


Humans have the possibility to yawn when they think of it

- 01-18-2012 10:43 AM #3


LinkBack URL
About LinkBacks

Reply With Quote

Bookmarks