Exemplo n.º 1
0
        /// <summary>
        /// Uses the item on the slot <paramref name="itemSlot"/>.
        /// </summary>
        ///
        /// <param name="itemSlot">Item slot number.</param>

        public static void UseItem(int itemSlot)
        {
            if (itemSlot > 0 && itemSlot < 8)
            {
                KeyEvents.SendKey(KeyEvents.KeyBoardScanCodes.KEY_1 + (short)itemSlot - 1);
            }
        }
Exemplo n.º 2
0
 public static void CastR()
 {
     KeyEvents.SendKey(KeyEvents.KeyBoardScanCodes.KEY_R);
 }