Author Topic: No longer works.  (Read 11413 times)

Offline John McMaiesk

  • TIG BITTS
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4190
  • Karma: +39/-38
  • where is teh stragity genarator
No longer works.
« on: September 09, 2010, 08:37:21 AM »
Credit to Hnnnnngh

First, make sure you are using the Firefox web browser. You can download Firefox from here: www.mozilla.com/firefox/

Next, download and install the Greasemonkey addon for Firefox. You can download Greasemonkey here: https://addons.mozilla.org/firefox/addon/748

Then once Greasemonkey is installed into your Firefox browser, go to Tools > Greasemonkey > New User Script. Where it says Name put "Eevee" and where it says Namespace put "Eevee" too, don't put a description.

Next, copy and paste the includes, which are:

http://www.tppcrpg.net/battle.php
http://www.tppcrpg.net/battle.php?Battle=Trainer&Against=*

Only copy and paste one of them at a time, and paste them onto different
lines.

Next a window with Wordpad/Notepad/whatever will open up. A box may pop up asking you what your preferred type of text document is. If so, go into My Computer, into WINDOWS, and look for Notepad or Wordpad. Once that's done, paste this Javascript into it:

Code: [Select]
// ==UserScript==
// @name           Eevee
// @namespace      Eevee
// @include        http://www.tppcrpg.net/battle.php*
// ==/UserScript==
var con = /Continue /i;
var res = /Restart /i;
function pausecomp(millis)
{
var date = new Date();
var curDate = null;

do { curDate = new Date(); }
while(curDate-date < millis);
}
pausecomp(Math.random()*0000+0080);


  if (document.getElementsByTagName("body")[0].innerHTML.search(con) != -1) {
      //Look for catch link
      var links = document.getElementsByTagName("a");
      for (var i=0; i<links.length; i++) {
          if (links[i].innerHTML.search(con) != -1)
              window.location.href = links[i].href;
      }
  }
  else if (document.getElementsByTagName("body")[0].innerHTML.search(res) != -1) {
      //Look for catch link
      var links = document.getElementsByTagName("a");
      for (var i=0; i<links.length; i++) {
          if (links[i].innerHTML.search(res) != -1)
              window.location.href = links[i].href;
      }
  }
   else {
      document.forms[0].submit();
  }
  
  
clickLink();

Then simply save the Notepad/Wordpad document.

Finally, set the first move in your Pokemon's moveset to DOUBLEKICK. Now, you make sure Greasemonkey is enabled. (You can check this by going on Firefox > Tools > Greasemonkey, and seeing if there is a little tick beside the word "Enabled" in the dropdown menu.

Now all you have to do is start a battle with a trainer of your choice. Click "Attack!" once, and the macro will play out the rest of the battle for you. The macro will restart the battle, however, you have to click "Attack!" again at the start of each battle, so as of now, you can't just leave the macro running.

An advantage of this method, however, is that when Faction bonuses appear, you can simply enter them yourself, receive your team points, and have the risk of you being banned greatly reduced.

Quote from: Hnnnnngh
The pausecomp function is just a delay, in milliseconds, of how long it waits until it clicks. All the rest... just don't worry about it.

Again, all credits to Hnnnnngh.
« Last Edit: September 25, 2010, 09:06:35 AM by Maiesk »

Offline Hnnnnngh

  • Honorary Macro Adviser
  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #1 on: September 09, 2010, 06:19:21 PM »
Not quite, Maiesk, you only have to click the first attack in the set of 10 battles. Click once, it'll do 10 battles. Heck, the only time I've ever had to click attack first was when I was spamming Giga Drain on the battle towers. Should've clarified that, my apologies.

Offline kema93

  • Cheater
  • *
  • Posts: 26
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #2 on: September 09, 2010, 10:17:53 PM »
Which trainers have you tested this on Hnnnnngh?

I just tested it out on Issac Newton but nothing happened o.o

I followed all the steps in Maiesk's guide too

Offline Hnnnnngh

  • Honorary Macro Adviser
  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #3 on: September 09, 2010, 11:45:25 PM »
pretty much every trainer. 482301, 498042, 1558599, 5316, myself, random people, Shrimpy, battle towers, battle frontier... pretty much every area in the RPG. Are you sure you added the inclusions correctly?

Offline John McMaiesk

  • TIG BITTS
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4190
  • Karma: +39/-38
  • where is teh stragity genarator
Re: NEW METHOD OF AUTOATTACKING
« Reply #4 on: September 10, 2010, 06:17:13 AM »
Are you sure, Hnnnnngh? I have to click Attack at the start of every battle. I'll test out some things to see if I can fix it.

Weird, after a little trial and error, I did everything the say way again, and it's working now. :S
« Last Edit: September 10, 2010, 06:34:21 AM by Maiesk »

Offline kema93

  • Cheater
  • *
  • Posts: 26
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #5 on: September 10, 2010, 05:31:19 PM »
pretty much every trainer. 482301, 498042, 1558599, 5316, myself, random people, Shrimpy, battle towers, battle frontier... pretty much every area in the RPG. Are you sure you added the inclusions correctly?

Yeah, I just re did the entire process again, just in case I did something wrong. However, after completing the process again, nothing happens after I click Attack for the first battle still =/

Offline Hnnnnngh

  • Honorary Macro Adviser
  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #6 on: September 10, 2010, 06:17:48 PM »
pretty much every trainer. 482301, 498042, 1558599, 5316, myself, random people, Shrimpy, battle towers, battle frontier... pretty much every area in the RPG. Are you sure you added the inclusions correctly?

Yeah, I just re did the entire process again, just in case I did something wrong. However, after completing the process again, nothing happens after I click Attack for the first battle still =/

That's... fairly bizarre. I dunno, honestly. Probably a stupid question but Greasemonkey IS enabled, yes? You can tell if it is 'cuz the little monkey icon on the lower-right will be in color.

edit: in addition, you don't HAVE to put Eevee in for the name and namespace. ;P
« Last Edit: September 11, 2010, 03:51:28 AM by Hnnnnngh »

Offline SpAz

  • POPSICLE STICK IN MY PEEHOLE
  • VIP Member
  • Hero Member
  • *****
  • Posts: 2752
  • Karma: +4/-0
  • Gender: Male
  • ~The Dump King~
Re: NEW METHOD OF AUTOATTACKING
« Reply #7 on: September 11, 2010, 12:57:37 PM »
wow im actually impressed

good job Hnnnnnngh
I'm Jill. I own a parking lot in Montana. Here is a picture of Darkheart and I at the tppcrpg summer bash.



Tppc forever

Offline Hnnnnngh

  • Honorary Macro Adviser
  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #8 on: September 11, 2010, 02:40:02 PM »
why thank you

Offline Kreize

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +0/-0
  • Gender: Male
Re: NEW METHOD OF AUTOATTACKING
« Reply #9 on: September 11, 2010, 03:25:31 PM »
We're all being stupid. In the script the site is 'www.tppcrpg.net' so if you ommit the 'www' in the web browser it wont work.  ::)

Offline QQMoarPls

  • Cheater
  • *
  • Posts: 23
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #10 on: September 11, 2010, 05:16:45 PM »
So this is what you needed help with.

Bad boy!

Offline kema93

  • Cheater
  • *
  • Posts: 26
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #11 on: September 11, 2010, 05:27:57 PM »
We're all being stupid. In the script the site is 'www.tppcrpg.net' so if you ommit the 'www' in the web browser it wont work.  ::)

OMFG!

*Super Facepalm*

Lmfao, that was what was causing problems for me.

Thanks a lot to Hnnnnngh for making this script and Kreize for pointing out the site in the script

Offline John McMaiesk

  • TIG BITTS
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4190
  • Karma: +39/-38
  • where is teh stragity genarator
Re: NEW METHOD OF AUTOATTACKING
« Reply #12 on: September 12, 2010, 09:42:39 AM »
Wonderful :)

Thanks to Hnnnnngh, we've evolved from the AA.

May all your level 10000s be happy. :)

Offline Hnnnnngh

  • Honorary Macro Adviser
  • Full Member
  • ***
  • Posts: 144
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #13 on: September 12, 2010, 03:12:20 PM »
Thanks a lot to Hnnnnngh for making this script

I'd say thanks... but I didn't make the script, I got it from an old friend of mine, who got it from a friend, who got it from a friend, who.... I don't know who actually made it. ):
« Last Edit: September 12, 2010, 03:22:24 PM by Hnnnnngh »

Offline kema93

  • Cheater
  • *
  • Posts: 26
  • Karma: +0/-0
Re: NEW METHOD OF AUTOATTACKING
« Reply #14 on: September 13, 2010, 09:39:18 PM »
Thanks a lot to Hnnnnngh for making this script

I'd say thanks... but I didn't make the script, I got it from an old friend of mine, who got it from a friend, who got it from a friend, who.... I don't know who actually made it. ):

Uh, well thanks for sharing it to us at least then =]