• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Problem - Travelto + Achievements Causing CTD 9-21-2022 (Fixed) (1 Viewer)

This code:


local category = mq.TLO.Achievement.Category('EverQuest').Category('Exploration') for i = 1, category.AchievementCount() do local achievement = category.AchievementByIndex(i) if not achievement.Completed() then print(achievement.Name()) end end

This is directly from the example...

is not working for me.. Are things broked again, or OE?

My goal is to dump every achievement from a selected expansion and category


it is unable to get the count or return anything from what I can tell..
1666021803569.png

so numbers it is

'Rain of Fear' 2000, 'Collections' 2009
local category = mq.TLO.Achievement.Category(2000).Category(2009)


My solution:

Ignores collections that have a required count of 0 or nil

INI:
-- ROF / Collections
local category = mq.TLO.Achievement.Category(2000).Category(2009)
for i = 1, category.AchievementCount() do
    local achievement = category.AchievementByIndex(i)
    if achievement.ObjectiveCount() == nil then break end
    print(i)
    for j = 1, achievement.ObjectiveCount() do
        local req_count = achievement.ObjectiveByIndex(j).RequiredCount()
        if req_count == nil then req_count = 0 end
        if req_count > 0 then
            local item = {
                ExpansionID = mq.TLO.Achievement.Category(2000).ID,
                ExpansionName = mq.TLO.Achievement.Category(2000),
                ExpansionCollectionCategoryID = mq.TLO.Achievement
                    .Category(2009).ID,
                AchName = achievement.Name,
                ObjName = achievement.ObjectiveByIndex(j),
                ObjID = achievement.ObjectiveByIndex(j).ID
            }
            print("\at", item.ExpansionID, " ", item.ExpansionName, " ",
                  item.ExpansionCollectionCategoryID, " ", item.AchName, " ",
                  item.ObjName, " ", item.ObjID)
        end
    end
end


Output:

1666026706977.png
 
Last edited:
Problem - Travelto + Achievements Causing CTD 9-21-2022 (Fixed)

Users who are viewing this thread

Back
Top