Phalzyr's Trainer For Sid Meier's Pirates! Downingd@kasec.org

VISTA USERS: Either Give The trainer Run As Admin Rights or Turn Off UAC (User Access Control). Do this Via the Control Panel/User Accounts program. you can also right click on the icon and give it "rus as admin rights" or something like that, but UAc is an annoying featuer to have on at the moment.

ALT TAB CRASHING!!!: Pirates crashing when alt-tabbing isn't anything to do with my trainer. One of their lastest patches introduced that bug. I get around it by turning water detail down and anything else I need to but usually only that. Lower all your setting to minimum, alt-tab see if it still crashes then increment up one of the values at a time until you get the max video quality you can without it crashing.

WARNING: Use this trainer at your own risk, I will not be responsible for any adverse effects on your computer(Pirates! crashing make sure to set your version if not the 1.02 non-downloaded one). 

Note: Please View my trainer forum thread at http://www.addictedforums.com/index.php?s=cd4f7437cd55e26c1a674b2c8cc0cde1&showtopic=4027

Known Issues:
1. When quiting SMP and getting back in Trainer does not work any more.
Solution: Restart Trainer if you quit out of SMP.

2. Be 18 In Sword Fights Feature Makes Date Flash IF I abandon game in middle of fight then load a game.
Solution: Don't do that or put up with flashing until you get into a fight.

3. Be 18 In sowrd fight Feature Makes Player go to winning spot IF you start my trainer While at start position of a fight.
Solution: Um start trainer before SMP or at least not while in a fight ;)

Features:

Status Tab:
* Never Age - Stay 18 forever (this will lock the year to whatever your start year is.)
* Be 18 In Sword Fight - Don't get punished for being old in sword fights. Doesn't lock year.
* Happy Crew - Keeps your crew happy as long as you have a descent amount of gold upon you.
* Rich / Well Stocked Shops - Makes town stores have a lot of gold and supplies.
* Lock Camera's Zoom - Stops the camera from zooming in and out so darn much when getting near land.
* Auto Dance - Alway make the right moves while dancing.
* Always Graceful - When Dancing Make perfect moves. Must have auto dance on.
* Lock cities in the known state - You can always get their info
* Change settlements into towns with/without a chance to become pirate havens. Change Jesuit missionaries into other types. (These towns can't be attack but can do everything else a town can.)
* Double all population/soldiers of towns. Either All, nearest, or special (Selected) Town.
* Make Towns Rich.  Either All, nearest, or special (Selected) Town.
* Change Owner Of Nearest or Special town.
* Make Nearest or Special town's Daughter Beautiful.

Personal Status Tab:
* Change Difficulty of game.
* Change selected skill.
* Edit/Lock Crew, Supplies, and commodites.
* Change your rank/wanted status for each nation
* Change what special items you have.
* Change Promtion difficulty so it takes more favor to achieve a promotion.
* Loss Of Favor Makes Wanted - If you attack a nation's city or ship you loose all favor and get a price on your head.
* Loss Of Favor Loses Promotions - Strips you of your rank for the given nation if you attack their ship or town.
* Complete Lost Relatives, Lost City, Quests and/or maps.
* Reset Lost Relatives Quest.

Fleet Status Tab:
* Set Your ship and Enemy ship to have a minimum ship speed in the world or battle (seperately)
* Change what your ships are, what upgrades they have, repair them, or sink them
* Instantly Stop your ships or all other ships
* Anchor your ships or all other ships
* Change what specialists you have
* Make your ships unable to get hurt.

Battle Tab:
* No Reload for Your ship and/or enemy - You don't ahve to wait to fire again.
* Change/Lock amount of crew and guns in battle
* Destroy Enemy Sails, Crew. Guns, or Hulls (seperately)
* Make your pirates never die in land battles
* Make your pirates never run out of movement points in land battle
* Instantly win land battles
* Change who is at war
* Keep people at war never letting them cease a conflict
* Resurrect, give SOTL, and all upgrades to Top Ten. Seperate options. Also can set a time delay for them to resurrect.

Teleport Tab:
* Set and go to anywhere instantly (some have default locations for you but you can overwrite/reset them) now 12 places to set.
* Go to any of the Top Ten pirates. Note if they are in a town it might do something funny so just teleport again.

Version 3.14
* Removed - Obsolete Dance boost Options.
* spelling fixes and updating the readme.

Version 3.13
* Added - Personal Status Tab - Loss Of Favor Loses Promotion
* Added - Personal Status Tab - Add To Difficulty: Multiple Of # Per Rank Requirement Level
* Changed - Personal Status Tab - Reworded "Make Wanted For Any - Favor" to "Loss Of Favor Makes Wanted" For Clarification
* Added - Personal Status Tab - Increase Population By #% Every Month. 
	NOTE: If You load a game the remainder(game only keeps track in units 0f 200 for poulation and 20 for soldiers) is NOT reset...
* Changed - Status Tab - Zoom Lock - Changed Zoom to its proper 4 byte rather than 1 byte size

Version 3.12
* Added - Personal Status Tab - Reset Lost Relatives Quest.

Version 3.10
* Changed - SOTL and Upgrades options for top ten now check to make sure owner is a pirate and spice value (which pirate) is between 1 and 9. Should reduce amount of SOTL roaming around after a pirate is dead? 
* Changed - Nearest/Special City change owner option now has a drop down that you can select whom to give city to. I have also added a menu option to put in indian and jesuit into drop down but note I had a crash every time I tried to give a city to the indians.
 

Version 3.09
* Added - New Version Option for BigPond Downloaded Version Thanks to forum member sllbbpg 

Version 3.08
* Added - Set Offset Area - Abiltiy to search in a limited memory range for finding gold value. 

Version 3.07  - Thanks X87Bliss for the addresses
* Added - Status Tab - Graceful Dance So that you spin every move.
* Added - Status Tab - Auto Dance

Version 3.06
* Fixed - Hulls Of captured ships always at 1% damage - Cleared out some old code that got left in.
* Fixed - When checkbox for"Make wanted for any - favor" was checked if any ship was destroyed in battle I'd sink both not just the one sinking.

Version 3.05
* Added - No Reload Option - Thanks X87Bliss for the address
* Fixed - Locking zoom actually was locking age instead.
* Changed - Zoom will not alter zoom value if it is 0 IE in menu looking at map. I couldn't recreate it messing with map without being on even after fixing it to actually lock zoom, but for this should fix it for anyone who is having the problem.

Version 3.04
* Changed - Status Tab - Lock Known City will now also make type of govenors daughter known.
* Changed - Battle Tab - At War Status now has only one combo box that effects both sides. 
* Added - Battle Tab - Ability to lock at war status for each nationality combination. (note these will reset to off when quiting trainer)
* Moved - Status Tab - SMP version selection and Lock speed to main menu.
* Added - Status Tab - Make all towns Rich (not amount of money a city actually has is a random value based on this field)
* Added - Status Tab - Effects for nearest town including: Make owner pirates, max soldiers, beautiful daughter, make rich
* Added - Status Tab - Ability to select nearest city as "Special" city
* Added - Status Tab - Effects for special city including: Make owner pirates, max soldiers, beautiful daughter, make rich
* Added - Personal Status Tab - Complete Lost Relatives Quest
* Added - Personal Status Tab - Complete Lost City Quest
* Added - Personal Status Tab - Complete Lost Relatives Map (Note: You must have one piece of map!)
* Added - Personal Status Tab - Complete Lost City Map (Note: You must have one piece of map!)
* Added - Personal Status Tab - Complete Hideout Map (Note: You must have one piece of map!)
* Added - Personal Status Tab - Promotion difficulty settings: 1X (normal), 2x, 4x, 8x,and custom amount.
* Added - Personal Status Tab - Make nation "want" you if you ever lose a point of favor (I.E. attack their ship though sometime if you capture ship it doesn't subtract from favor)


Version 3.03
* Fixed - When Checking All Specialists it would only add next one instead of all.
* Fixed - when trying to change values in a Combobox and not selecting it within a second it revert back to old value.
* Added - Another Never Age option that doesn't lock year.

Version 3.02
* Changed - Seperated Getting values and locking them. Made the code for getting the values run every 1 second instead of lock speed. This should improve performance even more without hurting functionality.
* Fixed - If minimum speed never set the fields were now blank. I made them now default to a proper value.
* Fixed - Top ten resurrect delay was hardcoded to 1000ms interval and thus changing interval made delay no longer proper amount of time.
* Changed - Resurrect delay times
* Fixed - The game could spawn in a non-top ten pirate using the top ten ships. This would cause pirate to never resurrect and/or make my program get invalid ship info making it respawn the ship as a non-top ten. I now check ownership and pirate number before getting info and respawn if they aren't correct.
* Added - A Checkbox to select whether you want the dance boost hotkey to toggle the locked status. This way you can lock it at beginning of dance and ignore dance itself and unlock right after, so you don't have to pay attention to dance to get the best result and you don't have to worry about the lock crashing game when not in a dance.
* Changed - Instant stop will not uncheck boost options.
* Changed - When dropping anchor it will store the checked status of the boost options and when rasiing anchor will restore them.
* Changed - Disabled hotkeys and checkboxes for boost options when anchored.
* Fixed? - Ships 2-8 would lose upgrades upon load.

Version 3.01
* Changed - Default Lock Speed to 100ms
* Added - Ability to change the lock speed. must be greater than 10ms. 

Version 3.0 
* Rewrote code from scratch due to not being able to find old code.
* Fixed - Never Age was causing the month/year to revert on november 28th Rather than January 1st.
* Fixed - Never Age was causing the month/year of a game that wasn't using it previously and was between november 29th and December 31st to revert the year but have month = the difference between November 28th and what the day was. 

Memory Locations Used: (These are v1.02 values and are offset by -16384 for V1.00 and -12288 for v1.01)
//Gold: 			86BAB4 Byte Size 4;
//Food: 			86BAB8 Byte Size 4;
//Luxuries:   			86BABC Byte Size 4;
//Goods:			86BAC0 Byte Size 4;
//Spice:			86BAC4 Byte Size 4;
//Sugar:			86BAC8 Byte Size 4;
//Cannons:			86BACC Byte Size 4;
//Crew:				86BAB0 Byte Size 4;
//Age: 				85C140 Byte Size 4; //Used for not locking year never age option
//Merchant Money:		72E698 Byte Size 4; //Must NOT be in shop when setting value, this is copied to random address for in shop value then copied back to this one afterwards.
//Speed:			816310 Byte Size 4;
//Dance 1: 			12F0E8 Byte Size 4; //No Longer Used?
//Item: Swords			86BB20 Byte Size 1; //0 = Don't Have, 1 = Have First Kind, 2 = Have Upgraded Version
//Item: Pistols			86BB21 Byte Size 1;
//Item: Armor			86BB22 Byte Size 1;
//Item: Fencing			86BB23 Byte Size 1;
//Item: Telescope		86BB24 Byte Size 1;
//Item: Rutter			86BB25 Byte Size 1;
//Item: Barometer		86BB26 Byte Size 1;
//Item: Concertia		86BB27 Byte Size 1;
//Item: Disguise		86BB28 Byte Size 1;
//Item: Medicine		86BB29 Byte Size 1;
//Item: Shaman Stuff		86BB2A Byte Size 1;
//Item: Relics			86BB2B Byte Size 1;
//Item: Diamond			86BB2C Byte Size 1;
//Item: Dancing			86BB2D Byte Size 1;
//Item: Hat			86BB2E Byte Size 1;
//Item: Key			86BB2F Byte Size 1;
//Item: Flare			86BB30 Byte Size 1;
//Difficulty Level:		85C158 Byte Size 1; //0 = Apprentice 1 = Journeyman 2 = Adventurer 3 = Rogue 4 = Swashbuckler
//Skill:			8CC92C Byte Size 1; //0 = Fencing 1 = Gunnery 2 = Navigation 3 = Medicine 4 = Wit And Charm
//Crew - During Battle: 	8BE484 Byte Size 4;
//Cannons - During Battle:	8BE480 Byte Size 4;
//Flagship - Hull Damage:	81631A Byte Size 2; //0-100 = percent damaged
//Flagship - Sail Damage:	816318 Byte Size 2;
//Enemy Sail Damage Ship 1:	8BF734 Byte Size 4;
//Enemy Sail Damage Ship 2:	8BFBDC Byte Size 4;
//Enemy Hull Damage Ship 1:	8BF730 Byte Size 4;
//Enemy Hull Damage Ship 2:	8BFBD8 Byte Size 4;
//Enemy Crew Ship 1:		8BF724 Byte Size 4;
//Enemy Crew Ship 2:		8BFBCC Byte Size 4;
//Enemy Crew During Fencing:	72ED64 Byte Size 4;
//Enemy Guns Ship 1:		8BF720 Byte Size 4;
//Enemy Guns Ship 2:		8BFBC8 Byte Size 4;
//Battle Ship Speed:		8BE478 Byte Size 2;
//Flagship Upgrades:		816324 Byte Size 1; //255 = all
//Specialists:			86BB34 Byte Size 1; //255 = all
//Flagship Type: 		8162F8 Byte Size 2; //0 = War Canoe 1 = Sloop 2 = Brigantine 3 = Costal Barque 4 = Fluyt 5 = Merchantman 6 = Frigate 7 = Fast Galleon 8 = Trade Galleon 9 = Pinnace 10 = Sloop of War 11 = Brig 12 = Barque 13 = Large Fluyt 14 = Large Merchantman 15 = Large Frigate 16 = War Galleon 17 = Royal Galleon 18 = Mail Runner 19 = Royal Sloop 20 = Brig of War 21 = Ocean Barque 22 = West Indiaman 23 = East Indiaman 24 = Ship of the Line 25 = Flag Galleon 26 = Treasure Galleon
//Months at Sea:		86BB1A Byte Size 2; //Keep at 0 to help keep crew happy.
//Crew Unhappiness:		86BA76 Byte Size 1;
//Wind Speed:			85C0F8 Byte Size 1;
//Map Coordinates X:		816306 Byte Size 4;
//Map Coordinates Y:		81630A Byte Size 4;
//Ship Facing:			81630F Byte Size 1;
//Ship Heading:			8BB8FF Byte Size 1;
//ZOOM LEVEL:			85C0FC Byte Size 4; //Signed value -13 to 10. 10 is good value.  
//Start Friendly # in units:	8709EA Byte Size 1; // Land Battle // + 332 for 16 armies
//Start Friendly Movement:	870A04 Byte Size 1;
//Friendly Surrender		8709ED Byte Size 1;
//Start Enemy # in units:	871EAA Byte Size 1;
//Enemy Surrender:		871EAD Byte Size 1;
//Starting Year:		7273B4 Byte Size 2; //anything lower than 1600 will crash
//Current Date:			85C150 Byte Size 4; //72000 = 1 year All age is based off of this value 85C140
//At War Shown And Primary (I.E. Spanish vs English = Spanish thinks they are at war)
//0 means neutral, 1 means war, -1 means peace
//Spanish vs English:		85C16C Byte Size 4;
//Spanish vs French:		85C170 Byte Size 4;
//Spanish vs Dutch:		85C174 Byte Size 4;
//English And French:		85C190 Byte Size 4;
//English And Dutch:		85C194 Byte Size 4;
//French And Dutch:		85C1B4 Byte Size 4;
//At War-Secondary (I.E. Spanish vs English = English thinks they are at war)
//Spanish vs English:		85C188 Byte Size 4;
//Spanish vs French:		85C1A8 Byte Size 4;
//Spanish vs Dutch:		85C1C8 Byte Size 4;
//English And French:		85C1AC Byte Size 4;
//English And Dutch:		85C1CC Byte Size 4;
//French And Dutch:		85C1D0 Byte Size 4;
//Ship 2 - 8 Speed:         	81676C Byte Size 4; // + 1116 between ships
//Ship 2 - 8 Sail Damage:	816774 Byte Size 2; //0-100 = percent damaged
//Ship 2 - 8 Hull Damage:	816776 Byte Size 2;
//Ship 2 - 8 X coord:		816762 Byte Size 4;
//Ship 2 - 8 Y Coord:		816766 Byte Size 4;
//Ship 2 - 8 Upgrades:		816780 Byte Size 1;
//Spanish Rank:			86BA88 Byte Size 1;
//English Rank:			86BA8A Byte Size 1;
//French Rank:			86BA8C Byte Size 1;
//Dutch Rank:			86BA8E Byte Size 1;
//Spanish Wanted:		86BA78 Byte Size 2; //Positive = favor; # * -1000 = Amount IE -55 = 55,000 Gold
//English Wanted:		86BA7A Byte Size 2;
//French Wanted:		86BA7C Byte Size 2;
//Dutch Wanted:			86BA7E Byte Size 2;
//First Pirate ShipType (Henry Morgan) 9 pirate ships in all
//+4 = Owner  0=Spain,1=English,2=French,3=Dutch,4=Pirate
//14 = Map X (4) 18 = Map Y (4) 24 = Speed (2)
//32 = Sail Damage 34 = Hull Damage 38 = Crew (2) 40 = Guns (2)
//44 = Upgrades 50 = Food 52 = Luxeries 54 = Goods 56 = Spice or Pirate 58 = Sugar
   				8185D8 Byte Size 1;
//First NP ShipType (Not On Top Ten) 238 Ships Max
   				81AD14 Byte Size 1;
//First City Ownership  //+32 for 128  4=pirate,5=Indian,6=Jesuit
//-12 = X -8 = Y (take ship x * .0658 then get closest)
//-3 Known State 1 or 0 +1 Population = # * 200 (1) +2 Soldiers = # * 20 (1)
//12 colony type same as owner or 7 for Settlement
   				862B74 Byte Size 1;
//Ship Upgrade: Must NOT be in the shipwright, or exit/re-enter to see change.
//0 = Copper Plating 1 = Cotton Sails 2 = Triple Hammocks 3 = Iron Scantlings 4 = Chain Shot 5 = Grape Shot 6 = Fine-Grain Powder 7 = Bronze Cannon
   				72E658 Byte Size 1;
//Enemy Ship Speed 1:		8BF718 Byte Size 2;
//Enemy Ship Speed 2:		8BFBC6 Byte Size 2;
//Use For Age Value:		72ECF0 Byte Size 1;
//Ship Types 2-8:		816754 Byte Size 2; // + 1116 for each ship
//Lost Relatives Quests; +2 = Lost Cities Quest //0 = Nothing 4 = complete
   				86BB1C Byte Size 2;
//Lost Relatives Map; +273 = amount of map 0 = full
//Defaults: 178, +4 = 180, +64 = 172, +68 = 179
   				85C3B8 Byte Size 2;
//Lost Cities Map: +273 = amount of map 0 = full
  				85C500 Byte Size 2;
//Montalbon's Map;  +273 = amount of map 0 = full
   				85C648 Byte Size 2;
//Govenors Daughter 0=plain,1=attractive,2=beautiful + 148 for each city
   				85DF74 Byte Size 1;
//owner during battle: 		8BF768 Byte Size 1;
//no reload:			8BE4A4 Byte Size 4;
//danceboost options		724AA0; 72E778; 72E79C; 72E7A4 Byte Size 1;
//Treasure Map Amount 85C381 active 85C271

