Neopet Autoplayer

By no0n Last update Mar 1, 2008 — Installed 3,316 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 7 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
no0n Script's Author

poofdd, that's not what the original requester intended for. Having it stop after a game was a way to keep the human element intact and less suspicious.

 
poofdd@yahoo... Scriptwright

no, it doesnt keep playing.. it stops after winning.

 
James Cameron Scriptwright

is it just me or is the script already supposed to do that? As explained in the post below yours I believe it does, unless it's broken?

 
poofdd@yahoo... Scriptwright

Hi, could you modify it so it continues to keep on playing whenever it finishes a game?!

that would be so so awesome!! thanks.

 
no0n Script's Author

Sure,

if (window.location.toString().indexOf('gormball2.phtml') != -1) {

This checks if you are playing the game by checking out the page name

	if (document.forms.namedItem('gormform')) { // exploded?
		var x = document.evaluate("//form[@action='gormball2.phtml']//input[@type='submit']/@onclick", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
		if (x.singleNodeValue != null) { // Next
			window.location.href = "javascript:void((function(){" + x.singleNodeValue.textContent + "})());";
		} else { // Continue
			x = document.evaluate("//form[@action='gormball2.phtml']//input[@type='button']/@onclick", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
			if (x.singleNodeValue != null) window.location.href = "javascript:void((function(){" + x.singleNodeValue.textContent + "})());";
		}

This checks if your ball exploded by looking for a form called gormform. Either way, it simulates submitting the form by clicking "Continue" or "Next" and runs the javascript code that is triggered by clicking these buttons (this code is part of the neopet site in both situations).

		//
	} else { // Play again?
		var f = document.evaluate("//form[@action='gormball.phtml']//input[@type='submit']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
		f.singleNodeValue.parentNode.submit();
	}

This code finds that there is no form, and your game is over. It then submits the form by simulating clicking the "Play again" button.

} else {
	var s = document.getElementsByName('player_backed')[0];
	s.options[4].value = 0;
	s.options[4].selected = true;
}

This checks the page and realizes you arent playing the game, so it selects a character and modifies their value to 0 as suggested by the person that requested this script.

I don't know anything about this game, except that the script does work, and is undetectable under the current game structure. If you don't trust it, dont use it. I wont make you

 
anniebee User

can you explain how it works, or what it does?

i'm afraid of getting a suspiciously high score and all O: also, i searched through for anything malicious, but not everyone will. some people will just see the vague description and just not download it.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel