function LoadCoordinates() { #define TargetLock 957,45 /*Location on screen, where the Target icon is (topright) */ #define TargetDock 1044,88 /*Location on screen of Dock button on the overview*/ #define CargoHoldItem1 96,227 /*Location on screen of First Item in Cargo Hold */ #define CargoHoldPixel11 1c2c44 /*Pixel of the cargo bay background for item1's x/y*/ #define CargoHoldPixel12 1b1713 /*Alternate pixel for above*/ #define CargoHoldItem2 175,227 /*Location on screen of Second Item in Cargo Hold */ #define CargoHoldPixel21 191511 /*Same as Pixel1, but for Item2*/ #define CargoHoldPixel22 172332 /*Alternate pixel for above*/ #define CargoHoldItem3 251,227 /*Location on screen of Third Item in Cargo Hold */ #define CargoHoldPixel31 1e304a /*Same as Pixel1, but for Item3*/ #define CargoHoldPixel32 181410 /*Alternate pixel for above*/ /* The reason for the two possible pixels per item x/y is that I encountered a bug, where at the same location, I was getting two alternating color readings, so I coded them both in, in case I'm not the only one having that bug. If you don't get multiple readings, set them both to the same thing. */ #define MenuXY 53,46 /*At the top left, it says Current Location: [> V a y or something like that. I need the x/y of that arrow to the left of your system. */ #define UseBookmark 1 /*Whether or not to use the bookmark instead of the first 'roid belt. 0 for no, 1 for yes. */ #define BookmarkEntryXY 142,154 /*The entry for your mining bookmark. "SPOT IN VAY SOLAR SYSTEM" X and Y are separate.*/ #define BookmarkWarpXY 320,154 /*The actual "Warp to 0m" button for the bookmark*/ #define HangarDrop 473,672 /*Location on screen To Drop Items in Hanger*/ #define BookmarkX -46437466628.7 /*Actual space X of the bookmark loc*/ #define BookmarkY 2759025494.91 /*Actual space Y of the bookmark loc*/ #define BookmarkZ 45394472174.2 /*Actual space Z of the bookmark loc*/ ;------------------------------------------------------------; ;If you Right Click HangerDrop location and choose Stack All ; ;That is the location entered below ; ;------------------------------------------------------------; #define StackAll 524,730 /* Right Click HangerDrop location and choose Stack All */ #define NumberLasers 2 /*Set how many lasers you have here. One = 1, Three = 3, so on*/ /*Keep your lasers in order, ex from slots 1-5 laser and 6 gun, or 1-3 laser and 4 gun. Otherwise shit will break.*/ } function BookmarkWarp() { Mouse:SetPosition[MenuXY] wait 10 Mouse:LeftClick wait 10 Mouse:SetPosition[BookmarkEntryXY] wait 10 Mouse:SetPosition[BookmarkWarpXY] wait 10 Mouse:LeftClick } function DragToHangar() { while !${Display.GetPixel[CargoHoldItem1].Hex.Equal[CargoHoldPixel11]} && !${Display.GetPixel[CargoHoldItem1].Hex.Equal[CargoHoldPixel12]} && !${Checked1} { Mouse:SetPosition[CargoHoldItem1] wait 10 Mouse:HoldLeft wait 5 Mouse:SetPosition[HangarDrop] wait 5 Mouse:ReleaseLeft } While !${Display.GetPixel[CargoHoldItem2].Hex.Equal[CargoHoldPixel21]} && !${Display.GetPixel[CargoHoldItem2].Hex.Equal[CargoHoldPixel22]} && !${Checked2} { Mouse:SetPosition[CargoHoldItem2] wait 10 Mouse:HoldLeft wait 5 Mouse:SetPosition[HangarDrop] wait 5 Mouse:ReleaseLeft } While !${Display.GetPixel[CargoHoldItem3].Hex.Equal[CargoHoldPixel31]} && !${Display.GetPixel[CargoHoldItem3].Hex.Equal[CargoHoldPixel32]} && !${Checked3} { Mouse:SetPosition[CargoHoldItem3] wait 10 Mouse:HoldLeft wait 5 Mouse:SetPosition[HangarDrop] wait 5 Mouse:ReleaseLeft } } function StackAll() { Mouse:SetPosition[HangarDrop] wait 5 Mouse:RightClick wait 5 Mouse:SetPosition[StackAll] wait 5 Mouse:LeftClick } function MineRoid(int ID) { echo "MineRoid" Entity[ID,${ID}]:Orbit Entity[ID,${ID}]:LockTarget wait 50 call ActivateLasers wait 1800 ${Entity[Serpentis].IsTargetingMe} if ${Entity[Serpentis].IsTargetingMe} { WasTargeted:Set[TRUE] } Entity[ID,${ID}]:UnlockTarget } function ActivateLasers() { variable bool LasersOn if NumberLasers == 1 && !${LasersOn} { EVE:Execute[CmdActivateHighPowerSlot1] } if NumberLasers == 2 && !${LasersOn} { EVE:Execute[CmdActivateHighPowerSlot1] EVE:Execute[CmdActivateHighPowerSlot2] LasersOn:Set[TRUE] } if NumberLasers == 3 { EVE:Execute[CmdActivateHighPowerSlot1] EVE:Execute[CmdActivateHighPowerSlot2] EVE:Execute[CmdActivateHighPowerSlot3] } if NumberLasers == 4 { EVE:Execute[CmdActivateHighPowerSlot1] EVE:Execute[CmdActivateHighPowerSlot2] EVE:Execute[CmdActivateHighPowerSlot3] EVE:Execute[CmdActivateHighPowerSlot4] } if NumberLasers == 5 { EVE:Execute[CmdActivateHighPowerSlot1] EVE:Execute[CmdActivateHighPowerSlot2] EVE:Execute[CmdActivateHighPowerSlot3] EVE:Execute[CmdActivateHighPowerSlot4] EVE:Execute[CmdActivateHighPowerSlot5] } if NumberLasers == 6 { EVE:Execute[CmdActivateHighPowerSlot1] EVE:Execute[CmdActivateHighPowerSlot2] EVE:Execute[CmdActivateHighPowerSlot3] EVE:Execute[CmdActivateHighPowerSlot4] EVE:Execute[CmdActivateHighPowerSlot5] EVE:Execute[CmdActivateHighPowerSlot6] } if NumberLasers == 7 { EVE:Execute[CmdActivateHighPowerSlot1] EVE:Execute[CmdActivateHighPowerSlot2] EVE:Execute[CmdActivateHighPowerSlot3] EVE:Execute[CmdActivateHighPowerSlot4] EVE:Execute[CmdActivateHighPowerSlot5] EVE:Execute[CmdActivateHighPowerSlot6] EVE:Execute[CmdActivateHighPowerSlot7] } if NumberLasers == 8 { EVE:Execute[CmdActivateHighPowerSlot1] EVE:Execute[CmdActivateHighPowerSlot2] EVE:Execute[CmdActivateHighPowerSlot3] EVE:Execute[CmdActivateHighPowerSlot4] EVE:Execute[CmdActivateHighPowerSlot5] EVE:Execute[CmdActivateHighPowerSlot6] EVE:Execute[CmdActivateHighPowerSlot7] EVE:Execute[CmdActivateHighPowerSlot8] } }