housecount = 2 # How many houses we will build in our map nestcount = 3 # How many nests we will build in our map storagecount = 13 # How many storage centers we will build in our map hospitalcount = 4 # How many hospitals we will build in our map # ---------------------------------------------------------------------
Add your neopets username and password between the quotes in the neouser and neopass fields
Add a proxy if you prefer
Do not change the counts on the buildings unless you are modifying the code and know what you're doing. These are optimized for the default logic.
Save and close the text editor
Make sure no file is selected, then do Shift+Rightclick > Open command window here
(If you have a file selected, you will not see this option. Unselect any selected files and try it again)
type client.py and hit Enter
If you have problems, you will need to add Python to your PATH. Just google this, it isn't difficult at all.
get popcorn and watch the magic (not recommended for prolonged durations)
(You can just "edit in IDLE" instead of opening in cmd, but IDLE is incredibly ugly. Besides, only noobs use IDLE )
If you're cmd/terminal savvy, you can run the bot by running
Code:
client.py neouser neopass
where neouser and neopass are your neopets username and password. You can also add a proxy as a 3 argument in the IP:port format.
If you wish to change your useragent (only do this if you know what a useragent is), you will need to open ./classes/NeoAccount.py and edit it here. You also need to change this in client.py in the RemotingService bit. Make sure both are the same. I will move this to a config file in the next version.
If you haven't run habitarium before, the bot will buy buildings and reset your habitarium repeatedly until it has enough (items don't reset)
Checks for gems on the board every 2 minutes
Checks for unbuilt buildings, and looks for an idle soldier or worker to build it
Checks for unhealthy buildings, and looks for an idle soldier or worker to repair it
Checks for idle workers, and makes them gather the resource of which you have the least amount
Attempts to build your map with the items it obtained in the beginning
Checks for hungry and tired workers, and puts them in hospitals, or houses if hospitals aren't available yet
Checks for nesters and puts them in their nests (BITCH DID I SAY YOU COULD HAVE A BREAK?!)
Checks for eggs. Harvests, hatches and discards them according to the situation. Some eggs are stored in inventory to immediately remove and hatch, during population die-offs. Eliminates wait time.
If no item needs to be bought urgently (usually just the hospitals), it checks for available upgrades and whether or not it should dump nests.
If an item does need to be bought urgently, it attempts to buy that item, or waits until enough resources are gathered. No upgrades or nest dumping will occur during this wait.
Waits and repeats
FAQ
Q: Can I use this even if I haven't opened habitarium in the browser?
A: Yes! It will set up your habitarium for you.
Q: Can I use this on my ongoing habitarium?
A: Yes, just move your buildings off the initial 10x10 square, so neobots does not have a problem with placing buildings, leaving spaces beside them for workers to be able to repair them, and placing them correctly so that workers don't accidentally start gathering instead when placed to repair or build. Refer to the next question too.
Also, if you don't have at least 2 houses, 3 nests and 15 storages, neobots will attempt to buy these before buying upgrades or dumping nests. It will also try to buy 4 hospitals after level 15, if you don't already have them. So if you're under level 30, I suggest starting over to not have to waste time buying the buildings manually (except hospitals). You can start over by running the RESET.py file. Make sure to add your login info just like you did for client.py
Q: Can I use this if my habitarium's map is Blossom Meadow?
A: Yes, BUT you will have to open ./data/habimaps/1.txt and move your current buildings to the build spots listed in the files, OR you can move your current buildings outside of the initial 10x10 board. The latter is recommended. Consult the maps in the spoiler if the locations are hard to pinpoint from ingame.
Thank you! I couldn't get the other habi bot working for me for some reason.
Both have the same requirements, so both should work. There isn't much difference at that level.
Either way, please provide feedback after you use it for a while
Both have the same requirements, so both should work. There isn't much difference at that level.
Either way, please provide feedback after you use it for a while
Not the one on this site I was talking about a habi bot on another forum.
Wow, this is amazing.
I have one question, why I keep getting this message?:
• Trying to build X (storage, nest, whatever)
• Do not have the item needed in inventory; item will be bought
Everytime the same and the program never buy anything I have enough resources
(I started at level 28)
Can you post a sample of the log in a spoiler please? Edit out your username from it though.
I haven't actually tested this on a preexisting habitarium, but technically it should work.