Mob Wars Helper

[This version of the script is OBSOLETE. For more informations and new releases check the Mob Wars Helper category.]

For those who are eager to test our Mob Wars script, we decided to publish a preview of the current state of the script. What does it do? It does jobs automatically once it has gathered enough data.

To get started you have to visit the stockpile page and then go to the jobs. If no errors occur the script should begin doing the best job (for the minimum payout / energy ratio) in a loop and also the prep jobs that are needed.

Disclaimer: this is an alpha release, it means that I tested it only for a very short amount of time and the script could even not work at all.

There are many things that I ignore about the game, like the delays for energy, health and stamina, a complete list of jobs that are available at high levels, etc. If you have these informations, please send them to me either as a comment on this blog or to piotr DOT karwasz AT gmail DOT com.

Facebook Mob Wars Helper: version 0.1-alpha2

Also available on UserScripts.org.

[Update]: A new version (alpha2) was uploaded to enforce the check of Stockpile, so the script is easier to use.

This entry was posted in Mob Wars and tagged , , , , , , . Bookmark the permalink.

47 Responses to Mob Wars Helper

  1. jcbhntz says:

    How do you make it do a different job?

  2. jcbhntzThe job that is done is the one that gives the better ratio between the money earned and the energy spent.

    If you see that the script is doing Mugging over and over again, either you don’t have any items or you didn’t ever visit the stockpile (the script must learn about the items you have somewhere).

  3. Anonymous says:

    Thank’s alot gonna check it now
    where is way to write what job i wanna do every hour automatically?

  4. Anonymous: At the moment there is no way to manually select the job done. The program calculates the ratio (minimum payout/energy) and chooses the best one. Why would you like to perform another job?

    Some jobs are rejected if you don’t have enough items to perform them, you can see the reason of the rejection in Tools > Error Console > Messages. E.g. I have:


    http://userscripts.org/users/49912/Facebook MobWars Helper: Not enough items for Bank Robbery
    http://userscripts.org/users/49912/Facebook MobWars Helper: Not enough items for House Burglary

  5. jcbhntz says:

    k. Is it an easy alteration to make it do the ratio experience gained over energy used? For me at least it is working fine. An addition that is probably in the works, but to automatically put the money gained in the bank to protect it from attackers.

  6. jcbhntz: The hard part of the work was to scan the job and stockpile list. The user interface will be easily upgraded in the next updates to the script.

    I was thinking about adding a preferences menu that allow the user to choose between “Best payout/energy ratio”, “Best experience/energy ratio” and single jobs.

    I can also add an option to automatically bank the income from the city and jobs. It’s not very hard, but I’ll do it in a couple of days, since I have a lot of real work to do.

  7. Pixmo says:

    Very nice script, cool that you released it :)

  8. Grim says:

    In addition to doing jobs, applying the same logic (best ROI) to the city would be cool. Also having the script auto fight/heal. Then I’d never have to play :D

  9. jcbhntz says:

    Thanks a lot.

  10. Infra says:

    Yea i am interested in auto bank deposit every hour, can this be done?

  11. george hafiz says:

    This is an awesome little script, and although I’m a complete noob with JS, I’m trying to learn it now just so I can make some alterations. I would just like to know though, is liquor store robbing really the best energy payout ratio on there until liquor smuggling? Maybe the script could choose the best job by energy/pay/experience altogether? A job override would definitely be a good idea for the interim. thanks for releasing this awesome script.

  12. george hafiz: Liquor store robbery gives at least 400$/energy as well as Drug Dealing. In the next update to the script I’ll add a preferences menu to let you choose the job you prefer.

  13. I eventually got to level 30, so I know all the jobs available, but unfortunately I forgot which job appears at which level. Could you check this list:

    Level 1: Mugging, House Burglary, Stoplight Car Theft
    Level 5: Liquor Store Robbery, Drug Dealing
    Level 10: Jewelry Store Robbery
    Level 15: Liquor Smuggling, Bank Robbery
    Level 20: Drug Smuggling by Sea
    Level 30: Great Train Robbery

    Also if you could make the same list for the city and stockpile, I’ll appreciate. For now the script scans the job list every time you go to the page jobs and finds new jobs, but it would be better from a performance point of view to store this list statically in the script.

    [Update]: I changed this comment with the information from the following comments.

  14. jcbhntz says:

    All I know is level 35 gives you the “Turret-Armed Humvee,” but that isn’t used for any jobs.

  15. Jamie says:

    How do you even open the file? mine keeps opening with the editing software Dreamweaver…

  16. Jamie: You’ll find an answer in the FAQ. You have to install the GreaseMonkey Firefox extension.

  17. I just finished adding some features to the script: it can now deposit all your money into the bank automatically right after you’ve got some income (job or city). It should also work with all the jobs (the previous version had problems with Drug Smuggling by Sea). I’ll publish the new version as soon as I add a way to deal with preferences.

  18. Pixmo says:

    Drug Smuggling by Sea – level 20

  19. Grim says:

    Script is trying to do bank robbery which requires 25 energy, but I have a max of 21… o.O

  20. jcbhntz says:

    wonderful update. Will let run tonight.

  21. Pingback: Textual Reflexions » Mob Wars Helper (version 0.2)

  22. George says:

    I’ve run the script over night and something does not seem to add up. By the looks of the money I have it stops running after about 7 hours, and I my energy is full. It runs on my server on which VNC only runs once for security reasons, so I can’t see the status after I’ve set it up, but when it ran over night on my laptop, by morning it was saying ‘Resting…’. I’ve trawled through the script and can’t seem to find why it does this, any ideas?

  23. George says:

    The CSS property of the status box needs to be changed in the next release. The box does not stay in front of text adverts when in a low resolution. This is the changes I made that has fixed it nicely. Feel free to hotlink to my image:

    menuCode.push(“#ScriptStatus { position:fixed; bottom:30px; left:5px; border:2px solid #6D84B4; color:#3B5998; padding:2px; font-weight:bold; width: 200px; height: 100px;}”);

  24. George says:

    OK, everything I labelled I changed was not posted in that probably because I put it in pointy brackets. Here is what I added to that CSS:

    z-index: 5; //keeps the box on top
    background-image:url(‘http://www.rawrs.info/white.jpg’); //solid image background means when on top nothing below shows through anyway

  25. George: If it says ‘Resting…’ it usually means that it crashed (look into Tools > Error Console). I’ll add your CSS update to the next release (even if I’d rather put a solid white background instead of downloading an image from someone’s site: he won’t be happy when his bandwidth bill comes :-) ).

    If you are running version 0.1-alpha2 (I suppose it’s so, since you answer to this post and not the one concerning the new version) you should try version 0.2. I has many new features and allows you to do Drug Smuggling by Sea (which requires a city building that version 0.1-alpha2 did not know about).

  26. jcbhntz says:

    “Also if you could make the same list for the city and stockpile, I’ll appreciate. For now the script scans the job list every time you go to the page jobs and finds new jobs, but it would be better from a performance point of view to store this list statically in the script.

    [Update]: I changed this comment with the information from the following comment”

    Do you still need this list?

  27. Anonymous says:

    Ive installed greasemonkey and installed the script, but somehow it doesnt do anything other than asking me if i wanted to update the script.

    Am i doing something not right?

  28. jcbhntz: The script scans the city, stockpile and jobs every week or new level (whichever comes first), but having a static list would be nice too.

    Anonymous: I recommend to update the script (when you answer yes to the popup it opens a new tab when you can find the new version of the script). Otherwise if it does not display a statistics panel in the right lower corner, please look at Tools > Console Errors and copy the errors you find there.

  29. sands says:

    I installed the GreaseMonkey app on FireFox, then successfully installed the Mob Wars Helper script which I got from this page. When I went to the Mob Wars site, I click on the Stockpile page, then the Jobs page… as said in the directions. Nothing happens.

    What am I doing wrong? Do I have to set anything to make the script work? I hope you can help me with this, Piotr. Thanks.

  30. sands: If you are using version 0.1-alpha2 you should upgrade to version version 0.2, otherwise you should have at least the a status panel in the lower right corner of the page. If it’s not there, look into Tools > Error Console and see if there are any errors.

  31. Anonymous says:

    Can you please add auto attack at hitlist?

  32. Shon says:

    Can you add please auto attack at hitlist?

  33. Anonymous says:

    My mistake was still using firefox 2. U need firefox 3 for this to work well

  34. Anonymous: Sorry there was a bug in a function that only Firefox 2 executed… now it’s fixed in 0.2.1.

  35. TT says:

    This is a related helper idea, but not the same thing… I would try this myself except I don’t have the web skills!

    Te real ball and chain once you get to a certain point isn’t the amount of energy/jobs, but the declining return on investments. E.g. each time you buy a building, the next one costs more, and so your rate of return quickly plummits from around 2% (per hour) which is superb, to around 0.5% or less later on. That’s a huge difference.

    There is a way around this that I discovered after playing awhile. If you buy 5 or 10 of a building at once, instead of one at a time, you pay a flat rate for all. So, say you’re buying villas at 10k a piece. First is 10k, next is 11k, next is 12k, etc. To buy five, you will spend $60k. If you buy them all at once, though, you get all five for $10k each, or $50k total.

    This can help a little bit in the middle part of the game, but soon buying 10 of the cheap buildings is still too low a rate of return, and you don’t have the money to buy, say, 10 casinos at once.

    My idea is, can the scripts on the page be altered to send a command to buy more than 10 at a time? E.g. could you alter the purchase request sent to the server to say “Buy 1000″? With just a few million in cash, you could then sell any villas you already have, causing the price per villas to drop to the lowest possible. Then buy as many as you possibly can in one transaction, thus locking in that low price. I forget the numbers but for the very first villa or resturant you buy, I think you’re able to get returns between 2 and 3% per tick, which is five or six times higher than the returns available in mid game.

  36. sands says:

    Yeah, I also made the mistake of using the app with FF2 before. Now, an update was made to accommodate FF2. Great job, Piotr! :)

  37. TT: You can not buy more than 10 buildings at any time (when you give the command “Buy 20″ the server answers with an error). Otherwise it would be possible to raise rapidly any amount wished: e.g. you buy 20 empty lots for 100k$ and you sell them immediately for 150k$, you buy 30 empty lots and you sell them for 300k$, you buy 60 empty lots and you sell them for 1.05M$, etc.

    What is possible is to buy any amount of buildings from 1 to 10 (not only 1, 5 and 10). For the stockpile there is no limitation (since prices don’t go up).

    I am releasing a new version that will add plenty of information to the City, Stockpile and Fight page to help you investing.

  38. renegade says:

    Just a thought. can you make an option to punch yourself in the face so you dont get hit when dont want to fight. (like when you go to sleep) =)
    Otherwise great script

  39. renegade says:

    FROM MY POST ABOVE:
    what I meant is to perpetually keep yourself in the hospital so you cant fight and others cant fight you.

    ========
    Just a thought. can you make an option to punch yourself in the face so you dont get hit when dont want to fight. (like when you go to sleep) =)
    Otherwise great script
    ========

  40. eddie says:

    has anyone posted script for hitlist attack and auto hospital healing?

  41. Max says:

    How do I install the script?

  42. renegade: Great idea, I’ll add it to the next release.

    eddie: This script does healing (look for newer versions of the script on this blog). Hitlisting would get your account frozen, already tried.

    Max: Look at the FAQ.

  43. Max says:

    How come the script is’nt working for me? I just installed everything the proper way, then I went to Mob Wars and clicked on Stockpile, then to Jobs. Then I just left the computer at the jobs screen for an hour or two and it has done nothing… Why?

  44. vinny greenwell says:

    for the Turret Armed Humvee, if i have 40 people in my mob, and i have 41 Grenade Launchers, can i then buy 41 Humvee’s and 41 Mini Guns and still use my 41 Grenade Launchers?

  45. Max: This version is outdated. Please look at newer posts in the Mob Wars category.

    vinny: Wrong site, you are probably looking for the Mob Wars forum. As far as I know the game uses your most expensive weapon from each category (weapons, vehicles and armors), so you’ll use 42 Grenade Launchers and 41 Humvee’s, the Mini Guns won’t ever be used.

  46. anon says:

    very nice script, i just wish there was an auto attack!

  47. Arg says:

    I have try to install greasemonkey, but it after installation it says “failure to load a non local URI” what doest this mean?

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>