I know how to check for spells that are being casted via target.IsCasting and target.SpellCastInfo etc. How do I detect an instant casted ability though that had no cast bar? Edit: Plan B could be to read the battle chat log for "Enemy uses Ability Name". Is this possible?
The only way would be to look at the game log. To find the messages while developing you can use. Code: ClearLog(); foreach(var item in GamelogManager.CurrentBuffer) { Log(item.FullLine); } But after that I would use the Code: GamelogManager.MessageRecevied event handler so to process the messages. The MessageType enum might be missing the id you need but you can just use the ushort value.
This is for a combat routine I'm working on. Can you provide an example of how I should go about using GamelogManager.MessageReceived ? Everything I've worked with so far with the API has been classes and methods, never any Event stuff yet.
https://github.com/zzi-zzi-zzi/Deep...c18b9c8116be/TaskManager/Actions/Loot.cs#L166 While not an excellent example as it is removed and added on an as needed basis this is pretty much it. If you plan on releasing you work for others to use you'll need to take care to localize what you are looking for.