protected override void OnTargetComplete() { base.OnTargetComplete(); //pop npc spawns on the target center SpawnNpcOnSuccess(_presenceManager, MyTarget.targetPosition); if (MyTarget.ValidPresenceSet) { //handles static presence, technically spawns a presence if set // ------------------------------------- // this is the oldschool way - legacy // ------------------------------------- Task.Run(() => { try { // itt rakunk ki npcket var presence = Zone.AddDynamicPresenceToPosition(MyTarget.NpcPresenceId, successEventInfo.Position); foreach (var npc in presence.Flocks.GetMembers()) { npc.Tag(Player, TimeSpan.FromHours(1));//mission presence-ben hosszu idore vannak taggelve npc.AddDirectThreat(Player, 40 + FastRandom.NextDouble(0.0, 3.0)); } Zone.CreateBeam(BeamType.teleport_storm, builder => builder.WithPosition(successEventInfo.Position).WithDuration(100000)); } catch (Exception ex) { Logger.Error("error occured handling fix presence in " + this); Logger.Exception(ex); } }); } }