Facebook Packrat Autoclicker
Collects free items/credit and helps buying cards. (Version 1.1.1: fix for Facebook URL changes)
Description
The main purpose of this script is to automate the most boring actions in the Facebook game PackRat.
The updates to the script's database of cards and recipes are done manually every working day (unless I am not available). I am working on automating this task
How does it work
When you first install the script it will automatically gather some data about your vault and the available collections. After that you can just press the Preferences button (lower left or right corner depending if you use the new or old Facebook layout). The script has many module that provide different functionalities.
Credits module
This module collects credits for you. It has to options: one to turn it on and off and one to specify how much credit you need.
You can stop the gathering cycle at any time by pressing the SPACE key.
Pop-ups module
This module allows you to specify what action to perform when pop-ups appear:
- Pause browsing cycle: if the script is browsing through user pages it will pause to let you decide what to do with the pop-up.
- Ignore all: the script behaves just as if no pop-up ever occurred.
- Pickup from current shopping list: if the card belongs to the current shopping list (cf. Collections module) it will be picked up, otherwise ignored.
- Pickup all: the script will pick up every pop-up card.
Grinding module
This module introduces the 'grinding' feature: you automatically steal cards from friends and drop the same card instead. Thus your pack does not change, but you earn score points that can help you level up.
To activate the feature check the appropriate radio box in the preferences. The script will start browsing the friends' packs and will stop when the specified level is reached. You can at choice grind with everyone or only the rats.
Attention: if you buy cards from the markets you have to visit your pack's page to make them available for grinding.
Steal module
This module allows you to automatically steal (from the Rats only) every card from your shopping list. You can also automatically exchange your droppable cards (cf. Collections module) with other cards of higher point value.
The "Steal locks to free space in the pack" lets you steal locks without adding them to the shopping list (this has the advantage that the stalk module won't buy locks, when you just want them to free some space in the pack).
Attention: if you buy cards from the markets you have to visit your pack's page to make them available for stealing.
Highlight module
This module allows you to perform mainly two actions: highlight the missing cards from current shopping list (cf. Collections module) and hide the cards from completed collections. In order to work you must activate it in the preferences panel.
Stalking module
This module browses through the market pages and buys the cards from your current shopping list (cf. Collections module). You have to enable this feature in the preferences panel.
Collections module
This module allows you to select the collections you are interested in and has four different shopping lists:
- All cards from selected collections.
- An automatically generated list of cards you need (as ingredients or themselves) to complete the collection.
- A completely configurable shopping list, where it's up to you to select how much of what you want.
- Empty: this list doesn't contain anything, just the unknown cards if you checked one of the unknown card option explained below.
There are also to other options that come really useful if I can not update the cards database for a while: "Add unknown collections to current shopping list" and "Add unknown card from selected collections to current shopping list". The first will hunt for all cards from collections that does not appear in the collection list. The latter will hunt for new releases in the already known collections.
In addition this module allows you to select the cards that will be used by the Steal module (the grinding module swaps all the cards in your pack): the "droppable" cards.
Browse module
This module allows you to enter a never ending loop where the script goes from a friend's pack to another. May be useful if you are looking for a certain card in other people's packs.
You can restrict the browsing to the packs of the Rats only by checking the apposite option.
You can stop the browsing cycle at any time by pressing the SPACE key
Collections and recipes database
The collections database is downloaded daily from my server. However if you wish to force an immediate download you can go to Tools > GreaseMonkey > Script Commands > "Update collections database".
Pause
To pause the user browsing press PAUSE or the Pause button.
When the script has been paused you must click on the button in the script's menu to resume the cycle.
Timer
You can select the default timer delay for actions in the preferences menu.
Limits
There are some limits to ease the strain on the PackRat servers this script is doing:
- After 10 pop-ups seen or 2000 credits collected, the script will pause.
- After 2 hours without user interaction (without visiting your pack) the script will slow down.
- Market stalking delay must be at least 20 seconds.
- The standard script delay must be at least 3 seconds.
Versions
Versions 0.1 to 0.10.5: Check the blog if you are interested in the script's progress.Version 1.0-beta: Added stalking and fixed many previous issues. See the script's homepage for more informations.
Version 1.0-beta2: Solves problem with selecting multiple collections.
Version 1.0-rc1: Adds a stealing module.
Version 1.0-rc1.3: Updates the stealing module to follow the changes made by the Pack Rat developers.
Version 1.0-rc2: Added options to look for cards missing from our database.
Version 1.0: First stable release.
Version 1.0.1: Removed an error-relaying pop-up.
Version 1.1: Put some limits to help the PackRat servers.
Version 1.1.1: Fix for Facebook URL changes.
Automatic updates
The script checks daily for new updates and asks the user if he wishes to install the updated version.
Related scripts
- PackRat Tracker by Constantinos Neophytou: keeps track of the missing cards and displays them.
Licensing
This script is released under GNU General Public Licence and is distributed free of charge. However if you appreciate it and want to contribute to further script development, you are welcome to make a donation with the button below:
For more informations look at the Facebook Packrat Autoclicker blog
You could comment on this script if you were logged in.
281 comments
You could comment on this script if you were logged in.


login to vote
kaz lives in texas, piotr lives in france :)
The point of the script is to act human, to emulate the most boring parts of th game, so you dont lose your friggin mind. its not ment to allow you to have a better chance than the other "manual" players.
you also have to remember, piotr's limitations added to the script where HIS attempt to make the PR devs happy, the PR devs have NEVER approved of this script. So if it acts human, and doesnt run for 24hrs, you are better off.
login to vote
@dianthusintl, @Barbra, and others: Please don't forget that kaz is not Piotr Karwasz (unless there's something you're not telling us, kaz?). Kaz is a commenter who knows Javascript, responds fast, and tries to help people out with their questions. When Piotr responds, his comments show up in a different color.
Piotr warned previously that he would be severely delayed in posting responses to comments. I think he's the only person who can really answer your questions about whether he received any payment for changing the script to meet the PR developers' needs. However, I seem to remember that the PR developers had "busted" him and cut off his access to the rats based on the script overloading the servers. We can only assume that this would have happened to the rest of us too - so if you look at it from that way, Piotr HAD to change the script to allow us all to keep using it in any form at all.
I agree with you, Barbra - the new script limitations make it much less usable for me - but I'd rather have *some* access to the script than no script at all, or than face a ban on the game from the PR developers. If you don't like the script in its current version, you can always ask someone who knows Javascript to help you get around the limitations. That's the beauty of "open source".
login to vote
@Barbra,
you said:
"...was there a payment for the changes to be made by the developers - cause you have ppl asking for things here and don't get it but they ask and they get it..."
OF COURSE kaz updates the script according to requests of the packrat devs b/c this has to work with the game code itself, the servers, and also jive with facebook guidelines! inferring on oct 10 that some sort of "preferential treatment" of pr dev change requests over user requests by suggesting that there's compensation involved is tantamount to calling kaz a liar b/c kaz stated categorically on oct 8 that "no one gets paid for maintaining this script".
third-party scripting to modify the function of software can be rather complex, and oft times features that are requested by users may not be viable in terms of the work involved to code and refine them, let alone the fact that the software might not even be able to adequately support a particular add-on function. everything has it limits!
give 'em the respect they deserve!
login to vote
@ kaz,
I understand you don't get paid as such, but having the slow ( less than a person doing it themselves) makes it not worth using. I can click faster than this script - don't get me wrong - i and the friends i have introduced to this script love the concept and the script was fine until the 10 pop ups and slow market stalking was introduced...
I dont doubt you are a nice guy :) Im not that advanced to making/changing user scripts so i am at your mercy. Maybe i need to learn. I was simply stating you had a fantastic if not ultimate script but with the changes its gone backwards not forward! I havent used the script since i posted that and have got more cards /credits by me clicking faster than 3 secs! my friends are the same.. I will give it another go - will reinstall it ( yes i did unistall as no point if not using it)..
I was simply trying to give feedback. I still ask the question which i know was asked in these pages - was there a payment for the changes to be made by the developers - cause you have ppl asking for things here and don't get it but they ask and they get it... ;) still makes me wonder.......
login to vote
its fixed. 1.1.1 should be working w/out any edits. (aside from your personal config of it)
login to vote
@kaz: Is the corrupt data file on Piotr's server you mentioned below still a problem since the recent release of v1.1.1, or does it seem to be fixed now?
login to vote
@barbra: with user growth and outside lives, things have to change. Server limits had to be imposed, at the request of packrat developers. The automation of the data file had to be done, as piotr couldnt set aside time to manually update it daily. Be patient while some bugs get worked out.
When I find a bug, I try to post a fix until Piotr can get the official fix in place. I do this to be a [relatively] nice guy, helping another addict in need. While editing scripts is not user friendly, it comes along with being an "advanced" firefox user who knows what greasemonkey is. So you can either try and apply fixes, or disable the script until its fixed.
No one gets paid for maintaining this script, its a shame you have to treat it as a commercially supported product.
login to vote
im afraid - this script has been ruined and now is totally not user friendly and usuable.. such a shame!
login to vote
piotr's data file is working... please use his.
{[(the data file on piotr's site is corrupt. we'll have to wait for him to fix it. if you are daring, you can use my copy.
alternate data instrictions and file removed)]}
This is only temp until piotr fixes the real data file, and a script update will overrride these changes.
ps- i need some busy bee's, please :) (or hive and honeycombs)
login to vote
for some reason, safari kingdom and tiki island only have 4 or 5 cards in the listed collection when i am making my own shopping list. this is now causing me to pick up "unknown" cards, such as the grass skirt!
login to vote
marcela, i get the same thing for some reason. i've found that if i just install it instead of trying to save it, that it will work. If you already have the little monkey icon on the bottom right corner, make sure it is turned on before you start. i've also had success with saving it to my desktop, (when the icon is off) then opening it with firefox and then going up to Tools, then Greasemonkey, and clicking on "install user script."
login to vote
Hi, newbie here.
I tried to install the script but when I try to open the .js file the 'windows script host' comes up with a message saying:
scirpt: c:/documents and settings.......
line: 322
char: 69
error: expected identifier
code: 800A03F2
source: Microsoft JScript compitation error
any help???
login to vote
Expect a HUGE delay in the answers to your comments: I have 4 pages of comments to read and not much time to answer. If you need an answer urgently please post a comment on my blog and read the other comments to make sure your problem wasn't already reported.
I will definitely build a separate site for my Facebook scripts featuring also a forum so that you can help each other when I am not available.
login to vote
how come with the new script does it stop after 10 popups? isn't the purpose of having a script to be able to be away for a bit? I love the script otherwise
login to vote
kaz that help me a lot mine is up and running fine. thank you so much for all the help !!!! :-)
login to vote
@sugar_wings: download editpad, it adds line numbers, look at line 44, as mentioned below.
login to vote
i tried my self to edit it in my notepad and i can't even find the line that says (url.indexOf('apps.new.facebook.com') != -1) Page.fnew = true;..... can some one help me with this ?
login to vote
@kaz: i posted my mail bellow, here again (pedro7x_hotmail.com), :-)
login to vote
theres 12 "Pedro Marinho" on facebook, which one? :)
login to vote
@kaz: sure, send me a mail then i send this to you, Pedro
login to vote
I do not have a little monkey at the bottom of my screen...the little guy disappeared quite some time ago....anyone can help me find my lost monkey it would be greatly appreciated lol (my script still works i just miss him :)
login to vote
can anyone help a newbie.. i read through and still cant work it out... :-( i keep getting
Error in module 'page' on line 52: div has no properties
how do u find a line?? as previously mention in this chat
no idea how to fix... help for dummy
login to vote
OK - I got it - for anyone else having the same problem following Kaz's instructions: (copied here so you don't have to look for it)
find the line that looks like this (around line 44):
if (url.indexOf('apps.new.facebook.com') != -1) Page.fnew = true;
change it to look like this:
if (url.indexOf('apps.facebook.com') != -1) Page.fnew = true;
Allow the script to check your whole vault, then it will display "resting." From there it should work normally.
OK type about:config into your address bar - give yourself permission to edit - then in the filter type greasemonkey.
It will list all of them. Try right-clicking on greasemonkey.editor and then clicking on "reset". If that doesn't work (like it didn't for me) you'll have to do it manually.
Right click on greasemonkey.editor and then click on "modify". Type C:\Windows\System32\notepad.exe into the little box and click on OK. That will change your greasemonkey editor to notepad. (This is a pain in the rear because notepad bunches it all together, but it works.) Then try to modify the greasemonkey script. When it opens the notepad, COPY the line kaz typed under "find the line that looks like this". Go into your notepad, CTRL F for find, paste Kaz's line - it will highlight the script so you don't have to find it. THEN copy Kaz's line under "change it to look like this". Paste it into notepad - save. Try running the script again. Voila - it's finally fixed. GOOD GRIEF - a Firefox update that TOTALLY messed things up...
login to vote
whenever u need/want to change the script
right click on the little monkey face in the bottom left corner
click manage user scripts
click on Facebook Packrat Autoclicker and at the bottom click edit.
a screen will open with the whole script.
go to edit at the top of the page, click on "Find".
type whatever phrase u need to change in the search field, then click find next. make sure that down is checked off.
the phrase u are looking for will be highlighted, then u can change it to fix it however ur told
then, save the script, exit out, and reload ur pack, and it should be fixed
i use notepad, but u can use whatever works best for u
login to vote
The problem I'm having when I'm trying to edit this script:
Could not launch editor.
[Exception... "Component returned failure code: 0x80520003 (NS_ERROR_FILE_EXECUTION_FAILED) [nsIProcess.run]" nsresult: "0x80520003 (NS_ERROR_FILE_EXECUTION_FAILED)" location: "JS frame :: chrome://greasemonkey/content/utils.js :: launchApplicationWithDoc :: line 188" data: no]