Exemplo n.º 1
0
 private void OnRecordCreated(ItemRecord record)
 {
     if (!this.IsCharter || record.IsNew)
     {
         return;
     }
     PetitionRecord.LoadRecord(record.OwnerId);
 }
Exemplo n.º 2
0
 private void OnRecordCreated(ItemRecord record)
 {
     if (IsCharter)
     {
         if (!record.IsNew)
         {
             // this is executed in the IO-context
             PetitionRecord.LoadRecord(record.OwnerId);
         }
     }
 }
Exemplo n.º 3
0
		protected override void OnLoad()
		{
			_Petition = RealmWorldDBMgr.DatabaseProvider.FindOne<PetitionRecord>(x => x.OwnerId == Owner.EntityId.Low);
		}
Exemplo n.º 4
0
		public static void SendPetitionDecline(IPacketReceiver client, Character chr, PetitionRecord record)
		{
			using (var packet = new RealmPacketOut(RealmServerOpCode.MSG_PETITION_DECLINE, 8))
			{
                var character = World.GetCharacter(record.OwnerId);
                if(character != null)
                {
				    packet.WriteULong(chr.EntityId.Full);

				    character.Client.Send(packet);
                }
			}
		}
Exemplo n.º 5
0
 protected override void OnLoad()
 {
     m_Petition = PetitionRecord.Find((int)Owner.EntityId.Low);
 }
Exemplo n.º 6
0
 protected override void OnLoad()
 {
     this.m_Petition = ActiveRecordBase <PetitionRecord> .Find((object)(int)this.Owner.EntityId.Low);
 }
Exemplo n.º 7
0
		private void OnRecordCreated(ItemRecord record)
		{
			if (IsCharter)
			{
				PetitionRecord charter;
				if (!record.IsNew)
				{
					// this is executed in the IO-context
					charter = PetitionRecord.LoadRecord(record.EntityLowId);
				}
				else
				{
					charter = new PetitionRecord((uint)record.OwnerId, record.EntityLowId);
				}
			}
		}
Exemplo n.º 8
0
 protected override void OnLoad()
 {
     m_Petition = ActiveRecordBase <PetitionRecord> .Find((int)Owner.EntityId.Low);
 }
Exemplo n.º 9
0
		public static void SendPetitionDecline(IPacketReceiver client, PetitionRecord record)
		{
			using (var packet = new RealmPacketOut(RealmServerOpCode.MSG_PETITION_DECLINE))
			{
                
				// TODO
				client.Send(packet);
			}
		}