Textual Reflexions

10/7/2008

Mob Wars Helper

Filed under: Mob Wars — Piotr P. Karwasz @ 12:25 am

[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.

47 Comments »

  1. How do you make it do a different job?

    Comment by jcbhntz — 10/7/2008 @ 1:34 am

  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).

    Comment by Piotr P. Karwasz — 10/7/2008 @ 2:45 am

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

    Comment by Anonymous — 10/7/2008 @ 6:08 am

  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

    Comment by Piotr P. Karwasz — 10/7/2008 @ 11:22 am

  5. 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.

    Comment by jcbhntz — 10/7/2008 @ 2:25 pm

  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.

    Comment by Piotr P. Karwasz — 10/7/2008 @ 2:41 pm

  7. Very nice script, cool that you released it :)

    Comment by Pixmo — 10/7/2008 @ 3:19 pm

  8. 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

    Comment by Grim — 10/7/2008 @ 4:53 pm

  9. Thanks a lot.

    Comment by jcbhntz — 10/7/2008 @ 5:12 pm

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

    Comment by Infra — 11/7/2008 @ 6:56 am

  11. 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.

    Comment by george hafiz — 13/7/2008 @ 10:18 am

  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.

    Comment by Piotr P. Karwasz — 14/7/2008 @ 12:09 pm

  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.

    Comment by Piotr P. Karwasz — 14/7/2008 @ 12:18 pm

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

    Comment by jcbhntz — 14/7/2008 @ 7:51 pm

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

    Comment by Jamie — 14/7/2008 @ 10:37 pm

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

    Comment by Piotr P. Karwasz — 15/7/2008 @ 2:59 am

  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.

    Comment by Piotr P. Karwasz — 15/7/2008 @ 3:04 am

  18. Drug Smuggling by Sea - level 20

    Comment by Pixmo — 15/7/2008 @ 10:18 am

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

    Comment by Grim — 15/7/2008 @ 10:27 pm

  20. wonderful update. Will let run tonight.

    Comment by jcbhntz — 16/7/2008 @ 5:17 am

  21. [...] the “Proof of concept” release last week, version 0.2 of the application enhancer script for the game Mob Wars was [...]

    Pingback by Textual Reflexions » Mob Wars Helper (version 0.2) — 16/7/2008 @ 10:21 am

  22. 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?

    Comment by George — 16/7/2008 @ 12:29 pm

  23. 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;}”);

    Comment by George — 16/7/2008 @ 2:52 pm

  24. 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

    Comment by George — 16/7/2008 @ 2:54 pm

  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).

    Comment by Piotr P. Karwasz — 16/7/2008 @ 3:27 pm

  26. “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?

    Comment by jcbhntz — 16/7/2008 @ 6:58 pm

  27. 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?

    Comment by Anonymous — 17/7/2008 @ 5:32 am

  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.

    Comment by Piotr P. Karwasz — 17/7/2008 @ 12:37 pm

  29. 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.

    Comment by sands — 17/7/2008 @ 7:48 pm

  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.

    Comment by Piotr P. Karwasz — 17/7/2008 @ 9:48 pm

  31. Can you please add auto attack at hitlist?

    Comment by Anonymous — 18/7/2008 @ 11:03 am

  32. Can you add please auto attack at hitlist?

    Comment by Shon — 18/7/2008 @ 11:04 am

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

    Comment by Anonymous — 18/7/2008 @ 1:25 pm

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

    Comment by Piotr P. Karwasz — 18/7/2008 @ 1:49 pm

  35. 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.

    Comment by TT — 18/7/2008 @ 9:41 pm

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

    Comment by sands — 20/7/2008 @ 1:59 pm

  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.

    Comment by Piotr P. Karwasz — 23/7/2008 @ 6:37 pm

  38. 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

    Comment by renegade — 24/7/2008 @ 9:13 am

  39. 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
    ========

    Comment by renegade — 24/7/2008 @ 9:15 am

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

    Comment by eddie — 27/7/2008 @ 12:01 am

  41. How do I install the script?

    Comment by Max — 31/7/2008 @ 9:39 am

  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.

    Comment by Piotr P. Karwasz — 31/7/2008 @ 3:48 pm

  43. 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?

    Comment by Max — 31/7/2008 @ 8:20 pm

  44. 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?

    Comment by vinny greenwell — 1/8/2008 @ 2:57 am

  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.

    Comment by Piotr P. Karwasz — 1/8/2008 @ 1:37 pm

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

    Comment by anon — 9/12/2008 @ 7:37 pm

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

    Comment by Arg — 5/1/2009 @ 5:57 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress