// 0x06 Packets ========================================= public void OnGetHateInfo(SagaMap.Packets.Client.GetHateInfo p) { ActorNPC actor = (ActorNPC)map.GetActor(p.GetActorID()); if (actor == null) { return; } if (actor.npcType < 10000) { return; } Mob mob = (Mob)actor.e; if (this.state != SESSION_STATE.MAP_LOADED) { return; } Packets.Server.SendHateInfo sendPacket = new SagaMap.Packets.Server.SendHateInfo(); sendPacket.SetActor(p.GetActorID()); if (mob.Hate.ContainsKey(this.Char.id)) { sendPacket.SetHateInfo(mob.Hate[this.Char.id]); // 0 hate = No reason to attack, client stops attacking. } else { sendPacket.SetHateInfo(0); // 0 hate = No reason to attack, client stops attacking. } this.netIO.SendPacket(sendPacket, this.SessionID); }
// 0x06 Packets ========================================= public void OnGetHateInfo(SagaMap.Packets.Client.GetHateInfo p) { ActorNPC actor = (ActorNPC)map.GetActor(p.GetActorID()); if (actor == null) return; if (actor.npcType < 10000) return; Mob mob = (Mob)actor.e; if (this.state != SESSION_STATE.MAP_LOADED) return; Packets.Server.SendHateInfo sendPacket = new SagaMap.Packets.Server.SendHateInfo(); sendPacket.SetActor(p.GetActorID()); if (mob.Hate.ContainsKey(this.Char.id)) { sendPacket.SetHateInfo(mob.Hate[this.Char.id]); // 0 hate = No reason to attack, client stops attacking. } else { sendPacket.SetHateInfo(0); // 0 hate = No reason to attack, client stops attacking. } this.netIO.SendPacket(sendPacket, this.SessionID); }