MMOMinion
fish task white-list bug report - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: Support - English, Deutsch, 中文 (https://www.mmominion.com/forumdisplay.php?fid=92)
+---- Forum: English Support & Questions (https://www.mmominion.com/forumdisplay.php?fid=93)
+---- Thread: fish task white-list bug report (/showthread.php?tid=14103)



fish task white-list bug report - mike0804 - 10-12-2015

Line 173 and 189
Code:
for mustkeep in StringSplit(whitelistHQ,",") do
    if (mustkeep == lastCatch) then
        reutrn false
    else
        return true
    end
end

Code:
for mustkeep in StringSplit(whitelist,",") do
    if (mustkeep == lastCatch) then
        reutrn false
    else
        return true
    end
end

This logic will release the fish if it's the 2nd or 3rd in white-list.
return true after for loop.


RE: fish task white-list bug report - tadeus - 10-12-2015

This would work better:

Just replace those lines with these and it should do the trick.

Code:
local IsInWhitelist = false
for mustkeep in StringSplit(whitelist,",") do
  if (mustkeep == lastCatch) then
    IsInWhitelist = true
  end
end
return IsInWhitelist