• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

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

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

Code:
-- 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
Cart