79135 4 Posted September 16, 2020 Share Posted September 16, 2020 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 More sharing options...
Droidz 2738 Posted September 17, 2020 Share Posted September 17, 2020 Hi, it is strange, try to restart your computer if problem is not resolved tell me Link to comment https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/#findComment-59956 Share on other sites More sharing options...
79135 4 Posted September 22, 2020 Author Share Posted September 22, 2020 Idk what was wrong, but atm work fine Link to comment https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/#findComment-60019 Share on other sites More sharing options...
79135 4 Posted September 22, 2020 Author Share Posted September 22, 2020 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. Link to comment https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/#findComment-60020 Share on other sites More sharing options...
Droidz 2738 Posted September 22, 2020 Share Posted September 22, 2020 the date and time of your computer are correctly set? Link to comment https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/#findComment-60024 Share on other sites More sharing options...
79135 4 Posted September 22, 2020 Author Share Posted September 22, 2020 yes, correctly. In addition if i set Others.Random(53, 100), bot'll use only 53 and etc Link to comment https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/#findComment-60027 Share on other sites More sharing options...
Droidz 2738 Posted September 22, 2020 Share Posted September 22, 2020 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 Link to comment https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/#findComment-60031 Share on other sites More sharing options...
79135 4 Posted September 22, 2020 Author Share Posted September 22, 2020 I too dont understand. atm use new System.Random(), work is fine Link to comment https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/#findComment-60032 Share on other sites More sharing options...
Droidz 2738 Posted September 23, 2020 Share Posted September 23, 2020 I am sorry i have no idea what can cause this problem. Link to comment https://wrobot.eu/forums/topic/12514-baggetcontaineritemcooldown/#findComment-60047 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now