Jump to content

Droidz

Administrators
  • Posts

    12581
  • Joined

  • Last visited

Bug Report Comments posted by Droidz

  1. Hi,

    Logging.Write("===================");
    var t = System.Diagnostics.Stopwatch.StartNew();
    
    uint id = 8326;
    var n = "Ghost";
    
    var s = System.Diagnostics.Stopwatch.StartNew();
    
    Logging.Write("TargetObject.HaveBuff(id) > " + wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.HaveBuff(id) + " > "  + s.ElapsedMilliseconds);
    s.Restart();
    
    Logging.Write("TargetObject.GetBuff(n) > " + wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.GetBuff(n) + " > "  + s.ElapsedMilliseconds);
    s.Restart();
    
    Logging.Write("Target.HaveBuff(id) > " + wManager.Wow.ObjectManager.ObjectManager.Target.HaveBuff(id) + " > "  + s.ElapsedMilliseconds);
    s.Restart();
    
    Logging.Write("Target.GetBuff(n) > " + wManager.Wow.ObjectManager.ObjectManager.Target.GetBuff(n) + " > "  + s.ElapsedMilliseconds);
    
    Logging.Write(t.ElapsedMilliseconds + " ms ========");

    I can't reproduce problem, if you can code that I can run for that.

    But it is better to use objectmanager.target to get character target (it is more safe and bot cache result)

  2. Hi.

    Don't use enum "LuaEventsId" it is obsolete, use string like that:

    EventsLua.AttachEventLua("LFG_PROPOSAL_SHOW", m => Lua.LuaDoString("AcceptProposal();"));

    You can dump all events and check event called when you get this popup, run this code one time when product is started:

                wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaStringWithArgs += (eventid, args) =>
                {
                    Logging.WriteDebug("[EVENT] " + eventid);
                };

     

  3. I can only solve the problem if you have this problem with WRobot without plugin, profile (test several) and fightclass (test several). Otherwise you have to find the plugin / profile / fightclass that causing the problem and see with the creator, if the creator tells me that the problem comes from WRobot because it occurs when it uses X method in this case I could solve.

×
×
  • Create New...