Merge pull request #63 from Crypto137/master

Act 2 progression workaround and resurrect at corpse tweak
This commit is contained in:
pr701 2023-01-15 15:19:20 +03:00 committed by GitHub
commit 602f8bfb74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -33,6 +33,7 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem.Implementations
});
player.CheckPointPosition = this.Position;
player.Attributes[GameAttribute.Corpse_Resurrection_Charges] = 3; // Reset corpse resurrection charges
}
}

View File

@ -1336,6 +1336,8 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem
this.Attributes[GameAttribute.Hitpoints_Cur] = this.Attributes[GameAttribute.Hitpoints_Max_Total];
this.Attributes[GameAttribute.Corpse_Resurrection_Charges] = 3;
//TestOutPutItemAttributes(); //Activate this only for finding item stats.
this.Attributes.BroadcastChangedIfRevealed();
@ -2462,8 +2464,6 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem
}
}
this.Attributes[GameAttribute.Corpse_Resurrection_Charges] = 3; // Reset resurrection charges on zone change (TODO: do not reset charges on reentering the same zone)
#if DEBUG
Logger.Warn("Местоположение игрока {0}, Scene: {1} SNO: {2} LevelArea: {3}", this.Toon.Name, this.CurrentScene.SceneSNO.Name, this.CurrentScene.SceneSNO.Id, this.CurrentScene.Specification.SNOLevelAreas[0]);
#else
@ -5958,7 +5958,7 @@ namespace DiIiS_NA.GameServer.GSSystem.PlayerSystem
minion.SetVisible(true);
minion.Hidden = false;
if (minion.ActorSNO.Id == 4580)
if (minion.ActorSNO.Id == 4580) // Act I Leah
{
(minion.Brain as MinionBrain).PresetPowers.Clear();
(minion.Brain as MinionBrain).AddPresetPower(30599);

View File

@ -133,7 +133,8 @@ namespace DiIiS_NA.GameServer.GSSystem.QuestSystem
//ListenProximity(85843, new SpawnCultists());
script = new SpawnCultists();
script.Execute(this.Game.GetWorld(70885));
ListenKill(6027, 7, new Advance());
//ListenKill(6027, 7, new Advance());
ListenProximity(85843, new Advance()); // HACK: Skip ambush
})
});