Hello my friends…
Recently I was able to install and start editing the A-BOT codes to fit it to my type of ratting.
Small adjustments need to be made but unfortunately I am not aware of programming for this.
If someone here who understands programming can help me I appreciate it a lot because there are little things that BOT can do to work the way I expect.
Are they…
-
It identifies the object in the overview and begins to orbit
-
I want to change the option to open the menu by a simple shortcut key (W), it clicks on the object and uses the key (W), making the command more efficient.
var Broken = memoryMeasurement?.WindowOverview?.FirstOrDefault()?.ListView?.Entry ?.Where(entry => entry?.Name?.RegexMatchSuccessIgnoreCase("Broken") ?? false) ?.OrderBy(entry => entry?.DistanceMax ?? int.MaxValue) ?.ToArray();
-
Here it checks the velocity, and when it is below 100m / s it commands orbits said object.
if (speedMilli < 100000) yield return Broken.FirstOrDefault().ClickMenuEntryByRegexPattern(bot, "Orbit", "20 km");
Another function that is not performing well is to identify an ally and move on to the next anomaly.
-
It identifies the ally, and opens and closes the anomaly window (updating the list), but does not perform the function of ignoring it and moving on to the next one.
-
The codes are …
-
combat.cs
if (listOverviewEntryToAttack.Count() > 0) { var listOverviewEntryFriends = memoryMeasurement?.WindowOverview?.FirstOrDefault()?.ListView?.Entry ?.Where(entry => entry?.ListBackgroundColor?.Any(IsFriendBackgroundColor) ?? false) ?.ToArray(); if (bot?.OwnAnomaly != true) { if (listOverviewEntryFriends.Length > 0) { yield return bot.SkipAnomaly(memoryMeasurement); yield return new AnomalyEnter { bot = bot }; } else { bot?.SetOwnAnomaly(true); } } }
-
module.cs
public class SkipAnomalyF : IBotTask { public Sanderling.Parse.IMemoryMeasurement MemoryMeasurement; public IEnumerable<IBotTask> Component => null; public static bool ActuallyAnomaly(Interface.MemoryStruct.IListEntry scanResult) => scanResult?.CellValueFromColumnHeader("Distance")?.RegexMatchSuccessIgnoreCase("km") ?? false; public static bool AnomalySuitableGeneral(Interface.MemoryStruct.IListEntry scanResult) => scanResult?.CellValueFromColumnHeader("Group")?.RegexMatchSuccessIgnoreCase("combat") ?? false; public IEnumerable<MotionParam> Effects { get { var pKey = VirtualKeyCode.VK_A; yield return pKey.KeyDown(); yield return pKey.KeyUp(); yield return pKey.KeyDown(); yield return pKey.KeyUp(); var probeScannerWindow = MemoryMeasurement?.WindowProbeScanner?.FirstOrDefault(); var scanActuallyAnomaly = probeScannerWindow?.ScanResultView?.Entry?.FirstOrDefault(ActuallyAnomaly); if (null != scanActuallyAnomaly) { var menuResult = MemoryMeasurement?.Menu?.ToList(); if (null == menuResult) { yield return scanActuallyAnomaly.MouseClick(MouseButtonIdEnum.Right); } else { menuResult = MemoryMeasurement?.Menu?.ToList(); var menuResultToUse = menuResult[0].Entry?.ToList(); //if (menuResultToUse[2].Text == "Ignore Result") if (menuResultToUse[2].Text == "Warp to Withing|Ignore Result") { yield return menuResultToUse[2].MouseClick(MouseButtonIdEnum.Left); } } } } } }
Could someone please review these codes and help me make these changes?
There are only these steps to make A-BOT work properly for me.
Thank you everyone’s attention, and I’m sorry to bother you one more time.