Scripting - Moster Casting Question

DiBi

Member
Is there any way to detect in custom script that monster is casting something and especially spell name?

Also is there any tips how to better ogranize continuous script for long fight? For now I check my triggers (e.g. "is toon X dead") every 100 ms ("wait 1") in infinite cycle, wonder if there is something better
 

uiyice

Active Member
You're probably looking for something like:

if ${Me.GetGameData["Target.Casting"].Label.Equal["Spirit Rift"]}
{
; Do Something
}
 

DiBi

Member
It works, ty.

It isn't documented feature, correct? Can't find anything about GetGameData on wiki.
 

Moonspell

Member
This would be helpful for writing an interrupt script/adding an interrupt tab to Ogre.

It would be awesome to be able to have the bot "watching" for a certain spell to be cast from a list of spells then have the bot cast an interrupt spell.

That's the biggest barrier for me to doing more in the community: documentation. Often it feels like the documentation for what we do is limited, so it makes it hard to contribute to the community.
 
Top Bottom