From c7b144aefb166dca8ebe205a85818b661686f0fb Mon Sep 17 00:00:00 2001 From: Durel Date: Sat, 30 Sep 2017 12:48:24 -0400 Subject: [PATCH] 1) Re-enabled the stat bonus timer. We temporarily disabled it while we debugged why the "stats" trigger wasn't working. Now that "stats" works, we can use this again. --- aard_inventory.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/aard_inventory.xml b/aard_inventory.xml index ea3c96b..fa70097 100644 --- a/aard_inventory.xml +++ b/aard_inventory.xml @@ -1026,7 +1026,8 @@ function inv.init.atActiveCR() if (retval == DRL_RET_SUCCESS) then inv.init.initializedActive = true - dbot.info("Plugin is fully initialized") + dbot.info("Plugin version " .. inv.version.pluginMajor .. "." .. inv.version.pluginMinor .. + " is fully initialized") -- Kick off an immediate full inventory refresh so that we have an accurate view of what -- the user has. They may have logged in without using the plugin and moved things around @@ -13697,11 +13698,10 @@ function inv.statBonus.load() -- inv.statBonus.timer.update() function here. Unfortunately, that function relies on mushclient -- components that may not be available when we load right at the start. Instead, we simply -- kick off the timer manually and then let it self-perpetuate once it is going. ---[[FIXME: this appears to cause a conflict for one user during the initial build step check (AddTimer(inv.statBonus.timer.name, 0, inv.statBonus.timer.min, inv.statBonus.timer.sec, "", timer_flag.Enabled + timer_flag.Replace + timer_flag.OneShot, "inv.statBonus.set")) ---]] + if (spellRetval ~= DRL_RET_SUCCESS) then return spellRetval else @@ -18310,13 +18310,16 @@ function dbot.wish.getCR() -- we can't get the list of wishes and we need to try again later if (charState ~= dbot.stateActive) then dbot.note("Skipping request to get list of active wishes: you are in the state \"" .. - dbot.gmcp.getStateString(charState) .. "\"") + dbot.gmcp.getStateString(charState) .. "\"") retval = DRL_RET_NOT_ACTIVE -- We are in the active state and can execute commands on the server side elseif (pageLines ~= nil) then -- Execute the "wish list" command + -- TODO: Doh! I just found the pagesize option in the "help telnet" helpfile. This is in + -- the telnet 102 interface and it lets you enable or disable paging easily. It even + -- remembers pagesize for you. We may want to switch to that at some point. local commandArray = {} table.insert(commandArray, "pagesize 0") table.insert(commandArray, "wish list")