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.
master
Durel 7 years ago
parent 3c0a0a36a2
commit c7b144aefb

@ -1026,7 +1026,8 @@ function inv.init.atActiveCR()
if (retval == DRL_RET_SUCCESS) then if (retval == DRL_RET_SUCCESS) then
inv.init.initializedActive = true 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 -- 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 -- 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 -- 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 -- 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. -- 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, "", check (AddTimer(inv.statBonus.timer.name, 0, inv.statBonus.timer.min, inv.statBonus.timer.sec, "",
timer_flag.Enabled + timer_flag.Replace + timer_flag.OneShot, timer_flag.Enabled + timer_flag.Replace + timer_flag.OneShot,
"inv.statBonus.set")) "inv.statBonus.set"))
--]]
if (spellRetval ~= DRL_RET_SUCCESS) then if (spellRetval ~= DRL_RET_SUCCESS) then
return spellRetval return spellRetval
else else
@ -18317,6 +18317,9 @@ function dbot.wish.getCR()
elseif (pageLines ~= nil) then elseif (pageLines ~= nil) then
-- Execute the "wish list" command -- 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 = {} local commandArray = {}
table.insert(commandArray, "pagesize 0") table.insert(commandArray, "pagesize 0")
table.insert(commandArray, "wish list") table.insert(commandArray, "wish list")

Loading…
Cancel
Save