@ -83,7 +83,7 @@ dbot.callback : Module to help manage callback functions and parameters
save_state="y"
save_state="y"
date_written="2017-08-12 08:45:15"
date_written="2017-08-12 08:45:15"
requires="4.98"
requires="4.98"
version="1.7 "
version="1.8 "
>
>
<description trim= "y" >
<description trim= "y" >
< ![CDATA[
< ![CDATA[
@ -200,6 +200,10 @@ Release Notes
instead of an echo. Triggers cannot catch notifications though so any code relying on end tags should
instead of an echo. Triggers cannot catch notifications though so any code relying on end tags should
either detect when you go AFK or cleanly time out after a reasonable amount of time.
either detect when you go AFK or cleanly time out after a reasonable amount of time.
8) If you add the portal wish after you have built your inventory table, you will need to either rebuild
the table (dinv build confirm) or forget/re-identify your portals (dinv forget type portal) and
(dinv refresh all).
Feature Wishlist
Feature Wishlist
================
================
@ -11068,7 +11072,7 @@ function inv.priority.addDefault()
allphys = 0.03,
allphys = 0.03,
allmagic = 0.03,
allmagic = 0.03,
avedam = 1,
avedam = 1,
offhandDam = 0.33,
offhandDam = 0.33,
regeneration = 5,
regeneration = 5,
sanctuary = 50,
sanctuary = 50,
haste = 20,
haste = 20,
@ -12206,11 +12210,6 @@ function inv.set.createWithHandicap(priorityName, level, handicap)
local objWearable = inv.items.getStatField(objId, invStatFieldWearable) or ""
local objWearable = inv.items.getStatField(objId, invStatFieldWearable) or ""
local objWeight = tonumber(inv.items.getStatField(objId, invStatFieldWeight) or 0)
local objWeight = tonumber(inv.items.getStatField(objId, invStatFieldWeight) or 0)
if (objWearable == "portal") then --FIXME DEBUG
dbot.note("@YFIXME@W: Evaluating portal \"" .. (inv.items.getField(objId, invFieldColorName) or "nil") ..
"@W\": portal level=" .. objLevel .. ", target level=" .. level)
end -- if
if ((objIdentified == invIdLevelPartial) or (objIdentified == invIdLevelFull)) and
if ((objIdentified == invIdLevelPartial) or (objIdentified == invIdLevelFull)) and
(objLevel ~= nil) and (objLevel < = level) then
(objLevel ~= nil) and (objLevel < = level) then
@ -12224,11 +12223,6 @@ function inv.set.createWithHandicap(priorityName, level, handicap)
table.insert(weaponArray, { id = objId, score = score, offhand = offhandScore, weight = objWeight })
table.insert(weaponArray, { id = objId, score = score, offhand = offhandScore, weight = objWeight })
end -- if
end -- if
if (objWearable == "portal") then -- FIXME DEBUG
dbot.note("@CFIXME@W: \"" .. (inv.items.getField(objId, invFieldColorName) or "nil") ..
"@W\": score=" .. (score or "nil"))
end -- if
for _,w in ipairs(inv.wearables[objWearable]) do
for _,w in ipairs(inv.wearables[objWearable]) do
-- Set a default (low) score if we haven't used this slot yet
-- Set a default (low) score if we haven't used this slot yet
if (newSet[w] == nil) then
if (newSet[w] == nil) then
@ -12244,11 +12238,6 @@ function inv.set.createWithHandicap(priorityName, level, handicap)
dbot.debug("Upgrading \"" .. w .. "\" to \"" .. nextBestName .. "\"")
dbot.debug("Upgrading \"" .. w .. "\" to \"" .. nextBestName .. "\"")
end -- if
end -- if
if (objWearable == "portal") then -- FIXME DEBUG
dbot.note("@MFIXME@W: Upgrading portal \"" .. w .. "\" to \"" .. (nextBestName or "nil") ..
"\"")
end -- if
nextBest = tmp
nextBest = tmp
end -- if
end -- if
end -- for
end -- for