Fixed leah follower

This commit is contained in:
Lucca Faria Ferri 2023-07-20 03:47:13 -07:00
parent 67f048375c
commit 3c851ddf1c
2 changed files with 66 additions and 1 deletions

View File

@ -272,6 +272,7 @@ namespace DiIiS_NA.GameServer.GSSystem.QuestSystem
NextStep = 49, NextStep = 49,
OnAdvance = () => OnAdvance = () =>
{ //go to gates { //go to gates
AddFollower(Game.GetWorld(WorldSno.trout_town), ActorSno._leah);
var world = Game.GetWorld(WorldSno.trout_town); var world = Game.GetWorld(WorldSno.trout_town);
StartConversation(world, 166678); StartConversation(world, 166678);
ListenProximity(ActorSno._trout_oldtristram_exit_gate, new Advance()); ListenProximity(ActorSno._trout_oldtristram_exit_gate, new Advance());
@ -416,12 +417,16 @@ namespace DiIiS_NA.GameServer.GSSystem.QuestSystem
Saveable = true, Saveable = true,
NextStep = 23, NextStep = 23,
OnAdvance = () => OnAdvance = () =>
{ //go to church {
//go to church
var world = Game.GetWorld(WorldSno.trout_town); var world = Game.GetWorld(WorldSno.trout_town);
ListenProximity(ActorSno._trdun_cath_cathedraldoorexterior, new Advance()); ListenProximity(ActorSno._trdun_cath_cathedraldoorexterior, new Advance());
var leah = world.GetActorBySNO(ActorSno._leah); var leah = world.GetActorBySNO(ActorSno._leah);
if (leah != null) if (leah != null)
{
leah.Hidden = false; leah.Hidden = false;
leah.SetVisible(true);
}
SetActorVisible(world, ActorSno._tristram_mayor, false); SetActorVisible(world, ActorSno._tristram_mayor, false);
var cart = world.GetActorBySNO(ActorSno._trout_newtristram_blocking_cart, true); var cart = world.GetActorBySNO(ActorSno._trout_newtristram_blocking_cart, true);
if (cart != null) if (cart != null)
@ -489,6 +494,7 @@ namespace DiIiS_NA.GameServer.GSSystem.QuestSystem
OnAdvance = () => OnAdvance = () =>
{ //go with Cain { //go with Cain
Game.CurrentEncounter.Activated = false; Game.CurrentEncounter.Activated = false;
StartConversation(Game.GetWorld(WorldSno.trdun_cain_intro), 72496); StartConversation(Game.GetWorld(WorldSno.trdun_cain_intro), 72496);
ListenTeleport(19938, new Advance()); ListenTeleport(19938, new Advance());
} }
@ -511,6 +517,8 @@ namespace DiIiS_NA.GameServer.GSSystem.QuestSystem
StartConversation(tristramWorld, 72498); StartConversation(tristramWorld, 72498);
}); });
//StartConversation(this.Game.GetWorld(71150), 72496); //StartConversation(this.Game.GetWorld(71150), 72496);
DestroyFollower(ActorSno._leah);
var leah = tristramWorld.GetActorBySNO(ActorSno._leah, true); var leah = tristramWorld.GetActorBySNO(ActorSno._leah, true);
if (leah == null) if (leah == null)
{ {

View File

@ -159,6 +159,63 @@ public class GameModsConfig
{ {
#pragma warning disable CS0618 #pragma warning disable CS0618
Rate =
{
Experience = migration.RateExp,
Gold = migration.RateMoney,
ChangeDrop = migration.RateChangeDrop,
Drop = migration.RateDrop
},
Health =
{
ResurrectionCharges = migration.ResurrectionCharges,
PotionCooldown = migration.HealthPotionCooldown,
PotionRestorePercentage = migration.HealthPotionRestorePercentage
},
Monster =
{
HealthMultiplier = migration.RateMonsterHP,
DamageMultiplier = migration.RateMonsterDMG
},
Boss =
{
HealthMultiplier = migration.BossHealthMultiplier,
DamageMultiplier = migration.BossDamageMultiplier
},
Quest =
{
AutoSave = migration.AutoSaveQuests,
UnlockAllWaypoints = migration.UnlockAllWaypoints
},
Player =
{
Multipliers =
{
Strength = new(migration.StrengthMultiplier, migration.StrengthParagonMultiplier),
Dexterity = new(migration.DexterityMultiplier, migration.DexterityParagonMultiplier),
Intelligence = new(migration.IntelligenceMultiplier, migration.IntelligenceParagonMultiplier),
Vitality = new(migration.VitalityMultiplier, migration.VitalityParagonMultiplier)
}
},
Items =
{
UnidentifiedDropChances =
{
HighQuality = migration.ChanceHighQualityUnidentified,
NormalQuality = migration.ChanceNormalUnidentified
}
},
Minimap =
{
ForceVisibility = migration.ForceMinimapVisibility
},
NephalemRift =
{
AutoFinish = migration.NephalemRiftAutoFinish,
AutoFinishThreshold = migration.NephalemRiftAutoFinishThreshold,
OrbsChance = migration.NephalemRiftAutoFinishThreshold,
ProgressMultiplier = migration.NephalemRiftProgressMultiplier
}
#pragma warning restore CS0618 #pragma warning restore CS0618
}; };
File.WriteAllText("config.mods.json", content.ToJson()); File.WriteAllText("config.mods.json", content.ToJson());