var EnemieHeros = EnemieHeroes.FirstOrDefault(o => o.IsValid && o.Health < 80);
Then you need to be check if there are any Enemie saved and valid.
Code:
var EnemieHeros = EnemieHeroes.FirstOrDefault(o => o.IsValid && o.Health < 80);
if (IsValid(EnemieHeros))
{
doing blablablablablallala;
}
.... I was missing
Code:
using System.Linq;
Ty. What about Valeera's D ability Vanish? Any help for this? I can't seem to be able to make it work even with a singe if( ). Does not work against creeps nor heroes.
Send me your Routine via pm and i take a look into it.
Edit:
New update available!
Hey Community maybe you recognized i was a bit busy after the last patch.
Someone reported Abathur is not working anymore, after i look deeper in it i saw big major changes from the last patch.
In the last days the bot cant recognized any Units, only friendly/enemie creeps so he is thinking all time there is no EnemieHeroes -> play kamikaze and not using skills.
How said i was really busy and cant do a long test after last update, so im sorry for this.
Fixed everything, Abathur should work and also all Units.
Some one reported problems with Enemie.Health, now try it again.
23:09:47:13 | Log | App Version: 1.74
23:09:47:16 | Debug | OS Version: Can not find OS version
23:09:47:17 | Debug | OS Packed: Microsoft Windows NT 10.0.14393.0
23:09:47:17 | Debug | CPU: x64
23:09:47:17 | Debug | Process: x64
23:09:47:19 | Debug | Resolution: X:1366 Y:768
23:09:47:20 | Debug | .NET Runtime Version: 4.0.30319.42000
23:09:47:20 | Debug | CPU Cores: 4
23:09:47:20 | Debug | Memory: 4096
23:09:47:21 | Debug | Application: C:\Users\<User>\Desktop\bots hots
23:09:47:23 | Log | Loading Hotkeys ...
23:09:47:29 | High | Set F2 to [Start/Stop]
23:09:47:30 | High | Set F4 to [Exit]
23:09:47:32 | High | Set F3 to [Stop after current game]
23:09:47:33 | Log | Hotkeys loaded !
23:09:47:43 | Debug | Can't find old application .exe!
23:09:47:44 | Debug | Starting Coroutine
23:09:47:45 | Debug | Starting Helproutine !
23:09:47:45 | Debug | Starting Assistroutine !
23:09:47:90 | Log | Loading GameManager ...
23:09:47:165 | Debug | Attached -> Process.
23:09:52:366 | Error | At this point we can't tell if the game is running in this [Modes] or not, because technical limitations.
[Fullscreen mode] Please set the game to windowed.
Don't minimize the Window.
Check if ...
- taskbar always shown its need to be visible.
- in taskbar "show icons extra small ( something like this )" uncheck it, needs to be default.
At least send me a screenshot via pm, when its happen.
EDIT:
"this last bot
often just crashes
stopped working"
-> whats mean crashes ?
"says
program stopped working
like it lagged out
constantly
on my VM
main pc
and laptop
plays some games then crashes"
Hello Flumio
Yes, the event viewer will show this (had the same error 3 times in the last 24hours).
Hope it helps :-D
Anwendung: 9UU8Q72E6.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.InvalidOperationException
bei System.Drawing.Image.get_Width()
bei System.Drawing.Bitmap.GetPixel(Int32, Int32)
bei ..(System.Drawing.Bitmap, System.Drawing.Bitmap, IntelCore.Vector2i, Int32)
bei ..(System.Drawing.Bitmap, System.Drawing.Bitmap, System.Drawing.Rectangle, Int32)
bei ..(System.Drawing.Bitmap, System.Drawing.Rectangle, Int32)
bei ..()
bei ...ctor()
bei ..()
bei ..()
bei ..()
bei System.Threading.ExecutionContext.RunInternal(Syst em.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threa ding.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threa ding.ExecutionContext, System.Threading.ContextCallback, System.Object)
bei System.Threading.ThreadHelper.ThreadStart()
Flumio, I have a couple of issues with the bot.
Somehow the bot does not detect properly that I am running 1980 resolution.
I have to switch to the 1367 resolution before it can work.
This is annoying, any idea how to overcome this?
After the recent updates (last 2) it seems the bot randomly shoots into an error now and then. Sometimes this is after 8 games, and another time after 65 games or so.
Did you chance something fundamental in the program?
This looks like your hots-window is minimized. Anyway you can send me a screenshot via pm.
Quote:
Flumio, I have a couple of issues with the bot.
Somehow the bot does not detect properly that I am running 1980 resolution.
I have to switch to the 1367 resolution before it can work.
same here: getting crashes, sometimes after 1 game, sometimes after 29.
event message:
Protokollname: Application
Quelle: .NET Runtime
Datum: 30.03.2017 16:52:54
Ereignis-ID: 1026
Aufgabenkategorie:Keine
Ebene: Fehler
Schlüsselwörter:Klassisch
Benutzer: Nicht zutreffend
Computer: VM-5
Beschreibung:
Anwendung: 1K26I4977.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.InvalidOperationException
bei System.Drawing.Image.get_Width()
bei System.Drawing.Bitmap.GetPixel(Int32, Int32)
bei ..(System.Drawing.Bitmap, System.Drawing.Bitmap, IntelCore.Vector2i, Int32)
bei ..(System.Drawing.Bitmap, System.Drawing.Bitmap, System.Drawing.Rectangle, Int32)
bei ..(System.Drawing.Bitmap, System.Drawing.Rectangle, Int32)
bei ..()
bei ...ctor()
bei ..()
bei ..()
bei ..()
bei System.Threading.ExecutionContext.RunInternal(Syst em.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threa ding.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
bei System.Threading.ExecutionContext.Run(System.Threa ding.ExecutionContext, System.Threading.ContextCallback, System.Object)
bei System.Threading.ThreadHelper.ThreadStart()
Hots keys for free 04/05/2015 - Heroes of the Storm - 2 Replies GWZDBR-8TWR-RGHT9T-HZPR-GPCZZN
KTZWBT-B4RX-WCG7EF-HK7K-JYVPKD
HKW8RW-6FBF-9CDEPP-V2J8-CC4R78
WDJ9NE-ED9Z-XBWWRT-XVX9-PX4JY8
Als gegenleistung wär n kilo feinster kartoffel gut!
Mfg
level your hots eu account for free 02/02/2015 - Heroes of the Storm - 2 Replies level your hots eu account for free
i level your hots eu account for free.
just give me your email and pw, not more.
i do it because i get no alpha inv from blizzard and i cant waste more time.
i need to stack experience(aiming for higher ranks), till beta starts and i can self rush lvl 40 on my own acc.
i dont buy accounts, dont even ask for it.
Boost in Starcraft 2 HotS - For Free! 07/15/2013 - Starcraft 2 - 2 Replies Hey. If anyone needs a boost to Platinum in Starcraft 2, i can do it.
It's for free, since i have much time and dont know what to do.
But you need to have HotS, because i dont play anymore WoL.
So yeah if you want me to boost your 1v1, 2v2, 3v3 or 4v4, just PN me or add me on Skype.
In 1v1 i can boost up to Plat, in 2v2, 3v3, 4v4 up to Dia/Master.
Regards