Пираты Карибского моря чит-файл №3

More money
Use Notepad to edit PROGRAM\Characters\characters_init.c file. It can be
modified to start with as much abilities, points, experience and money as
player's greed can allow.
Faster sailing
Using Notepad open ''Interface.c'' in the game folder ''PROGRAM\Interface'.
Search for the word ''arcade'' and you will find the following line at the end
of the file:
if(bArcadeMode) return 2.0;
Change the number to the desired speed factor, e.g. ''6.0'' and save the file.
In game press the time-scale key (* on NumPad) and there you go, with 6 times
the normal speed!
Enabling continued play after winning the main quest
Use Notepad to open INSTALLDIR\Program\Quests\quests_reaction.c file find the
following code:
case "Story_KillTheFinalBoss_2": bQuestDisableMapEnter = false;
bMainMenuLaunchAfterVideo = true; InterfaceStates.Buttons.Resume.enable = false;
InterfaceStates.Buttons.Save.enable = false; GameOver("finish");
DelEventHandler(EVENT_END_VIDEO,"LaunchMainMenu_afterVideo");
bMainMenuLaunchAfterVideo = true; PostVideoAndQuest("ending",100, "credits");
break; case "credits": PostEvent("DoInfoShower",100,"s","");
PostVideoAndQuest("credits", 1, "end_game"); break; case "end_game":
LaunchMainMenu(); Characters[GetCharacterIndex("researcher")].Dialog.CurrentNode
= "First time"; Characters[GetCharacterIndex("danielle")].Dialog.CurrentNode =
"First time"; break;
and replace it with the following piece of code (don't forget to make a backup
first!):
case "Story_KillTheFinalBoss_2": bQuestDisableMapEnter = false;
DelEventHandler(EVENT_END_VIDEO,"LaunchMainMenu_afterVideo");
PostVideoAndQuest("ending",100, "credits"); break; case "credits":
PostEvent("DoInfoShower",100,"s",""); PostVideoAndQuest("credits", 1,
"end_game"); break; case "end_game":
Characters[GetCharacterIndex("researcher")].Dialog.CurrentNode = "First time";
Characters[GetCharacterIndex("danielle")].Dialog.CurrentNode = "First time";
break;
Raise skill cap to 40
Make backup of the following files, and then edit them using Notepad or similar
text editor:

First changes are in PROGRAM/INTERFACE/character.c. Find the top line that
reads:

#define MAX_CHARACTER_SKILL 10

and change it to:

#define MAX_CHARACTER_SKILL 40

Then, find the section:

int GetAlphaFromSkill(int nskill)

Find the lines that read:

{
switch(nskill)
{
case 0: return 55; break;
case 1: return 75; break;
case 2: return 95; break;
case 3: return 115; break;
case 4: return 135; break;
case 5: return 155; break;
case 6: return 175; break;
case 7: return 195; break;
case 8: return 215; break;
case 9: return 235; break;
case 10: return 255; break;
}
return 0;
}

and change them to read:

{
switch(nskill)
{
case 0: return 55; break;
case 1: return 75; break;
case 2: return 95; break;
case 3: return 115; break;
case 4: return 135; break;
case 5: return 155; break;
case 6: return 175; break;
case 7: return 195; break;
case 8: return 215; break;
case 9: return 235; break;
case 10: return 255; break;
case 11: return 255; break;
case 12: return 255; break;
case 13: return 255; break;
case 14: return 255; break;
case 15: return 255; break;
case 16: return 255; break;
case 17: return 255; break;
case 18: return 255; break;
case 19: return 255; break;
case 20: return 255; break;
case 21: return 255; break;
case 22: return 255; break;
case 23: return 255; break;
case 24: return 255; break;
case 25: return 255; break;
case 26: return 255; break;
case 27: return 255; break;
case 28: return 255; break;
case 29: return 255; break;
case 30: return 255; break;
case 31: return 255; break;
case 32: return 255; break;
case 33: return 255; break;
case 34: return 255; break;
case 35: return 255; break;
case 36: return 255; break;
case 37: return 255; break;
case 38: return 255; break;
case 39: return 255; break;
case 40: return 255; break;
}
return 10;
}
You also need to change alpha settings for the display:
int SetAlphaIntoColor(int col, int alpha)
{
int newCol = and(col,16777215) + shl(alpha,24);
return newCol;
}
Next change is in PROGRAM/Characters/characters.h. Find the line toward the
bottome that reads:

#define SKILL_MAX 10

and change it to read:

#define SKILL_MAX 40
Save the changes and your new skill cap is now 40. Works on existing game, no
need to start a new one.
Turn off storms
Use Notepad to open PROGRAM\WorldMap\worldmap_events.c file and find:
//Generate encounters wdmStormGen(dltTime, playerShipX, playerShipZ,
playerShipAY); wdmShipEncounter(dltTime, playerShipX, playerShipZ,
playerShipAY); wdmQuestShipEncounter(dltTime, playerShipX, playerShipZ,
playerShipAY);
and change it to read:
//Generate encounters //wdmStormGen(dltTime, playerShipX, playerShipZ,
playerShipAY); wdmShipEncounter(dltTime, playerShipX, playerShipZ,
playerShipAY); wdmQuestShipEncounter(dltTime, playerShipX, playerShipZ,
playerShipAY);
Adjust storm frequency and frequency of enemy ships
Use Notepad to open PROGRAM\WorldMap\worldmap_encgen.c file and change frequency
of storms and enemy ships by modifying numbers. For example, changing 0.002 to
0.001 will cut the default storm generation rate to a half:
#define WDM_STORM_RATE 0.002 - Storm frequency
#define WDM_WARRING_RATE 0.03 - Enemy ships frequency
Allow your character to "Always Run"
Use Notepad to open option file and change the following lines:
controls.primaryland.chrrun=vk_?
controls.fightmodecontrols.chrrun=vk_?
to (assuming that you use W to walk forward):
controls.primaryland.chrrun=key_W
controls.fightmodecontrols.chrrun=key_W
Change the price and specs of the ships
This is good if you think you deserve more money for selling ships to the
shipyard. Use Notepad to open file PROGRAM\Ships\Ships_init.c and change it to
your desired prices and specs.
Change the price of the ships ships you sell
This is good if you think you deserve more money for selling ships to the
shipyard. Use Notepad to open file PROGRAM\Interface\shipyard.c, find a line
#975 and change price\= 2; to: price = (price *0.73) or whatever % you think is
fair.
Change the price of the sail and hull repair costs
Use Notepad to open PROGRAM\Interface\shipyard.c file and find (line #1001 ~
1015):
int GetSailRepairCost(int shipType,int repairPercent)
{
int shipPrice = GetShipPriceByType(shipType);
if(shipPrice<=0) return 0;
int scost = (shipPrice*sailCostPercent+99)/100;
return (scost*repairPercent+99)/100;
}

int GetHullRepairCost(int shipType,int repairPercent)
{ int shipPrice = GetShipPriceByType(shipType);
if(shipPrice<=0) return 0;
int scost = (shipPrice*hullCostPercent+99)/100;
return (scost*repairPercent+99)/100;
}
and change it to read:
int GetSailRepairCost(int shipType,int repairPercent)
{
int shipPrice = GetShipPriceByType(shipType);
if(shipPrice<=0) return 0;
int scost = (shipPrice*sailCostPercent+99)/250;
return (scost*repairPercent+99)/100;
}

int GetHullRepairCost(int shipType,int repairPercent)
{
int shipPrice = GetShipPriceByType(shipType);
if(shipPrice<=0) return 0;
int scost = (shipPrice*hullCostPercent+99)/250;
return (scost*repairPercent+99)/100;
}

// or to whatever you think is more reasonable for game play.
Change the import/export/normal multipliers for trading goods from island to
island
Use Notepad to open file PROGRAM\Store\StoreUtilite.c and change it to your
desire where TRADE_TYPE_ i.e.
float tradeModify=1.0;
switch(tradeType)
{
case TRADE_TYPE_NORMAL:
tradeModify=0.8+stf(refGoods.RndPriceModify);
break;
case TRADE_TYPE_EXPORT:
tradeModify=0.3+stf(refGoods.RndPriceModify);
break;
case TRADE_TYPE_IMPORT:
tradeModify=1.3+stf(refGoods.RndPriceModify);
break;
case TRADE_TYPE_CONTRABAND:
tradeModify=2.5+stf(refGoods.RndPriceModify);
break;
case TRADE_TYPE_AMMUNITION:
return basePrice;
break;
}
Disabling the intro and opening quest videos
If you are tired of the intro and opening quest videos, just rename the video
files (located in the the "videos" folder) and change their extension (add
".old" or something...) If you ever want to re-activate them, just go in and get
rid of the ".old" extension.
Level up skill and abilities points
To change the amount out skill points and/or ability points awarded for a
levelup modify the file "\PROGRAM\Characters\CharaterUtilite.c". Find lines #
877 and #879 and increase number values:
_refCharacter.Skill.FreeSkill = sti(_refCharacter.Skill.FreeSkill) + 2; - for
skill points
{ _refCharacter.perks.FreePoints = sti(_refCharacter.perks.FreePoints) + 1; -
for abilities points
Change starting character abilities/skills/gold
To start your character off a little more beefed up edit the file
"PROGRAM\Characters\characters_init.c". Goto lines 98 - 100 and change the
following:
ch.skill.freeskill = 2;
ch.perks.freepoints = 1;
ch.money = "1000";
to:
ch.skill.freeskill = 25;
ch.perks.freepoints = 3;
ch.money = "99000";
Load confirm - set default to yes
To change the default load saved game confirm action from NO to YES modify line
#263 in the file "PROGRAM\Interface\save_load.c".
SetCurrentNode("CONFIRM_NO_BUTTON");
Change this line to:
SetCurrentNode("CONFIRM_YES_BUTTON");
You can also do the same for the default confirm action of delete saved game at
line 297.
Increase the maximum number of saved games
To increase the maximum number of saved games, modify the second line in the
file "PROGRAM\Interface\save_load.c":
#define MAX_SAVE_GAME_LIMIT 20
change this to #define MAX_SAVE_GAME_LIMIT 100 or whatever amount of saved games
you desire.