Workout costs money - Updated for Patch 1.38 - 1.67

SCREENSHOTS
8,178 Downloads 439 Thanks  Thanks 94 Favourited 60,413 Views
Uploaded: 30th Aug 2010 at 6:37 AM
Updated: 8th Nov 2014 at 9:10 AM
Please note. I no longer support these mods. Instead all my mods can now be found at Nraas.

10.06.2014:
No changes needed for 1.67
------------------
20.10.2013: No changes needed for 1.63
------------------------

21.06.2013: No changes needed for 1.55
------------------------

24.02.2013: No changes needed for 1.50
----------------------
09.11.2012
No changes needed for 1.42

-------------------
06.09.2012
File: ani_WorkOutCostsMoney_138

------------------------
10.03.2012
File: ani_WorkOutCostsMoney_SHT

- updated for SHT
- removed notification of who is working out if you are the lot owner.
-------------------------------------
06.11.2011
File: ani_WorkOutCostsMoney_PETS

Changes: Payments for work out are only collected if the lot type is gym or pool.
-----------------------------
01.06.2011
File: ani_WorkOutCostsMoney

This is just a small mod I made for my game to have more outlets for Sim's to use their money. Basically if your Sim is working out, and he is doing it on a community lot, they will have to pay for this service.

Prices:
- Workout: 150§
- Swimming: 30§

How it works:
This mod listens to two events that are triggered when Sims work out kStoppedWorkingOut and kSwimming.
If the Sim is using the bench, the treadmill, a TV or the stereo, they pay for the workout when they stop using the equipment.
So if a Sim first uses the treadmill and then the bench, he will pay after he finishes with the treadmill and after he finishes with the bench, the amount of time he used working out doesn't matter.

For swimming you pay according to how long you swim. The kSwimming event is triggered about every 15 minutes you are swimming. The event is the same that satisfies the "went swimming" want. So if you swim for 5 minutes, you pay nothing, if you swim for 30 minutes you pay 60§.

If the lot is owned by another Sim, the money earned from working out will go to the lot owner.
If a Sim doesn't have enough money, the amount is added to his next bill.

Modding the mod:
If you want to change the workout prices, you can do it by modifying the WorkOutConfig.xml file inside the package using s3pe. There are two values, <workoutfee> and <swimfee>.

Conflict: This will not work with core mods that have for some reason disable the alerts, or modified payment/lot owning codes.

Bugs: So far I have not found any, but if you do find something, please tell.

Have fun
ani_