var rec1,rec2;rec1=commonJS.$('div_boss_fight_info_container').innerHTML;setTimeout("autoCheckFightStop();",30000);function autoCheckFightStop(){rec2=commonJS.$('div_boss_fight_info_container').innerHTML;if(rec1==rec2){console.log("发现记录相同. 开始重启战斗.");juBenJS.startAutoFight();setTimeout("juBenJS.startAutoFight();",5000);setTimeout("autoCheckFightStop();",30000+5000);}else{console.log("记录不相同,战斗正常.");setTimeout("autoCheckFightStop();",30000);rec1=rec2;}} |