Jump to content

Hashira

Elite user
  • Posts

    8
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Hashira reacted to Droidz in Regeneration state events   
    No, it is manual, it is current usage:

    If you need event in other methods tell me I will add them
  2. Like
    Hashira reacted to Droidz in Regeneration state events   
    And FiniteStateMachineEvents.OnRunningLoopState is called from:
     
  3. Like
    Hashira reacted to Droidz in Regeneration state events   
    I edited previous code
  4. Like
    Hashira reacted to Droidz in Regeneration state events   
    Hello,
    Start > robotManager.Events.FiniteStateMachineEvents.OnRunState
    Loop > robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState (you need to wait next update)
    End > robotManager.Events.FiniteStateMachineEvents.OnAfterRunState
    robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancel) => { if (state.DisplayName == "Regeneration") { // ... } }; // OR robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancel) => { if (state is wManager.Wow.Bot.States.Regeneration) { // ... } }; // I also add OnCustomEvent, you can create your own event like that robotManager.Events.Events.CustomEventCancelable("Event Name", new object[] { "arg1", "arg2" }); robotManager.Events.Events.OnCustomEvent += (name, args, cancelable) => { if (name == "ItemsManager.UseItem") { var itemName = (string)args[0]; } else if (name == "SpellManager.CastSpellByNameLUA") { var spellName = (string)args[0]; } // ... };  
×
×
  • Create New...