public override void SendKeepRemove(IGameKeep keep) { using (GSTCPPacketOut pak = new GSTCPPacketOut(GetPacketCode(eServerPackets.KeepRemove))) { pak.WriteShort((ushort)keep.KeepID); SendTCP(pak); } }
public override void SendKeepRealmUpdate(IGameKeep keep) { using (GSTCPPacketOut pak = new GSTCPPacketOut(GetPacketCode(eServerPackets.KeepRealmUpdate))) { pak.WriteShort((ushort)keep.KeepID); pak.WriteByte((byte)keep.Realm); pak.WriteByte((byte)keep.Level); SendTCP(pak); } }
public override void SendKeepInfo(IGameKeep keep) { using (GSTCPPacketOut pak = new GSTCPPacketOut(GetPacketCode(eServerPackets.KeepInfo))) { pak.WriteShort((ushort)keep.KeepID); pak.WriteShort(0);//zone id not sure pak.WriteInt((uint)keep.X); pak.WriteInt((uint)keep.Y); pak.WriteShort((ushort)keep.Heading); pak.WriteByte((byte)keep.Realm); pak.WriteByte((byte)keep.Level);//level(not sure) pak.WriteShort(0);//unk pak.WriteByte(0x57);//model= 5-8Bit =lvl 1-4bit = Keep Type //uncertain pak.WriteByte(0xB7);//unk SendTCP(pak); } }
public override void SendKeepClaim(IGameKeep keep, byte flag) { if (m_gameClient.Player == null || keep == null) return; using (GSTCPPacketOut pak = new GSTCPPacketOut(GetPacketCode(eServerPackets.KeepClaim))) { pak.WriteShort((ushort)keep.KeepID); pak.WriteByte(flag);//0-Info,1-KeepTargetLevel,2-KeepLordType,4-Release pak.WriteByte((byte)1); //Keep Lord Type: always melee, type is no longer used pak.WriteByte((byte)ServerProperties.Properties.MAX_KEEP_LEVEL); pak.WriteByte((byte)keep.Level); SendTCP(pak); } }
public override void SendKeepComponentUpdate(IGameKeep keep, bool LevelUp) { using (GSTCPPacketOut pak = new GSTCPPacketOut(GetPacketCode(eServerPackets.KeepComponentUpdate))) { pak.WriteShort((ushort)keep.KeepID); pak.WriteByte((byte)keep.Realm); pak.WriteByte((byte)keep.Level); pak.WriteByte((byte)keep.SentKeepComponents.Count); foreach (IGameKeepComponent component in keep.SentKeepComponents) { byte m_flag = (byte)component.Height; if (component.Status == 0 && component.Climbing) m_flag |= 0x80; if (component.IsRaized) // Only for towers m_flag |= 0x10; if (LevelUp) m_flag |= 0x20; if (!component.IsAlive) m_flag |= 0x40; pak.WriteByte(m_flag); } pak.WriteByte((byte)0);//unk SendTCP(pak); } }
public virtual void SendKeepComponentUpdate(IGameKeep keep, bool LevelUp) { }
public virtual void SendKeepClaim(IGameKeep keep, byte flag) { }
public virtual void SendKeepRemove(IGameKeep keep) { }
public void SendKeepRealmUpdate(IGameKeep keep) { if (SendKeepRealmUpdateMethod != null) SendKeepRealmUpdateMethod(this, keep); }
public void SendKeepComponentUpdate(IGameKeep keep, bool levelup) { }
public void SendKeepRemove(IGameKeep keep) { }
public void SendKeepInfo(IGameKeep keep) { }
public void SendKeepComponentUpdate(IGameKeep keep, bool LevelUp) { if (SendKeepComponentUpdateMethod != null) SendKeepComponentUpdateMethod(this, keep, LevelUp); }
public void SendKeepClaim(IGameKeep keep, byte flag) { if (SendKeepClaimMethod != null) SendKeepClaimMethod(this, keep, flag); }
public void SendKeepRemove(IGameKeep keep) { if (SendKeepRemoveMethod != null) SendKeepRemoveMethod(this, keep); }
public virtual void SendKeepInfo(IGameKeep keep) { }
public virtual void SendKeepRealmUpdate(IGameKeep keep) { }
/// <summary> /// Default Keep Model changed for 1.1115 /// </summary> /// <param name="keep"></param> public override void SendKeepInfo(IGameKeep keep) { if (m_gameClient.Player == null) return; using (GSTCPPacketOut pak = new GSTCPPacketOut(GetPacketCode(eServerPackets.KeepInfo))) { pak.WriteShort((ushort)keep.KeepID); pak.WriteShort(0); pak.WriteInt((uint)keep.X); pak.WriteInt((uint)keep.Y); pak.WriteShort((ushort)keep.Heading); pak.WriteByte((byte)keep.Realm); pak.WriteByte((byte)keep.Level);//level pak.WriteShort(0);//unk pak.WriteByte(0xF7);//model pak.WriteByte(0);//unk SendTCP(pak); } }
public void SendKeepInfo(IGameKeep keep) { if (SendKeepInfoMethod != null) SendKeepInfoMethod(this, keep); }