/// <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); } }
public static void CastR() { KeyEvents.SendKey(KeyEvents.KeyBoardScanCodes.KEY_R); }