sld = GetCharacter(NPC_GenerateCharacter("Mary", "Mary", "woman", "mary", 1, PIRATE, -1, false, "quest"));
sld.name = "Mary";
sld.lastname = "Casper";
sld.Dialog.Filename = "Quest\LSC\Mary.c";
sld.dialog.currentnode = "First time";
sld.greeting = ""; // установим по нужным местам
sld.SaveItemsForDead = true;
sld.DontClearDead = true;
sld.rank = 35;
SetShipSkill(sld, 70+rand(20), 70+rand(20), 70+rand(20), 70+rand(20), 70+rand(20), 70+rand(20), 70+rand(20), 70+rand(20), 100);
SetSelfSkill(sld, 70+rand(20), 70+rand(20), 100, 100, 100);
SetSPECIAL(sld, 10, 10, 10, 10, 10, 10, 10);
LAi_SetHP(sld, 450.0, 450.0);
SetCharacterPerk(sld, "BasicDefense");
SetCharacterPerk(sld, "AdvancedDefense");
SetCharacterPerk(sld, "CriticalHit");
SetCharacterPerk(sld, "HPPlus");
SetCharacterPerk(sld, "Tireless");
SetCharacterPerk(sld, "EnergyPlus");
SetCharacterPerk(sld, "Sliding");
SetCharacterPerk(sld, "SwordplayProfessional");
SetCharacterPerk(sld, "HardHitter");
SetCharacterPerk(sld, "BladeDancer");
SetCharacterPerk(sld, "Gunman");
SetCharacterPerk(sld, "GunProfessional");
SetCharacterPerk(sld, "Grus");
SetCharacterPerk(sld, "ByWorker");
SetCharacterPerk(sld, "ByWorker2");
SetCharacterPerk(sld, "IronWill");
SetCharacterPerk(sld, "ShipEscape");
SetCharacterPerk(sld, "Medic");
SetCharacterPerk(sld, "Brander");
SetCharacterPerk(sld, "Troopers");
SetCharacterPerk(sld, "LongRangeGrappling");
SetCharacterPerk(sld, "GrapplingProfessional");
SetCharacterPerk(sld, "MusketsShoot");
SetCharacterPerk(sld, "BasicCommerce");
SetCharacterPerk(sld, "AdvancedCommerce");
SetCharacterPerk(sld, "ProfessionalCommerce");
SetCharacterPerk(sld, "FastReload");
SetCharacterPerk(sld, "ImmediateReload");
SetCharacterPerk(sld, "HullDamageUp");
SetCharacterPerk(sld, "SailsDamageUp");
SetCharacterPerk(sld, "CrewDamageUp");
SetCharacterPerk(sld, "CriticalShoot");
SetCharacterPerk(sld, "LongRangeShoot");
SetCharacterPerk(sld, "CannonProfessional");
SetCharacterPerk(sld, "Carpenter");
SetCharacterPerk(sld, "LightRepair");
SetCharacterPerk(sld, "Builder");
SetCharacterPerk(sld, "BasicBattleState");
SetCharacterPerk(sld, "AdvancedBattleState");
SetCharacterPerk(sld, "InstantRepair");
SetCharacterPerk(sld, "SelfRepair");
SetCharacterPerk(sld, "ShipDefenseProfessional");
SetCharacterPerk(sld, "ShipSpeedUp");
SetCharacterPerk(sld, "ShipTurnRateUp");
SetCharacterPerk(sld, "StormProfessional");
SetCharacterPerk(sld, "WindCatcher");
SetCharacterPerk(sld, "SailsMan");
SetCharacterPerk(sld, "Turn180");
SetCharacterPerk(sld, "SailingProfessional");
SetCharacterPerk(sld, "Doctor1");
SetCharacterPerk(sld, "Doctor2");
GiveItem2Character(sld, "blade_31");
EquipCharacterbyItem(sld, "blade_31");
AddItems(sld, "cartridge", 250);
AddItems(sld, "pistol5", 6);
AddItems(sld, "potion2", 100);
AddItems(sld, "cirass4", 1);
AddItems(sld, "Spyglass2", 1);
AddItems(sld, "talisman8", 1);
EquipCharacterbyItem(sld, "talisman8");
EquipCharacterbyItem(sld, "pistol5");
EquipCharacterbyItem(sld, "cirass4");
EquipCharacterbyItem(sld, "Spyglass2");
sld.location = "CeresSmithy";
sld.location.group = "barmen";
sld.location.locator = "stay";
LAi_SetOwnerType(sld);