Jump to content

Droidz

Administrators
  • Posts

    12442
  • Joined

  • Last visited

Bug Report Comments posted by Droidz

  1.         Thread Water = new Thread(() =>
            {
                Logging.Write("[Water]: Water Search Initialized");
                while (Conditions.ProductIsStarted)
                {
                    try
                    {
                        if (!Conditions.ProductInPause && ObjectManager.Me.BreathTimerLeft <= 2000)
                        {
                            var unit = ObjectManager.GetWoWUnitAttackables().Where(x => x.Position.DistanceTo(ObjectManager.Me.Position) <= 30);
                            foreach (var u in unit)
                            {
                                if (!ObjectManager.BlackListGetUnitAttackPlayerGuidTime.ContainsKey(u.Guid))
                                    ObjectManager.BlackListGetUnitAttackPlayerGuidTime.Add(u.Guid, DateTime.Now + TimeSpan.FromMinutes(5));
                            }
                            wManager.Wow.Helpers.Keybindings.PressKeybindings(wManager.Wow.Enums.Keybindings.JUMP, 5000);
    
                        }
                    }
                    catch (Exception e)
                    {
                        Logging.WriteError("[Water] ERROR: " + e);
                    }
                    Thread.Sleep(12000);
                }
                Logging.Write("[Water]: Water Search Disposed");
            });
            Water.Start();

     

  2. CastSpellByName is modified by some servers.

    WRobot (and wow) run lua script by script (lua is not multithread in wow). 

    Maybe, if you lua code crash sometime you don't restore function?

    try code like:

    if not randomNameProtectedFunctionSave then
    	randomNameProtectedFunctionSave = protectedFunction;
    end
    protectedFunction = function(abc)
    	return expectedValueForAntiCheat;
    end
    
    
    YOUR CODE HERE....
    
    
    protectedFunction = randomNameProtectedFunctionSave

    (for the session use same name for "randomNameProtectedFunctionSave" (and don't use local var))

×
×
  • Create New...