[This version of the script is OBSOLETE. For more informations and new releases check the Mob Wars Helper category.]
After the “Proof of concept” release last week, version 0.2 of the application enhancer script for the game Mob Wars was published earlier this morning.
Among others is features:
- A new statistics panel with all your income data in one place.
- A preferences module that allows you to set the options of all other modules.
- A way to choose which job to perform.
- A bank module that deposits your cash into the bank every time a job is done or your hourly income arrives.
Facebook Mob Wars Helper: version 0.2.1
Also available on UserScripts.org.
[Update: there was a little but very nasty bug in a function that only FF2 executed that rendered the script totally unusable... Version 0.2.1 replace version 0.2.
What was the bug? In the function Utils.getElementsByClassName I forgot the return statement
]
The new update, has some bugs:
1. i collected 38 Mio in the last night, which not deposit on the bank, and he mention that i have only 38 thousands on cash.
2. i had in the panel 270 mio city and now i bought 400 mio casino. now i have only 470 mio worth in city!
3. he is waiting on payroll but he goes to jobs and there he tries the train robbery but its not working because he forgets the two requirements!
but the new features are very cool! IF you could do a help for hitlist it would even be more cool!
propag: 1. I forgot to delete all commas when converting a comma separated number. Didn’t notice since I bank everything a rarely have more than a million in the bank
. Anyway it is corrected, just reinstall the script (or wait until it asks you to update it). I didn’t call it a new version, since it’s a one character fix.
2. That’s about correct (it should be 270 + 220 – 1.1 = 491.1 mio). ‘City value’ does not show how much did you spend on your city, but how much you have if you sell everything: that’s between 50% and 100% of what you spent.
Same thing for ‘Stock value’, it shows you how much you can get if you sell everything.
3. Probably you are one of the 2 or 3 users that downloaded the script between the moment I uploaded it and was aware of the bug (i.e. I bought 5 S.W.A.T. Bearcats and stumbled on the bug myself). It’s a two character fix already uploaded. Concerning the order of the actions, it’s almost random: if you have many actions that can be done at a certain moment the first in the database wins. This should not be a problem, I hope.
[Rant: I cannot understand while JavaScript evaluates 1 > undefined to false...]
Hitlist is another issue: since it’s very hard for users to find a ‘hit’ I don’t want to give those who use this script an unfair advantage over the others.
However I think of implementing fighting and healing in the next version (probably with an ‘Optimize experience’/'Optimize payout’ option for fighting). I am only concerned about the consequences of munging money from rich people: you can easily get hitlisted and die.
I did download and installed as you described, but the script aint doing nothing….
Is there annything more to do in facebook orshould i only “go on” as usual and let the script do the job?
I have gresemonkey installed, script is installed everything is ready…i open mob wars in facebook…but nothing happens…why isnt the script doing things?
Nice script, im testing it and does the job. But i got jailed and the script tries to do the next job an he cant xD (sorry for my bad english) by the way keep the good work on the script.
And people if you use this script and enjoy it please report bugs and stuff!!
Jamie and Temo: It probably found an unexpected format of the page and crashed. You can send me the errors you find in Tools > Console Error and the page where it didn’t work by mail to piotr DOT karwasz AT gmail DOT com.
JorgeIvan: I got jailed only once, so I don’t know how to check when you are in jail and how long it lasts. Can you send me the page where you can see that you are in jail at the address above?
From the Mob Wars Front Page.
“==UPDATES==
7/15/2008
Any accounts detecting using a certain “tool kit” bot will be immediately frozen. I am giving 24 hours notice before I do the mass freezing. You will only be frozen if you continue to use it. Although the update will be targeted at the tool kit bot, most other bots will be affected as well.
7/14/2008
Finally added a FREEZE ACCOUNT feature to my support system to deal with complaints of obvious bot accounts. There are a few bots on my list already and you will start to see them dealt with.”
Is this going to be bad??
Ok, the bugs are solved which i mentioned! GOOD WORK!
You understand?
I meant not Hitlist kills automatically. I meant probably an refresher who stops refresh when bounty is posted!
I dont have fear now that someone will steal my money during the night!
oh and probably block the advertisment and everything what makes refreshes slow on Hitlistpage!!
Hey thanks for reading my comment. That image is on my server, it’s on my home PC so it’s ‘Unlimited’
I tried a solid white background with CSS but it didn’t seem to work. I have updated to the latest version, same thing with the text coming through. Setting a higher Z-index and that white image worked sweet. This is an awesome script, I’m developing something now that will rewrite the values/options of the select lists for properties and weapons so that you can choose from 1-100 instead of 1, 5, 10. Got it working standalone but getting it to work under greasemonkey is another story
jcbhntz: I fully understand the indignation of the Mob Wars developer against Mob Wars Toolkit: he wrote a wonderful game and the other one tries to make money with it (the toolkit is not free). And automated bot account also disrupt the playing experience for all other users: imagine you are targeted by a bot every time you come out of the hospital. You’ll probably drop the game.
From a technical point of view my script does not differ from normal user interaction (i.e. it does exactly the same things a player would do) with the little difference that everything is perfectly on time. I can add some random delay for every action if you wish so, but my advise is: don’t abuse the script.
If you have almost no money, the banking feature comes very handy, but if you have plenty just disable it and allow some poorer users to take some money from you. Anyway the bank is not very efficient with high incomes (10% of charges, whereas you lose at most 100k$ for every attack).
Note: If the application developers wish to complain about my script, they are welcome to contact me.
propag: You can use the Adblock Plus extension to block the ads on every site or search Userscripts.org for the proper userscript. Reloading the hitlist seems fine to me if the delay is reasonable (I’ll probably make it configurable with a minimum of 10 seconds).
George: Yes, the new version was out before I read your comment
For linearizing the buying/selling options, something like this should work:
if (Page.c_page == 'city' || Page.c_page == 'stockpile') { var result = Utils.getElementsByXPath('//form[contains(@action,"do.php")]/select'); for (var i = 0; i < result.length; i++) { var input = document.createElement('input'); input.name = 'qty'; input.type = 'text'; input.setAttribute('maxlength', '3'); input.setAttribute('size', '3'); input.value = '1'; result[i].parentNode.insertBefore(input, result[i]); result[i].parentNode.removeChild(result[i]); } }should do the work. Be aware that you can not buy more than 10 buildings from the city (otherwise you could make money out of thin air
), I already tried. I am putting this code into a module that will display various data for each page (e.g. your attack/defense points);
Static list for City:
Level 1:
Land:
Empty Lot
City Block
Downtown Square
Establishment:
Villa
Restaurant
Apartment
Hotel
Office
Casino
Level 15:
Land:
Beachfront Lot
Container Yard
Establishment:
Beachfront Lot
jcbhntz: Thanks. If you have played for a while can you tell me whether the prices change often or we can assume that they are static?
The price changes every time you make a purchase.
The following is an “investment calculator” that some one has created. You can play with it to know the amount it increases with each purchase. It is in Excel format.
http://www.savefile.com/files/1669396
jcbhntz: Sorry, I meant how often the base prices change? Do the developers update the prices regularly every week or so or they are stable?
[For me the base price is the following: real_price = base_price * (1 + 0.1 * owned_buildings)]
Hi guys, just a heads up. The facebook layout has changed. They made the new layout for all of facebook. On the apps server, they obviously set it up under another subdomain, apps.new.facebook.com. If all of a sudden your script isn’t working and you’re on the new layout, you need to revert to the old one with the button on the top right to get it working again.
Looks like v0.3 is just around the corner, eh?
I haven’t noticed a change in base price at all.
how do u work this script?