Jump to content

Recommended Posts

Bag.GetContainerItemCooldown() is broken?

[E] 22:01:26 - LuaDoString(string command, Type returnType, string returnVariableName = ''): System.OverflowException: Значение было недопустимо малым или недопустимо большим для Int32.
   в System.Convert.ToInt32(Double value)
   в System.Double.System.IConvertible.ToInt32(IFormatProvider provider)
   в System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   в System.Convert.ChangeType(Object value, Type conversionType)
   в wManager.Wow.Helpers.Lua.LuaDoString(String command, Type returnType, String returnVariableName)
[D] 22:01:26 - LuaDoString<T>(string command, string returnVar) > return value is NULL, command: 
                                                local itemLink= GetContainerItemLink(0, 10);
                                                if itemLink then
                                                    local _,_,itemId = string.find(itemLink, '.*|Hitem:(%d+):.*');
                                                    if itemId then
                                                        local startTime, duration, isEnabled = GetContainerItemCooldown(0, 10);
                                                        if not isEnabled then return 0 end
                                                        local t = math.floor((startTime + duration - GetTime()) * 1000);
                                                        if t < 0 then
                                                            t = 0;
                                                        end
                                                        return t;
                                                    end
                                                end
                                                return 0;

 

2 hour ago it function is started to write the error. Only at bot for wow TBC

Link to comment
https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/
Share on other sites

Sorry for offtop, but i've an another strange, after playing without restart 3+ hours the bot dont random the function: Others.Random(0, 10). In fight class, in plugin, in quester in the same time the bot use only 0, never 1, 2, 3, ..., 10. Help only restart the bot.

I think it is a problem with https://docs.microsoft.com/en-us/dotnet/api/system.environment.tickcount?view=netcore-3.1 but I don't understand why, random use default .NET api no reason that bug. Try to reinstall/repair framework.net maybe

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...