// ==UserScript== // @name NeoQuest II Trainer // @namespace http://nq2guy.tz/ // @description Automatically battles and moves left and right for you. // @grant GM_log // @grant GM_addStyle // @grant GM_getValue // @grant GM_setValue // @grant GM_openInTab // @grant GM_deleteValue // @grant GM_xmlhttpRequest // @grant GM_getResourceText // @include http://www.neopets.com/games/nq2/nq2.phtml* // @version 0.0.1.20151225125032 // @downloadURL https://update.greasyfork.icu/scripts/15543/NeoQuest%20II%20Trainer.user.js // @updateURL https://update.greasyfork.icu/scripts/15543/NeoQuest%20II%20Trainer.meta.js // ==/UserScript== //script licensed under, GNU GPL V3 , see http://www.gnu.org/licenses/gpl.txt for details //uncomment these lines to initialize variables //Check for annoying server hiccup before bothering to make any more variables var i = 0; var hiccup=1; var divs = document.getElementsByTagName('div'); for(i=0;i")) { hitTarget++; if(hitTarget>=9) { GM_setValue("hitTarget",5); } else { GM_setValue("hitTarget",hitTarget); } } //check character's status switch(texts[j].innerHTML) { case "Rohane": if((texts[j+1].color=="#d0d000") || (texts[j+1].color=="red")) { fact=5; useid = healingItem; } break; case "Mipsy": nxactor=2; fact=9201; //use direct damage if(!isHasted) { fact=9203; GM_setValue("isHasted",true); } if((texts[j+1].color=="#d0d000") || (texts[j+1].color=="red")) { fact=5; useid = healingItem; } break; case "Talinia": var multipleTargets = /Multiple Targets/; var k=0; var links = document.getElementsByTagName('a'); for(k=0;kVelm": var l=0; // loops to see if velm is wasting his time healing var fullhp = 0; //if its 4 then all 4 people are fully healed var allies = false; //loop through all pictures if it's velm's turn for(l=0;l