Difference between revisions of "OgreEvent:OnAbilityCast"
From ISXOgre
(Created page with "== OgreEvent_OnAbilityCast == When OgreBot uses an ability, it will fire this event. == To attach == <pre>Event[OgreEvent_OnAbilityCast]:AttachAtom[OgreEvent_OnAbilityCast]<...") |
(No difference)
|
Latest revision as of 10:14, 14 December 2015
OgreEvent_OnAbilityCast
When OgreBot uses an ability, it will fire this event.
To attach
Event[OgreEvent_OnAbilityCast]:AttachAtom[OgreEvent_OnAbilityCast]
To use
atom OgreEvent_OnAbilityCast(string _Caster, uint _AbilityID, string _AbilityName, uint _OnPlayerID, string _OnPlayer) { if ${_OnPlayer.Length} > 0 || ${_OnPlayerID} > 0 echo ${Time}: ${_Caster} casted ${_AbilityName} ( ${_AbilityID} ) on ${_OnPlayer} ( ${_OnPlayerID} ) else echo ${Time}: ${_Caster} casted ${_AbilityName} ( ${_AbilityID} ) }
Comments
There are times where some of the fields will be blank. Such as abilities that have no target, won't have an 'OnPlayer' or 'OnPlayerID'.