Facebook Mafia Wars Autoplayer

The most impressive script made!

Project Owner: jstgtpaid

Project members: swertz, cedayiv, ericortego, WonderfulWeb, Agent.Smith411, andynwck, AK17710N, c...@gmx.net, , i...@gmx.com, janos...@gmail.com, blannie22



NOTES -

Version 0.9.5 is the latest release.

If you currently use the script, updating to latest version may reset everything back to its defaults.

Addresses Zynga Updates

TOC:



After installing, the script will be running as Paused. The only thing different will be what you see below.


Prior to clicking Resume, first click AutoPlay Settings. Most likely you don't want to use the default settings.



GENERAL


  • Enable auto-refresh / Refresh every __ to __ seconds
This refreshes the screen looking for items to complete at a random interval be between the two times you set.
>>> It is not recommended to set the first time below 30 seconds as it may become too difficult to get into the settings to change anything.

  • Enable auto-heal / Minimum health
This will take you to the hospital and completely heal your character once Health gets below what you set. It will also automatically withdraw money from the bank if needed.
>>> Setting this to below 29 could cause you to die in your next fight.

NOT SHOWN
  • Hide in Hospital
Enable this to prevent others from attacking you for a short period of time. The auto-heal will start up again once your health gets back to 20. You will know you are hiding in the hospital when the icon next to Health on the games front page shows a red cross with a bandage around it.
>>> The red cross (or red cross with the white flag if you are hiding) can be clicked on to heal you in one click.

>>> Using this setting in conjunction with setting your auto-heal setting to 29 is very efficient for getting into the hospital. Since the max damage is 27+damage bonus, at 29 you shouldn't ever be killed, but are likely to end up in the hospital. If you set your heal to 50 or higher, you will not likely get there. There can be an issue that you do not have the ability to heal when you get below 29 and over 20, then you could be killed. A request has been submitted to add a timer to delay fighting after a heal, to allow us to heal again. The recommendation was to just increase the delay between fights, but that unfortunately made it too slow and ended up wasting energy/stamina.


  • Enable auto-bank / Maximum amount
This will automatically make deposits for you once your cash goes above the amount you set.
>>> auto-bank shouldn't be set if you want to auto-buy, as auto-buy doesn't withdraw cash, but protects it from the 10% fee by saving it to property instead of the bank.

  • Enable auto-pause
This will pause the script Choose between Before or After you level up. If you choose Before, then also set the Experience left to pause at. The system will pause once your experience needed to level up gets to that amount or less.
>>>If you chose pause before leveling up, note that certain events can still happen that gain you experience points and push you into leveling up. Being Paused cannot prevent this.

  • Enable left align main frame
This will move the game play area to the left so that there is more room for the log on the right.

  • Enable hide ads
This will remove the Zynga ads that show above the game play area.

  • Enable logging
This displays a log of events along the right side of the screen. Included in the log at the bottom are some stats of your character. More details about the log later.
Use the Max # of messages in log to determine how much information you want to viewable in the log at one time.
Set Log Player Updates to on if you want everything that shows in the Player Updates window recorded in the log. Otherwise, the only items that show up in the log is anything that the script does that you wouldn't see in the Player Updates window.

  • Log Player Updates

Enable this if you want everything that shows in the Player Updates window recorded in the log. Otherwise, the only items that show up in the log is anything that the script does that you wouldn't see in the Player Updates window.

>>> In the developers version, the player updates can still be parsed but doesn't clear until about 20 items.


  • Enable auto-stat
This will automatically assign any skill points you earn to the skill you have chosen.



ENERGY


  • Enable auto-mission
When turning this on, also select the mission you want to work on. Auto mission will continuously do this mission until it is mastered. Once mastered, the next mission will automatically be selected and the process will repeat.
When you only want to do a specific mission all the time, enable Repeat Job.
When enable auto-mission is on, also set the Wheelman Energy Savings %. Not setting will result in the job mission firing off at the wrong time. Don't worry, energy will not be wasted. You will just see some remaining after a mission is run.

  • Wait until energy is full to run jobs
Enabling this will give you the opportunity to do some jobs on your own. Otherwise, it will run missions once energy is full thus preventing you from having an idol energy regeneration timer.

  • Enable auto-energy pack
Enable this to have the energy pack automatically used. At this time, this will only run when energy level is at either one or zero. This means that it could use the energy pack when you are only a few experience points away from leveling up.
>>> Work is being done to make this more intelligent so that energy is not being wasted. The options below are a some of that work.

NOT SHOWN
Estimate Job Ratio & Have helicopter job mastery loot item are used to help calculate when to use the auto-energy pack. You receive the helicopter once you complete all three tiers for Consigliere. The Helicopter reduces your energy regeneration timer by 30 seconds.

Estimate job ratio is used for the auto-energy pack and for calculating the advice. This number should be set to the expected overall job ratio that you will get when automatically doing jobs. Divide the xp of the primary job and all of it's prerequisite jobs and divide by the energy of all those jobs.

For example (yours numbers may vary):

Chose 'Buy Off a Federal Agent', with job repeat. - 31 energy, 58 experience

It requires Blackmail Photos, which is 'obtain compromising photos' - 24energy, 37 experience

Above requires concealable cameras, which can be gotten from 'rob an electronics store' - 21 energy, 29 experience

If loot return was 1/1, then just add the above experience and the above energy and divide them. But, it isn't that way, so it gets a little more complicated.

No one knows the loot drop ratio, but lets guess for sake of example.

Main [31,58] x 1 = [31,58] (not concerned about loot rate)
BPs 1/5 [24,37] x 5 = [120,185]
CCs 1/3 [21,29] x 3 = [63,87]

Add them up => [214,330], then divide them, and you get your estimated job ratio of 1.54


NOT SHOWN
Energy Pack Advice in Mafia Log: If you have an energy pack, it lets you know how many xp it should be worth and how many xp you need after you deplete your stamina and energy. Compare these numbers to make a decision if you want to use your energy pack manually (if you don't have it checked to automatically use or if you want to override its decision not to use it based on waste)



FIGHT / ROB



  • Enable auto-fight / Enable auto-rob
This option will Fight or Rob people automatically. You can only do one or the other.

If Fight / Rob random mafia is selected, candidates will be collected from the fight list that match the user defined settings for maximum level and maximum mafia.
>>> It is recommended to set the maximum mafia to a value lower than your current number of mafia members, however setting this value too low will narrow the number of candidates for fighting / robbing. 

Make maximum level relative – This option will make the maximum level of the candidates for fighting and robbing relative to your current level. If you set the maximum level field to 10, you will fight people a maximum of 10 levels above your current level. If maximum level relative is not enabled, then the number you entered into the field becomes the actual maximum level.

NOT SHOWN
Make maximum mafia relative – This option will make the maximum mafia size of the candidates for fighting and robbing relative to your current mafia size. If you set the maximum mafia field to 10, you will fight people a maximum of 10 mafia members above your current mafia size. If maximum mafia relative is not enabled, then the number you entered into the field becomes the actual maximum mafia size.
>>> FYI, this can currently be a problem when auto-rob is enabled and you have a larger mafia than level as you could attempt to rob mafia's larger than you can bring to the fight.
>>> You can also enter in a negative number into the maximum mafia field. This will mean that you are looking for mafias smaller than yours.

NOT SHOWN
Make minimum mafia relative – This option will make the minimum mafia size of the candidates for fighting and robbing relative to your current mafia size. If you set the minimum mafia field to 100, you will fight people a maximum of 100 mafia members below your current mafia size. If minimum mafia relative is not enabled, then the number you entered into the field becomes the actual minimum mafia size.

Use fight stealth – This option will fight mafia that are either inactive or have health below 20. Fighting these users should not show in their history and can help you avoid being added to the hitlist.

If you've played the game manually you may have noticed that when you attack an opponent, sometimes the "Attack Again" link shows up after the first attack and sometimes it doesn't. Some smart guys figured out that when this link shows up - the opponent is active and can see your attacks. When it DOESN'T have the link - the player has actually become inactive or their health is below 20 and attacking these people does not show up in their player updates.

To clarify, the script will CONTINUE to fight mafia that are either inactive, etc., etc. The trick is that the script must first find an inactive, etc., etc. player.  To do this, the script has to fight an opponent AT LEAST ONCE to know whether fighting them again will be detected. If they are active the first attack will be seen in their player update with your name in all it's glory. If you have stealth mode enabled the script will drop active players from the attack list after the first attack and only keep the ones that are inactive. When it runs out of inactive players to attack it will grab a new list of players and run test attacks until it finds more inactives. Another thing to note is that you will also be detected once a player become active, etc., etc. again.

The script cannot really hide you, but it just takes advantage of a known loophole of undetectability. In short you will only show up once in another players update window instead of multiple times.

Avoid top mafia bodyguards setting only applies to random mafia. If they are in your fight list, you will keep fighting them even if they are top mafia bodyguards.

If Fight / Rob list is selected, you will automatically fight / rob the users in the user defined list. The list must contain only the opponent’s user ID. The list should contain one user ID per line.
>>> To determine a players user ID, you can right click on any player and choose “open in a new tab”. Go to that new tab and look through the URL for a number following user=. This is usually at the end of a url like …….&xw_action=view&user=000000000000 In this example 000000000000 is the user ID.

Avoid Fighting mafia families – This option will avoid fighting any families that contain the user defined list of prefixes in their names. These are usually clans. You may wish to avoid fighting members of your own clan, or you may wish to avoid fighting members of any clan since they may enlist the help of their clan to seek revenge.

Setting % Stamina to keep on hand (+/- 1) will keep some stamina for you to use as you like.

Enabling Use all stamina to level up will override the above option only when the script calculates that your stored stamina is enough to get you to the next level thus you don't waste stamina.



HITLIST



  • Enable auto-hitlist
Not enabled at this time.

  • Bounty amount
Not enabled at this time.

  • Summarize Attacks From Player Updates
When Enabled, this option adds up all the attacks you receive in player updates and then displays them in the log after you've been snuffed.
>>> The script doesn't actually know when you were put on the hitlist (this is very difficult to do, but we're discussing how it might be possible) - anyway if you were just being attacked randomly throughout the day then at the end of the day were put on the hitlist - the entire days worth of attacks would be summarized and displayed like you see. The script then resets counts and starts capturing again until it sees you've died and spits out the summary once more.

When NOT Enabled, attacks you receive in player updates will be moved to the log right away.



PROPERTY


  • Enable Auto Buy
This will purchase properties that you have selected.
Properties are purchased in groups of 10.
The property that gets purchased next is the property with the best return on investment (ROI). The ROI is visible on the property page. See below for this screen sample.
Minimum cash is the amount of money not to spend when purchasing properties.

The empty lots do not need to be selected for the script to buy them if the improved properties require them.

>>> Some people prefer not to stock up on empty lots, others think it is a good setting to select all...except casino. Everyone targets casino's, even this script. You may not want to put too much money there to be robbed =)


  • Enable auto-repair property
This will repair property that has been damaged. The script will automatically withdraw money from the bank if needed.

  • Enable auto-protect property
This will protect property that needs protecting. The script will automatically withdraw money from the bank if needed.

>>> Currently this will repair/protect rather frequently potentially costing you a lot of money. You may not want to use the setting unless you are confident about your defenses.  There is an open issue to repair protect when within a certain amount of time to collect the rent. This would be the most effective time to repair and protect, as the damage doesn't affect your return at any other moment.



MAFIA LOG


  • Clear log
Only clears the log. The stats at the bottom will remain.

  • Clear stats
Only clears the stats. The log above will remain.

  • Close mafia log
Will close the log. Log info and stats will not be cleared.



OTHER SCREEN CHANGES

Property ROI

NOT SHOWN
Located above all property purchase items is a message stating what is the Next auto-buy property.


Energy ROI

Energy ROI is the line at the top of the jobs just under the job level names. This states what job ratio to shoot for if you want to level on energy. It doesn't take into account the stamina that you have.

NOT SHOWN
Under the Do Job button, you will find the time until you can do the job.




OTHER ENHANCEMENTS

  • This script will automatically accept mafia invites.
 


FAQ


  • Where can I get and install the developers version of this script?
To install the developers version of the script, click on the following link.
NOTE: Do this at your own risk. This version is usually updated daily because of the number of experimental items in it.

  • The script isn't working right after upgrading to the latest version, is there something I can do to correct the issue?
If you are experiencing issues with the script, you may want to try the following.
- Uninstall the script with with "Also uninstall associated preferences" checked and then reinstall it.

If that does not correct the problem, please submit the problem as a New Issue at the Google Code site.
Link: http://code.google.com/p/mafiawarsautoplayer/issues/list
Please search the list of issues to make sure someone else has not already submitted the same problem. If you find the same issue, be sure to add a comment with any additional information that may help in resolving the problem.

  • I have a suggestion on how to make the script better. Where can I submit my idea?
This script can only get better with your help. If you have an idea that you want to share with the developers, use the same link as above to submit your idea. Just be sure to mark it as an Enhancement. Also, check to make sure someone else hasn't already submitted the same great idea.

  • What does "Police investigation, moving along quietly" in the mafia log mean?
 This means that you have auto rob on and found a property that has been shut down by the police and can't be robbed. This could also mean that the person you are trying to rob does not have any Mega Casinos.
>>> The script currently only robs casinos and ignores the lower properties, because really, why settle for second best? Anyway, this is a known issue and all that. One thing that can help is to make sure that your settings for the max level and max mafia that you want to fight is not to low. Otherwise the script might not be able to find anyone. That and if you're a low level, others around your level might not have casinos yet...

Also, confusing, scary message? It's almost the same message as when you try to rob manually. Only with a bit of flavor added. Remember, this is Mafia Wars, not My Little Pony.


  • I have been getting this message. What should I do about it?
"Your request was not processed because you were performing actions too quickly; please limit the rate at which you are making requests and try again. If you feel you have received this message in error please contact our customer support."
via AK17710N: You'll get this if you "go too fast" manually or with the script. Change the delay to 7-10 seconds and that should clear it up.



OTHER USEFUL LOOT

  • Links