/// <summary> /// Change the Current Attack Mode. /// </summary> public void SetMode(AttackMode mode) { Memory.Writer.Uint(Memory.Addresses.Client.AttackMode, Convert.ToUInt32(mode.Type.GetHashCode()), 1); Memory.Writer.Uint(Memory.Addresses.Client.FollowMode, Convert.ToUInt32(mode.Follow.GetHashCode()), 1); PacketBuilder Builder = new PacketBuilder(0xA0, connection); Builder.Append(mode.Type.GetHashCode()); //[01 = OFFENSIVE | 02 = BALANCED | 03 = DEFENSIVE] Builder.Append(mode.Follow.GetHashCode()); //[00 = STAND| 01 = CHASE] if (mode.AttackUnmarkedPlayers) { Builder.Append(0x00); } else { Builder.Append(0x01); } Connection.Send(Builder.GetPacket()); }
/// <summary> /// Change the Current Attack Mode. /// </summary> public void SetAttackMode(AttackMode Mode) { Actions.Attack.SetMode(Mode); }