Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Droidz

Administrators
  • Joined

  • Last visited

Bug Report Comments posted by Droidz

  1. I won't back to old version of code (change was do 1 year ago).

    Current code:

            public static void BuyItem(string name, int number)
            {
                try
                {
                    Lua.LuaDoString($@"
    local n = '{name.Replace("'", @"\'")}'; 
    local q = {number}; 
    for i=1,100 do 
        local name, _, _, quantity = GetMerchantItemInfo(i) 
        if name and n==name then 
            if q > quantity then 
                q = quantity 
            end 
            BuyMerchantItem(i,q) 
        end 
    end");
                }
                catch (Exception e)
                {
                    Logging.WriteError("BuyItem(string name, int number): " + e);
                }
            }

    to get old code remove:

            if q > quantity then 
                q = quantity 
            end 

     

  2. hi,

    You need to call this method several time

                                    for (int i = 0; i < b.Quantity && b.NeedToBuy(); i++)
                                    {
                                        var qToBuy = b.Quantity - ItemsManager.GetItemCountByNameLUA(b.ItemName);
                                        if (qToBuy > MaxItemsQuantityToBuyByRequest)
                                            qToBuy = MaxItemsQuantityToBuyByRequest;
                                        Vendor.BuyItem(b.ItemName, qToBuy);
                                        Thread.Sleep(Usefuls.Latency + 400);
                                    }

     

  3. and code like:

    Engine lastEngine = null;
    robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState +=
        delegate(Engine engine, State state, CancelEventArgs cancelable)
        {
            try
            {
                if (engine == null || engine.States == null)
                    return;
    
                if (engine != lastEngine)
                {
                    if (engine.States.Any(s => s is Idle))
                    {
                        lastEngine = engine;
                        engine.AddState(new MyCustomState()); // or engine.States.Insert(X, new MyCustomState());
                        // cancelable.Cancel = true; ??
                    }
                }
            }
            catch { }
        };

     

  4. Wrobot can use only one offmeshconnection per path, if path need several offmeshconnections you need to combine them. For your problem, you need to create one offmeshconnection "Rut'Theran to Auberdine", one to "Darnassus Portal Down to Rut'Theran" and one "Darnassus Portal Down to Auberdine" ("A to B", "B to C" and "A to C")).

    (if I understood the problem correctly.)

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.