Facebook MobWars Helper
Helps and improves the playing experience of the Facebook application MobWars with automatic functions and useful investment tips. (version 1.0: fix for the new Facebook layout)
Description
The main purpose of this script is to automate the playing experience of the Facebook game Mob Wars.
How does it work
When you first install this script and go to the Mob Wars application, the script will automatically gather some data and begin to do jobs automatically.
All automatic functions are enabled through the preferences menu.
Bank module
When enabled the script will put money into the bank every time your hourly income is paid or you perform a job.
Hospital module
You can specify your minimum health percentage. When you are weaker than that and you have enough money in the bank the script will heal you automatically. If you specify a value too high the script will always end up on the hospital page and try and fail to heal you. A good value is 50%.
Jobs module
You can choose what job to perform regularly or let the script choose the job that gives you the best payout/energy or experience/energy ratio. Select 'None' to disable.
If any prep work is needed to perform the job, it will be done automatically.
Helpful data displayed
City value is the amount you can obtain by selling your whole city. Thus it's less than the amount you paid for the buildings.Stock value is the amount you can obtain by selling all your weapons. Thus it's half the amount you paid for the weapons.
Attack strength is your attack value (sum of the attack values of your weapons + the attack strength of your boss) in the best attack configuration. The script will choose e.g. a Tommy Gun instead of a Shotgun.
Defense strength is your defense value (sum of the defense values of your weapons + the defense strength of your boss) in the best defense configuration. The script will choose e.g. a Shotgun instead of a Tommy Gun.
Max mob size: you can safely attack mobs smaller than this value, since even if they are equipped in the most powerful weapons the defense strength of the mob is less than your's attack strength. The defense strength of the enemy boss is not taken into account (so the defenders strength can be a little higher).
Best attack/defense upgrade: gives you the weapon you can buy (and the maximum useful amount) to receive the most attack/defense points for a dollar spent. For example if someone in your mob fights barehanded you should first purchase some Colts (and than you can buy more expensive stuff).
ROR: the rate of return means how much you get (per hour) for every dollar spent in the city. For example if the ROR is 2% and you invest 10,000$, you'll have 200$ every hour of income. When buying new buildings it's a good habit to select those with the highest ROR.
Turns left: on the City page the script computes how many turns (of 60 minutes, or 54 if you are 'Tycoon') are needed to buy the advised quantity (which is on the left of the Buy button) of buildings. It takes into account not only the city's income, but also the mean income of your current job.
Versions
Version 0.1-alpha: First release.Version 0.2: New banking module, preferences and improved script panel.
Version 0.2.1: Make it work on FF2.
Version 1.0-beta: datadisplay and hospital modules.
Version 1.0-beta2: quick fix for the new Facebook layout.
Version 1.0-beta2a: small changes.
Version 1.0-rc1: Captcha detection and other small changes.
Version 1.0: Fix for the new Facebook layout.
Automatic updates
Once a day the script checks userscripts.org for updated versions of the script and shows a dialog if one is available.
Related scripts
- Hitlist script by Leetuser: a script that continually reloads the hitlist and attacks the first user in the list. As I've already said, I refuse to add hitlist capabilities to my script.
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 about the script look at Facebook Mobwars Helper blog
You could comment on this script if you were logged in.
145 comments
You could comment on this script if you were logged in.


login to vote
Could it be set to reload the page more often? Auto-heal is great, but if it's waiting 59 minutes for my next pay period, and someone starts beating the crap out of me in the meantime, it would be nice if it would keep a more recent eye on your health. Like check every 5 minutes, or some configurable time, or even a random time/page.
login to vote
Could this be done to beat the three letter bot test? Write something that will;
1. Copy the link - http://apps.new.facebook.com/mobwars/hitlist/
2. When the "are you human" question comes up, Close tab
3. Open new tab, pasting in the link - http://apps.new.facebook.com/mobwars/hitlist/
4. Script continues to run, getting past the check
I've tried doing just that, manually and it seems to work. I'm sure it can't be that simple though, what am i missing?
^^ike
login to vote
Try to reset your script. While on mobwars right click the monkey and under user script commands click reset script database. May want to check the error console as well ctrl+shift+j in firefox to see if it is giving you an error as to why it can't complete the job. Also might want to visit all of the pages on mobwars to make sure the script has all the info on your stockpile and whatnot.
login to vote
blackacid
I have installed your script but it keeps reseting stating "Cannot preform the prepatory job `Locate safehouse` for `Drug Smuggling by Air`". Has anyone else seen this or reported the problem?
login to vote
NP everyone.... for those of you who don't know how to edit the script I just uploaded the corrected script....
http://jlprichard.googlepages.com/facebook_mobw...
It has been working fine for me all day.
Facebook finally removed new in the url all together now. They were going back and forth a few times today but finally dropped it this eve.
login to vote
Updated once again until this script's writer is able to update it. Can be found here.
login to vote
thanx 4 the update punx~.. looks like its working somewhat ..still not showing the the def/att numbers an mob size u can fight ..
login to vote
thanks for the update
login to vote
Thanks a lot blackacid, this fixed the issue that I was having. :-)
login to vote
Made a quick unofficial fix until the developer of the official can fix it. It can be found here.
login to vote
i dont know any technical aspects of scripts.. my mobwars helper was working great.. came home an it will not appear any more .. i have deleted it also greasemonkey an firefox an reloaded them but still dosent work .. can some helpme out .. i jus got used to having it now i feel lost without it .. thanx ..
login to vote
ahh thnx BlackAcid for the inside i was going crazy lol that fixed it now its working like a charm again
login to vote
It looks as if facebook is dropping the .new from their addy at the moment. I was able to get mine back up and running by editing this line in the script...
Orig:
if (url.indexOf('apps.new.facebook.com') != -1) Page.fnew = true;
Changed:
if (url.indexOf('apps.facebook.com') != -1) Page.fnew = true;
Edit:
I guess facebook is half using new again. Instead of changing the above line you can come down to the next line below it and change it...
Orig:
else Page.fnew = false;
Changed:
else Page.fnew = true;
This will make the script work with and without new in the url.
login to vote
Hello and thanks for a useful script.
But today the script does not appear on the page and so does not work.
Is there anything changed?
login to vote
block the top ad!:
var ad=document.evaluate("//div[@class='wrapOuter wrap1outer']",document,null,9,null).singleNodeValue; ad.parentNode.removeChild(ad)login to vote
Any chance of a fighting Module where one can specify Max Mob Size and an automated routine will take one to the fight page and attack anyone equal to or under the Mob Size Indicated?
login to vote
Yesterday I also started the repeating "checking new jobs available" routine. But since new jobs have not become available in 100 or so levels, I just commented out that part of the script.
login to vote
i cant install the script
line: 24
sign: 1012
code: 800A138F
Source: runtime error in microsoft jscript
can somebody help me please?
login to vote
On the city page, could you put turns on the next line, and add more digits to ROR? Maybe go to like 16 digits? I am currently having trouble picking between 0.021 (002144) and 0.021 (0.02143). Also highlight the best ROR in a different color?
Thanks
login to vote
In the preferences for best experience/energy, I think it's doing the wrong jobs... instead of going for drug dealing (15 for 10), it goes for train robbery (45 for 30). They're both 1.5, only problem is to do train robbery you need a safe house and a train schedule (10 for 25), which brings the total at 55 experience for 55 energy for a single train robbery... not even close to the 1.5 ratio of drug dealing...
login to vote
Wonkey Donkey: The Error Console is shared between all Firefox components that use JavaScript or CSS. The warnings you see come from the Facebook (and Mob Wars) pages.
Spot: The captcha is there since a moment already.
Dennis Ashley: I'll write scripts for Might of Many and other MobWars-like application depending on the time I have to work on it. As of today I have none (took me two weeks to check the comments here).
Computer Killer: 3. I didn't take into account that prices are increasing after 500. I'll take into consideration also the other suggestions.
Killer122345: The script stops when a captcha appears.
t money: Yes your browser must be running. The redirection is not normal, I'll check it.
Siky: Are you really missing upgrade points? I'll check this and add something to the script.
Turb0: The attack and defence points are displayed on the Fight/Stockpile page, the rest on the City page.
Alala: If it's the same application only translated it can be easily adapted.
login to vote
does this script work with the german mobwars callled "bandenkrieg"?
would be nice if you check this
http://apps.new.facebook.com/bandenkrieg
greetings
login to vote
Ok, ignore me. Very well written script!! I found on the stockpile thats where it tells me my data and on the city page for the ROR (Very good idea btw)!
Also noted that the jobs refresh slows down once it knows what type of job you want to do, how much energy you have etc.
Thanks again!
Jim
Hi all, very useful script. I like it, but it seems to be missing all these details about my profile:
Helpful data displayed
Stock value
Attack strength
Defense strength
Max mob size:
Best attack/defense upgrade:
ROR:
Turns left:
These words do not appear in the little box at the bottom right.
Here is the display of what i do get:
Cash $0
Bank account $195,727,278
City value $1,203,075,750
Stock value $0
Total $1,398,803,028
City income $9,604,700
Job mean payout $225,000
Upkeep $0
Total $0
Status:
Waiting for next payroll...
in 31 m 54 s
Script Preferences
Also my "stock value" shows 0 and my upkeep shows 0 (I'm assuming this is because it can't get the stock value).
And where is the line that i can change the value for the jobs page refresh? I need 30 energy to complete the task and it keeps checking every 5 seconds. This is great when i'm not playing the game, but a bit annoying when i'm doing a couple fights. Which i guess i should also ask, where is the value to check the heath page refresh too?
Thanks!!!
Jim
login to vote
Here is the fix for the error when doing jobs. I tried it, I no longer get the error. I am now back to more profitable jobs.
I got it from here:
http://www.mobwarsforum.com/viewtopic.php?f=6&t...
Simply set Mob Wars to stop posting stuff on your Facebook news feed. Here's how:
1. On the bottom left corner of your screen, click on the button marked "Applications"
2. On the tab that pops up, look for the link on the upper part marked "Edit" and click on it.
3. You will be taken to a list of all your apps. Look for Mob Wars and click "Edit".
4. On the window that pops up, select the tab labeled "Wall"
5. Select the radio button with "Never publish any stories from Mob Wars."
And you're done. If you're blocking ads, make sure java is enabled and that you're not blocking the hosts file before you try this.
login to vote
how about a few lines that detects when you leveled up and uses those 3 points for you?
Ive missed out on so many points due to this script running overnight and me not realizing you miss out on them if you don't spend em...