Ok I've managed to get a script that auto selects your pet and choose an opponent. When it goes into the battling page, it selects the weapons and choose an ability (eg. Fierce Attack). Now the problem I'm facing is clicking the "Go!" button. The button contains an onClick='SubmitFightForm()'. I've tried different methods of clicking the buttons like: Code (Text): if((link=document.evaluate("//a[contains(@onclick,'SubmitFightForm()')]",document,null,9,null).singleNodeValue)) { unsafeWindow.SubmitFightForm()(parseInt((link.getAttribute('onclick').match(/\((\d+)\)/)||'1')[1])); } and Code (Text): for(var i=0; i<button.length; i++) { if(button[i].value = 'Go!') { button.click(); } } Sure the codes click the button, but it also deselects both weapons that the script has selected previously, resulting in my pet using only an ability without weapons. Just for extra info, this is how I selected my two weapons. Code (Text): for(var j=0; j<select_weapon.length; j++) { if(select_weapon[j].type = 'checkbox') { document.location.href="javascript:activate_equip(2);"; document.location.href="javascript:activate_equip(3);"; } } Any help will be appreciated
You can lock/close this thread. It's been solved already. Solution: Code (Text): document.location.href="javascript:SubmitFightForm();";