Quantcast

Jump to content


Photo

Could anybody post a Neoquest 1 auto trainer?


  • Please log in to reply
17 replies to this topic

#1 Knocturne

Knocturne
  • 37 posts

Posted 18 February 2016 - 07:19 PM

Could be in any format. Greasemonkey script or whatever.

 

It seems like such a simple thing, but I just know nothing about code. I tried messing with an old script to fix it, but I couldn't figure it out. I just want something to do the level grinding for me.



#2 gerbil

gerbil
  • 47 posts

Posted 18 February 2016 - 07:40 PM

Can you post the old script you were trying to fix?

#3 Knocturne

Knocturne
  • 37 posts

Posted 18 February 2016 - 07:44 PM

Sure. It's just a simple greasemonkey script for the firefox plugin. Problem is, it enters combat but then when it tries to attack or whatever it sends you to a 404 page.

 

What I don't understand is why there are always so many NQ2 auto trainers/players but never any NQ1 ones...you would think NQ2 would be harder to make.

 

// ==UserScript==
// @name Neoquest Attacker
// @namespace http://userscripts.o...rs/useridnumber
// @include http://www.neopets.c...ames/neoquest/*
// ==/UserScript==

var neoquest=document.body.innerHTML.split('NeoQuest is brought to you by')[1];
var health=eval(neoquest.split('Health: ')[1].split(' ',''));
if(neoquest.search('to see what you found')!=-1){

location.href='http://www.neopets.c...eoquest.phtml';

}

for(i=0;i<document.forms.length;i++){

if(document.forms[i].elements[0].value=="Click here to return to the map"){

document.forms[i].submit();
}
}

if(neoquest.search('navarrows.gif')!=-1){

location.href='http://www.neopets.c...move&movedir=';

}

if(neoquest.search('to begin the fight')!=-1){

location.href='http://www.neopets.c...eoquest.phtml';

}


if(health<(0.5)&&((neoquest.search('Spirit of Growth')!=-1)||(neoquest.search('Healing Potion')!=-1))){

if(neoquest.search('Spirit of Growth')!=-1){

location.href="javascriptsetdata('special',200019);";

}else if(neoquest.search('Healing Potion')!=-1){

location.href="javascriptsetdata('item', 220004);";//replace with pot id

}
}else if(neoquest.search('Attack')!=-1){

location.href="javascriptsetdata('attack', 0);";

}else if(neoquest.search('Do nothing')!=-1){

location.href="javascriptsetdata('noop', 0);";

}

Edited by Knocturne, 18 February 2016 - 07:45 PM.


#4 gerbil

gerbil
  • 47 posts

Posted 19 February 2016 - 10:53 AM

I looked into it a bit last night. I got it to at least start Attacking. It breaks though when you need to use a Healing Potion. I'll look into it again later today. I haven't played NeoQuest I. Could you advise me on potion strategies? What are all the possible potions in the game?

 

Here is a pastebin link to the current iteration with Attacking working.

 

**EDIT: removed pastebin link of old code to avoid confusion. Actual script is further down.


Edited by gerbil123, 22 February 2016 - 12:37 AM.


#5 Knocturne

Knocturne
  • 37 posts

Posted 19 February 2016 - 12:25 PM

I think I can fix the healing potion part! The one I pasted is set to use a certain potion's ID.

 

The "'item', 220004" part is what you edit to use the healing potion.
220000 is Weak Healing Potion
220001 is Standard Healing Potion
220002 is Strong Healing Potion
220003 is Greater Healing Potion
220004 is Superior Healing Potion
220005 is Spirit Healing Potion

 

You probably have to edit the text to say the name of hte potion too on the search. I haven't tried your fix for attacking but I will now.

 

EDIT: I thought it'd be as simple as editing the potion ID to the right number, but that didn't fix the healing part. The attacking is working though.


Edited by Knocturne, 19 February 2016 - 01:23 PM.


#6 gerbil

gerbil
  • 47 posts

Posted 19 February 2016 - 01:45 PM

Yeah, it's not quite that simple. There seems to have been some small changes made to the Neoquest I interface since that AutoPlayer was written. I'll check it out tonight. I also plan to write the Healing Potions so it'll automatically select the potion that'll heal you closest to full that you have in stock. That way you won't have to constantly fiddle around with the script itself.

 

Another question: What is "Spirit of Growth"? Is that another healing potion with a different name?



#7 Knocturne

Knocturne
  • 37 posts

Posted 19 February 2016 - 05:00 PM

Yeah, it's not quite that simple. There seems to have been some small changes made to the Neoquest I interface since that AutoPlayer was written. I'll check it out tonight. I also plan to write the Healing Potions so it'll automatically select the potion that'll heal you closest to full that you have in stock. That way you won't have to constantly fiddle around with the script itself.

 

Another question: What is "Spirit of Growth"? Is that another healing potion with a different name?

 

 

 

I've never actually gotten far enough into NQ1 to be sure, but I believe "Spirit of Growth" is a special ability on a late-game weapon that you can use to heal yourself instead of a potion.

 

Thanks a lot for looking into this by the way.  If this ends up fully working it will be the only one still in existence for NQ1 lol.


Another problem it has is stopping on minions that stun you.

 

When a monster stuns you, all you can click is "do nothing" and for some reason the script can't click "do nothing".


Edited by Knocturne, 19 February 2016 - 02:08 PM.


#8 gerbil

gerbil
  • 47 posts

Posted 21 February 2016 - 06:33 AM

Made some improvements. You should no longer need to fiddle around to change the potions in the script. It should automatically pick the weakest potion that can heal you fully or the strongest potion in stock if none can heal fully. Also, I think I fixed "Do nothing". I introduced a typo last time that broke it. Please test and let me know. I haven't gotten to a point in the game with more than one potion so I can't say it works for sure.

 

**EDIT: removed pastebin link of old code to avoid confusion. Actual script is further down.


Edited by gerbil123, 22 February 2016 - 12:37 AM.


#9 Knocturne

Knocturne
  • 37 posts

Posted 21 February 2016 - 11:32 AM

Alright so it definitely fixed the "Do Nothing" thing. Im fighting a lot of monsters that stun and it works fine.

 

However, the potions appear to still be broken. I have some of each of "weak, standard, strong, greater, and superior". It just doesn't try to use any of them though. It just lets me die without ever trying to use a potion even when my health is at like 10%.

 

Is this because there is no "if health <0.5" line before the potions? It doesn't try to use my Spirit of Growth ability on my life staff either (which can only be used once every 10 turns).


EDIT: Ah. I think I found the problem. It comes from your misunderstanding of how "Spirit of Growth" and the Life Staff work. The "Spirit of Growth" ability doesn't trigger automatically from the attack option, it is a separate option called "Cast Spirit of Growth from your Life Staff" and it can only be used once every 10 turns I believe.

 

So what was happening was every time my health would get low and your script detected that I had a Life Staff equipped, it was set to click "attack" assuming that would heal me when in reality it did no healing.

 

I just deleted the line about Spirit of Growth and now it will use potions.

 

 

EDIT 2:

So it works, but just so you know it chooses to use the "weakest" potion you have in stock, not the best. I'm not sure if that's what you intended, but that's how it's working, which I suppose is fine.


Edited by Knocturne, 21 February 2016 - 11:42 AM.


#10 gerbil

gerbil
  • 47 posts

Posted 21 February 2016 - 01:16 PM

Thanks for the info. Definitely not what I intended, but like I said, I couldn't test it. Any idea how far into the game you get other potions? I think I'm around Lvl 7 in the first cave.

 

EDIT: Ok, I was awake really late last night when I started working on it, so I pretty quickly caught the stupid mistakes that caused those bugs. Try out this version: http://pastebin.com/VhqFsxUe


Edited by gerbil123, 21 February 2016 - 01:44 PM.


#11 Knocturne

Knocturne
  • 37 posts

Posted 21 February 2016 - 11:28 PM

To answer your question, I believe you get "Standard" at the end of the first dungeon in the caves, you get the "Strong" in the Jungle Ruins, the Greater in the Temple of Roo, the Superior in the Techo Caves, and the Spirit are very rare potions you get in the Palace of the Two Rings.

 

Honestly, by the time you get spirite potions you should have the Moonstone staff which heals you for 4hp every single turn and has a 40% chance of casting a spell automatically on "Attack" that heals you for 25 hp. Basically, it replaces most healing potions.

 

Your script, in the form you have most recently posted, works wonderfully for most intensive purposes. It could use perfection for Insane players, but otherwise,

 

Thank you very much for your contributions. You have provided the only truly working Neoquest 1 training script in public existence. (Believe me, I've spent hours looking). It may have started from someone else's script, but I believe you've done enough work to consider the majority part yours. It's now your script. So thank you very much

The only thing Neoquest 1 needs now is a full on "Auto-player" script that actually goes through the entire journey on its own, but that is extremely wishful thinking.

 

So thank you for your service gerbil123. I hope other people find this topic on google searches in the future and recognize your work. I know Neopets is a somewhat dead game, but I'm sure there are a few that will do so.



#12 gerbil

gerbil
  • 47 posts

Posted 22 February 2016 - 12:40 AM

Awesome. Glad to hear it works. I agree a full auto-player would be nice. The game can be very tedious. Have you noticed, btw, that you can spam click a directional button and move 10+ spaces (if you're sneaking) in one page refresh. It's made it a bit more bearable for me. I think I'll actually just complete the game now. It seems much quicker than NQ2.



#13 Knocturne

Knocturne
  • 37 posts

Posted 22 February 2016 - 01:33 AM

Awesome. Glad to hear it works. I agree a full auto-player would be nice. The game can be very tedious. Have you noticed, btw, that you can spam click a directional button and move 10+ spaces (if you're sneaking) in one page refresh. It's made it a bit more bearable for me. I think I'll actually just complete the game now. It seems much quicker than NQ2.

 

Haha yes, I noticed that right away.  I did that all the way to completion, but you will have to stop at several spots and use your script to level up. However, I think I used your script excessively. I walked over the last few bosses like they were nothing. The max level is 50.

 

I'll see how well the NQ2 autoplayer works.



#14 Rainforce

Rainforce
  • 314 posts


Users Awards

Posted 22 February 2016 - 07:24 AM

I'll be trying this in a few days, thanks!



#15 Cylus

Cylus
  • 24 posts

Posted 06 September 2016 - 07:11 PM

Could someone explain how i use this with greasemonkey? I've downloaded the add-on for FireFox, but have no clue how to run the script. Any pointers?



#16 mrfloyd

mrfloyd
  • 28 posts


Users Awards

Posted 07 March 2017 - 04:44 PM

Hey. I don't know if i'm not supposed to revive this old thread, but just wanted to say that this still works ^v^

 

I used it with greasemonkey. For anyone having troubles to do that, after you copy the script from the pastebin, you go here in New user script: 

 

079fd518ad.png

 

Then click in "Use Script from clipboard" in the new window that will open. Close the new window that it just opened (the one with the script) and check if it is enabled by clicking again on the arrow besides the monkey face. It should be like this:

 

871b333b2a.png

 

After that you just need to open neoquest! Just a reminder that this script does not play for you, it only battles for you. You will still need to move!



#17 kauri

kauri
  • 9 posts

Posted 09 September 2021 - 01:20 AM

I am reviving this old thread as I've made some significant changes to the script. I DO NOT KNOW HOW TO CODE. I have just used some common sense and learned from the previous code. Some of the changes I've made will undoubtedly be done in a very amateur fashion, but I believe the script is functional, and provides some major improvements including improving potion economy, death prevention, and greater user flexibility.

 

I will continue testing through my current playthrough but after half a game, I haven't encountered any issues. Do feel free to get in touch!

 

Changes:

 - Please read the comments! They should explain how to tailor the script to your specific needs.

 - Now uses Absorption. This will save you a bunch of potions and allow you to take on slightly harder enemies, especially early game. You can comment this out.

 - Now heals when outside of combat!

 - If you run out of your chosen types of potions, the script will stop functioning (instead of getting you killed).

 - Healing, both inside and outside combat, requires the user to tailor the script to suit. You will need to set %health to heal at, and select preferred potion types (by commenting out unwanted types). Different potions can be selected for inside and outside combat. It uses potions weakest to strongest but can be easily adjusted.

 - I have left the script with mid-game potion settings, which I hope will facilitate user comprehension.

 

Removed link, see below


Edited by kauri, 11 September 2021 - 01:04 AM.


#18 kauri

kauri
  • 9 posts

Posted 11 September 2021 - 01:05 AM

Fixed a couple minor issues.

 

https://pastebin.com/Y2fmw8nm




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users