YA Facebook Mafia Wars Interface Enhancement

By HoBo-Bob Last update Aug 4, 2009 — Installed 1,131 times.


Script Summary: Yet another Facebook Mafia wars interface enhancement.

Shows some return on investment from property purchases and jobs. I'll continue to improve.

Job examples

Mugging
Level 3 Mastered
$224 - $336
Experience: +1
($280)
1 Energy
(1)

The number above the energy is the average number of dollars you will receive per energy expended to complete the job. I took the high and low of the range and averaged them, then divided by the number of energy required. Simple stuff.

The number below the energy is the ratio of experience received per unit of energy expended.

Property examples

Abandoned Lot
Income: $100
$15,000
Recoup: 0.67% / time
Owned: 20
Rent House
+$300
(x30 Owned)
Built on: Abandoned Lot
Cost: $40,000
Recoup: 0.75% / time

Recoup is the percentage that you will get back on your investment in a property per unit of time. For a Maniac character, this will be per hour. For a Fearless character, this will be per day. I don't have access to a Mogul character, so I can't say what unit of time that will be. As a future addition I will tailor the time period to the character.

Small portion of code used to run whenever the mafia wars window was pilfered from http://userscripts.org/scripts/show/45937.

Known issues:
- When moving from the properties page to the fight page, the script hangs.
- When moving from NY to Cuba jobs pages, the script doesn't modify the content.

Updates:

2009-08-04
  • Removed useless bars at the top to reduce need to scroll
  • Improved property recoup calculation
  • Fixed jobs page processing when "Boss Fight" box exists
  • Removed some useless code
  • Inserted jQuery javascript loading into the page so it can be used for future improvements
2009-08-03
  • Properties are set to purchase the maximum allowed by default
2009-07-31
  • Improved property return calculation. For properties, it now factors into account the cost of undeveloped land if you don't own at least 10 plots of required undeveloped space. This will throw the Mafia Mikes calculation off a little if you own less than 10 Abandon Lots but it shouldn't really matter.
  • Fixed a bug where the enhanced interface wasn't being shown on the Enforcer jobs page
  • Added experience needed to level
  • Mafia Mike's no longer shows the "Recoup" value if your Mafia size is not large enough to purchase it.