void HandleDeclinePetition(DeclinePetition packet) { PreparedStatement stmt = DB.Characters.GetPreparedStatement(CharStatements.SEL_PETITION_OWNER_BY_GUID); stmt.AddValue(0, packet.PetitionGUID.GetCounter()); SQLResult result = DB.Characters.Query(stmt); if (result.IsEmpty()) { return; } ObjectGuid ownerguid = ObjectGuid.Create(HighGuid.Player, result.Read <ulong>(0)); Player owner = Global.ObjAccessor.FindPlayer(ownerguid); if (owner) // petition owner online { // Disabled because packet isn't handled by the client in any way /* * WorldPacket data = new WorldPacket(ServerOpcodes.PetitionDecline); * data.WritePackedGuid(GetPlayer().GetGUID()); * owner.SendPacket(data); */ } }
void HandleDeclinePetition(DeclinePetition packet) { // Disabled because packet isn't handled by the client in any way /* * Petition petition = sPetitionMgr.GetPetition(packet.PetitionGUID); * if (petition == null) * return; * * // petition owner online * Player owner = Global.ObjAccessor.FindConnectedPlayer(petition.ownerGuid); * if (owner != null) // petition owner online * { * PetitionDeclined packet = new PetitionDeclined(); * packet.Decliner = _player.GetGUID(); * owner.GetSession().SendPacket(packet); * } */ }