# HG changeset patch # User yellowfive # Date 1413771113 25200 # Node ID 4d1a9865c90ed64ab5aacb4104e5752b78f26056 # Parent b8df1bb7cfae93d4949c4522a45c70d9e38d5c8a fixed void storage reading bug diff -r b8df1bb7cfae -r 4d1a9865c90e AskMrRobot.lua --- a/AskMrRobot.lua Sat Oct 18 21:57:39 2014 -0700 +++ b/AskMrRobot.lua Sun Oct 19 19:11:53 2014 -0700 @@ -407,18 +407,19 @@ local voidItems = {} local VOID_STORAGE_MAX = 80 local VOID_STORAGE_PAGES = 2 - local i + for page = 1,VOID_STORAGE_PAGES do for i = 1,VOID_STORAGE_MAX do local itemId = GetVoidItemInfo(page, i) if itemId then - local itemLink = GetVoidItemHyperlinkString(page, i); + local itemLink = GetVoidItemHyperlinkString(((page - 1) * VOID_STORAGE_MAX) + i); if itemLink then tinsert(voidItems, itemLink) end end end end + AmrDb.VoidItems = voidItems end end diff -r b8df1bb7cfae -r 4d1a9865c90e AskMrRobot.toc --- a/AskMrRobot.toc Sat Oct 18 21:57:39 2014 -0700 +++ b/AskMrRobot.toc Sun Oct 19 19:11:53 2014 -0700 @@ -1,7 +1,7 @@ ## Interface: 60000 ## Title: Ask Mr. Robot ## Author: Team Robot, Inc. -## Version: 10 +## Version: 11 ## Notes: Exports/Imports data to/from askmrrobot.com. ## URL: www.askmrrobot.com ## DefaultState: Enabled