public static void DoCube1Space() { // DISABLE MOUSE HOOKS TO PREVENT LAG HardwareListener.UnregisterMouseHooks(); Coord cubeFill = coords["cube_fill"]; Coord cubeTransute = coords["cube_transmute"]; Position cubeLeft = SwitchPagesLeft; Position cubeRight = SwitchPagesRight; InventoryIterator inventory = Player.Player.Inventory.Get1SlotIterator(); while (inventory.HasNext) { Position p = inventory.GetNext(); HardwareRobot.DoRightClick(p); Sleep(0); HardwareRobot.DoLeftClick(cubeFill); Sleep(0); HardwareRobot.DoLeftClick(cubeTransute); Sleep(70); HardwareRobot.DoLeftClick(cubeRight); Sleep(0); HardwareRobot.DoLeftClick(cubeLeft); Sleep(0); } // RE-ENABLE MOUSE HOOKS HardwareListener.RegisterMouseHooks(); }
public static void ReforgeItem() { // DISABLE MOUSE HOOKS TO PREVENT LAG HardwareListener.UnregisterMouseHooks(); Coord cubeFill = coords["cube_fill"]; Coord cubeTransute = coords["cube_transmute"]; Position cubeLeft = SwitchPagesLeft; Position cubeRight = SwitchPagesRight; InventoryIterator inventory = Player.Player.Inventory.Get1SlotIterator(); Position p = inventory.GetNext(); HardwareRobot.DoRightClick(p.x, p.y); Sleep(0); HardwareRobot.DoLeftClick(cubeFill); Sleep(0); HardwareRobot.DoLeftClick(cubeTransute); Sleep(40); HardwareRobot.DoLeftClick(cubeRight); Sleep(0); HardwareRobot.DoLeftClick(cubeLeft); Sleep(0); HardwareRobot.MovePhysicalCursor(p); // RE-ENABLE MOUSE HOOKS HardwareListener.RegisterMouseHooks(); }
public static void MoveInventory() { // DISABLE MOUSE HOOKS TO PREVENT LAG HardwareListener.UnregisterMouseHooks(); InventoryIterator inventory = Player.Player.Inventory.Get1SlotIterator(); while (inventory.HasNext) { Position p = inventory.GetNext(); HardwareRobot.DoRightClick(p); } // RE-ENABLE MOUSE HOOKS HardwareListener.RegisterMouseHooks(); }
public static void ClearInv2Space() { SaveCursor(); HardwareListener.UnregisterMouseHooks(); HardwareRobot.DoLeftClick(coords["smith_salvage"]); InventoryIterator inventory = Player.Player.Inventory.Get2SlotIterator(); while (inventory.HasNext) { Position p = inventory.GetNext(); HardwareRobot.MovePhysicalCursor(p); HardwareRobot.DoLeftClick(p, HardwareRobot.ActionTypes.PHYSICAL); SendKeys.SendWait("{ENTER}"); SendKeys.SendWait("{ENTER}"); } HardwareListener.RegisterMouseHooks(); RecoverCursor(); }
public static void DropItems() { // DISABLE MOUSE HOOKS TO PREVENT LAG HardwareListener.UnregisterMouseHooks(); Coord Drop = coords["drop_item"]; InventoryIterator inventory = Player.Player.Inventory.Get1SlotIterator(); SendKeys.SendWait("i"); while (inventory.HasNext) { Position p = inventory.GetNext(); HardwareRobot.MovePhysicalCursor(p); HardwareRobot.DoLeftDown(p.x, p.y, HardwareRobot.ActionTypes.PHYSICAL); HardwareRobot.MovePhysicalCursor(Drop); Sleep(-20); HardwareRobot.DoLeftUp(Drop.RealX, Drop.RealY, HardwareRobot.ActionTypes.PHYSICAL); } SendKeys.SendWait("i"); // RE-ENABLE MOUSE HOOKS HardwareListener.RegisterMouseHooks(); }