• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Malediction of the Blackpearl

jean

Master Mariner
Storm Modder
Hello everybody, I got the idea to code the "malédiction", like this, with the Blackpearl you get normal crew at night and skeleton at day. You've just to open LAi_Boarding.c and add these files:

ref mchr = GetMainCharacter();
int mclass = GetCharacterShipClass(mchr);
int mcrew = GetCrewQuantity(mchr);
//===============>>==
bool bGenQuest.CrewSkelMode = false;//<<==Si bloqué marche pas, toujours squelettes
int st = GetCharacterShipType(mchr);
int iShipType = sti(RealShips[st].basetype);
if(ShipsTypes[iShipType].name == "Blackpearl")
{
if(GetTime() > 6.0 && GetTime() < 23.99)
{
mchr.GenQuest.CrewSkelMode = true;
}
}
//===============<<==

// Saving enemy captain rank for future use in CalculateAppropriateSkills (Gray 12.02.2005)
mchr.EnemyRank = echr.rank

and this

if (i == 0 && CheckAttribute(&Locations[locIndex], "CabinType"))
{
//==================>>=========
DeleteAttribute(mchr, "GenQuest.CrewSkelMode");
//==================<<=========
ChangeAttributesFromCharacter(chr, boarding_enemy, true);

Caution: I get an error.log cause the line : bool bGenQuest.CrewSkelMode = false; but if I delete it it doesn't work, I get skeleton even if character change ship. With this line game works fine.
 
Back
Top