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.

c# - Search in Bags and change settings

Featured Replies

Hi, in LUA its sadly not possible to change the settings of wrobot. So I need a C# routine that

heallist="113509,80610,80618,65499,43523,43518,34062,22019,65517,22895,65516,8076,65515,8075,65500,1487,1114,1113,5349"

- search the Item numbers in heallist in the bags and give me the highest found.

- translate the number to the localist name (english, german, french, ...)

- and last but no least set the wrobot settings

wManager.wManagerSetting.CurrentSetting.FoodPercent = 60
  and
wManager.wManagerSetting.CurrentSetting.FoodName = <translated food>

(not sure if i get the right setting names)

 

Sense of this: To start the regeneration via fightclass with a self casted food (Mage)

Hello,

                            var foodName = Lua.LuaDoString<string>(@"
                                                                    local foodId = {113509,80610,80618,65499,43523,43518,34062,22019,65517,22895,65516,8076,65515,8075,65500,1487,1114,1113,5349}

                                                                    local cid = 0;
                                                                    local maxCount = 0;

                                                                    for i, id in ipairs(foodId) do
                                                                        local c = GetItemCount(id);
                                                                        if c > maxCount then
	                                                                    maxCount = c;
	                                                                    cid = id;
                                                                        end
                                                                    end

                                                                    if cid <= 0 then
                                                                        return "";
                                                                    end
                                                                   
                                                                    local name = GetItemInfo(cid);

                                                                    return name;
                                                                    ");
                            if (!string.IsNullOrWhiteSpace(foodName))
                            {
                                wManager.wManagerSetting.CurrentSetting.FoodPercent = 60;
                                wManager.wManagerSetting.CurrentSetting.FoodName = foodName;
                            }

 

Create an account or sign in to comment

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.