case "Story_leavingOxbay":
ChangeCharacterAddress(characterFromID("Guy Gilroy"), "none", ""); // NK 05-07-20
Locations[FindLocation("Oxbay_town_exit")].locators_radius.goto.citizen08 = 12.0;
Locations[FindLocation("Falaise_De_Fleur_location_03")].reload.l3.disable = 0; // NK
//âêëþ÷àåì êîðàáëü îäíîãî èç îôèöåðîâ.
setCharacterShipLocation(characterFromID("Clair Larrouse"), "Muelle_port"); // boal
//Óñòàíîâêà àòðèáóòà äëÿ ïðîâåðêè çàõâà÷åííîñòè Îêñáýÿ
PChar.Quest.Story_OxbayCaptured = "1";
//Ñìåíà íàöèîíàëüíîñòè ôîðòà Îêñáýÿ
// KK Characters[GetCharacterIndex("Oxbay Commander")].nation = FRANCE;
// KK Characters[GetCharacterIndex("Oxbay Commander")].model = "Soldier_fra";
// NK - LAi_SetImmortal(characterFromID("Oxbay Commander"), true);
// KK SetTownNation("Oxbay", FRANCE); // NK
//Ñìåíà àíãëèéñêèõ ñîëäàò â Îêñáýå íà ôðàíöóçñêèõ
//Óäàëåíèå àíãëèéñêèõ
CaptureTownForNation("Oxbay", FRANCE); // KK
// KK: Set French Soldiers for Oxbay -->
for (int n = 0; n < CHARACTERS_QUANTITY; n++)
{
if (!CheckAttribute(characters[n], "location")) continue;
if (FindLocation(characters[n].location) == -1) continue;
if (GetTownIDFromLocID(characters[n].location) == "Oxbay")
{
if (isOfficer(characters[n])) continue; // LDH fix for our officers becoming French soldiers on leaving Oxbay - 19Jan09
if (isSoldier(characters[n]) != UNKNOWN_NATION)
{
characters[n].Dialog.Filename = "Story_Fra_Occup_common_dialog.c";
characters[n].greeting = "Gr_Story_French Occupant";
}
}
}
// KK: Set French Soldiers for Oxbay <--
// ADDING GOODS AND CREW TO THEIR SHIPS // changed by MAXIMUS [gunpowder mod] --> // KK -->
SetCrewQuantity(characterFromID("Remy Gatien"), makeint(GetMaxCrewQuantity(characterFromID("Remy Gatien"))));
SetCharacterGoods(characterFromID("Remy Gatien"),GOOD_WHEAT,makeint(sti(GetCrewQuantity(characterFromID("Remy Gatien"))) * FOOD_PER_CREW * WHEAT_DAYS));
SetCharacterGoods(characterFromID("Remy Gatien"),GOOD_RUM,makeint(GetCrewQuantity(characterFromID("Remy Gatien"))) * FOOD_PER_CREW * RUM_DAYS));
SetCrewQuantity(characterFromID("Yves Giner"), makeint(GetMaxCrewQuantity(characterFromID("Yves Giner"))));
SetCharacterGoods(characterFromID("Yves Giner"),GOOD_WHEAT,makeint(sti(GetCrewQuantity(characterFromID("Yves Giner"))) * FOOD_PER_CREW * WHEAT_DAYS));
SetCharacterGoods(characterFromID("Yves Giner"),GOOD_RUM,makeint(GetCrewQuantity(characterFromID("Yves Giner"))) * FOOD_PER_CREW * RUM_DAYS));
SetCrewQuantity(characterFromID("Begon Monchaty"), makeint(GetMaxCrewQuantity(characterFromID("Begon Monchaty"))));
SetCharacterGoods(characterFromID("Begon Monchaty"),GOOD_WHEAT,makeint(sti(GetCrewQuantity(characterFromID("Begon Monchaty"))) * FOOD_PER_CREW * WHEAT_DAYS));
SetCharacterGoods(characterFromID("Begon Monchaty"),GOOD_RUM,makeint(GetCrewQuantity(characterFromID("Begon Monchaty"))) * FOOD_PER_CREW * RUM_DAYS));
// ADDING GOODS AND CREW TO THEIR SHIPS // changed by MAXIMUS [gunpowder mod] <-- // <-- KK
// ADDING GUNPOWDER TO THEIR SHIPS // added by MAXIMUS [gunpowder mod] -->
if (CANNONPOWDER_MOD) {// TIH --> mod toggle 7-7-06
canQty = 0;
crewQty = 0;
canQty = GetCannonQuantity(characterFromID("Remy Gatien"));
crewQty = GetCrewQuantity(characterFromID("Remy Gatien"));
SetCharacterGoods(characterFromID("Remy Gatien"),GOOD_GUNPOWDER,makeint(canQty*5)+makeint(crewQty*3));
canQty = GetCannonQuantity(characterFromID("Yves Giner"));
crewQty = GetCrewQuantity(characterFromID("Yves Giner"));
SetCharacterGoods(characterFromID("Yves Giner"),GOOD_GUNPOWDER,makeint(canQty*5)+makeint(crewQty*3));
canQty = GetCannonQuantity(characterFromID("Begon Monchaty"));
crewQty = GetCrewQuantity(characterFromID("Begon Monchaty"));
SetCharacterGoods(characterFromID("Begon Monchaty"),GOOD_GUNPOWDER,makeint(canQty*5)+makeint(crewQty*3));
}// TIH <-- mod toggle
// ADDING GUNPOWDER TO THEIR SHIPS // added by MAXIMUS [gunpowder mod] <--
Group_CreateGroup("Story_French_Squadron");
Group_AddCharacter("Story_French_Squadron", "Remy Gatien");
Group_AddCharacter("Story_French_Squadron", "Yves Giner");
Group_AddCharacter("Story_French_Squadron", "Begon Monchaty");
Group_SetGroupCommander("Story_French_Squadron", "Remy Gatien");
Group_SetAddress("Story_French_Squadron", "Oxbay", "Quest_Ships","Quest_Ship_7");
// KK -->
if (!CheckQuestAttribute("StartAdventure", "begin")) {
//Ïåðåìåùåíèå Ðåéìñà â ðåçèäåíöèþ ãóáåðíàòîðà
ChangeCharacterAddress(characterFromID("Raoul Rheims"), "Redmond_residence", "goto1");
//Çàâåäåíèå êâåñòà íà âñòðå÷ó ñ Ðåéìñîì â ðåçèäåíöèè ãóáåðíàòîðà è óõîä Ðåéìñà
Pchar.quest.Story_First_Meeting_with_Rheims.win_condition.l1 = "location";
Pchar.quest.Story_First_Meeting_with_Rheims.win_condition.l1.location = "redmond_residence";
Pchar.quest.Story_First_Meeting_with_Rheims.win_condition = "Story_First_Meeting_with_Rheims";
//çàâåäåíèå êâåñòà íà äèàëîã ñî ñòðàæíèêîì
if(GetServedNation() == ENGLAND || GetServedNation() == PERSONAL_NATION)
{
pchar.quest.first_time_to_redmond_townhall.win_condition.l1 = "locator";
pchar.quest.first_time_to_redmond_townhall.win_condition.l1.location = "Redmond_town_01";
pchar.quest.first_time_to_redmond_townhall.win_condition.l1.locator_group = "goto";
pchar.quest.first_time_to_redmond_townhall.win_condition.l1.locator = "goto10";
pchar.quest.first_time_to_redmond_townhall.win_condition = "first_time_to_redmond_townhall_complete";
}
Locations[FindLocation("Redmond_town_01")].locators_radius.goto.goto10 = 2.0;
DeleteQuestHeader("Tutorial_SpyGlass");
DeleteQuestHeader("Tutorial_Store");
DeleteQuestHeader("Tutorial_Shipyard");
DeleteQuestHeader("Tutorial_Tavern");
Pchar.quest.Tut_SellGoods.over = "yes";
Pchar.quest.Tut_RepairShip.over = "yes";
Pchar.quest.Tut_HireCrew.over = "yes";
// TIH --> alternative methods for completion finished Sep3'06
Pchar.quest.Tut_BuySpyGlass.over = "yes";
Pchar.quest.Tut_BuySpyGlass3.over = "yes";
Pchar.quest.Tut_BuySpyGlass4.over = "yes";
// TIH <--
DeleteAttribute(Pchar, "quest.tutorial.Spyglass");
//KK & TIH -->
SetQuestHeader("Story_OxbayCaptured");
if (ENABLE_FLAGS == 0) {
// do the original code, original quest text only
AddQuestRecord("Story_OxbayCaptured", 2);
PostVideoAndQuest("Invasion",500,"Story_MapLoadAfterleavingOxbay");
bSkipSeaLogin = true;
} else {
// do enhanced flag deception and sailing method
AddQuestRecord("Story_OxbayCaptured", 1);
Pchar.quest.Story_InvasionVideoAfterLeaveOxbay.win_condition.l1 = "MapEnter";
Pchar.quest.Story_InvasionVideoAfterLeaveOxbay.win_condition = "Story_InvasionVideoAfterLeaveOxbay";
}
//KK & TIH <--
Locations[FindLocation("Oxbay_town")].reload.l2.disable = false;
Locations[FindLocation("Oxbay_town")].reload.l55.disable = false;
}
// <-- KK
break;