OgreEvent:OthersOnItemUse
From ISXOgre
OgreEvent_OnItemUse
When OgreBot uses an item, it will fire this event.
To attach
Event[OgreEvent_OthersOnItemUse]:AttachAtom[OgreEvent_OthersOnItemUse]
To use
atom OgreEvent_OthersOnItemUse(string _Caster, string _ItemName, uint _OnPlayerID, string _OnPlayer) { if ${_OnPlayer.Length} > 0 || ${_OnPlayerID} > 0 echo ${Time}: ${_Caster} used item ${_ItemName} on ${_OnPlayer} ( ${_OnPlayerID} ) else echo ${Time}: ${_Caster} used item ${_ItemName} }
Comments
There are times where some of the fields will be blank. Such items require no target, they won't have an 'OnPlayer' or 'OnPlayerID'.
Items don't have an ID like abilities do, therefore there is no ItemID like there is for Abilities.