• 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 - EQ Crash: Using /invoke to open a Tradeskill Window causes a crash. [Lua]

Hello, everyone. I'm trying to write a Lua program and I've run into a problem. Whenever I open my tradeskill container manually (the Reinforced Medicine Bag), I can click the 'Search Recipes' button without issue. Even using mq.cmd('/invoke ${Window[TradeskillWnd/COMBW_SearchButton].LeftMouseUp}') to click the button works fine.

The issue is that when I open the tradeskill window using an /invoke command: mq.cmd('/invoke ${Window[TradeskillWnd].DoOpen}') means that either manually clicking the Search button or another /invoke command causes EQ to crash. It always references Location: ... +000000000060E2F4.

I'm not sure what specifically about invoking the tradeskill window causes the crash. I'm curious if there's another method to open the window from a Lua program that doesn't use /invoke. From what I can tell, /notify only works for open windows and cannot open one directly. Any help would be appreciated, as trying to narrow this down has had me pulling out my hair.

Screenshot 2023-12-20 084206.png
 
Code:
mq.cmd('/invoke ${Window[TradeskillWnd/COMBW_SearchButton].LeftMouseUp}')

becomes

Code:
mq.TLO.Window("TradeskillWnd/COMBW_SearchButton").LeftMouseUp()
Ooh, I didn't know that was possible. I can use that to open the Reinforced Medicine Bag, but then clicking Search still crashed the client. It almost feels that opening the container using anything other than a right click is causing it. All of this is on the test server, by the way. I think I'll explore a kludgy way of just right clicking the container and go from there. In any case, thank you for the rapid response, brainiac!
 
I don't think you can force open the TradeskillWnd this way. Its crashing because of a bad item, which makes sense, since tradeskill windows are associated with an item. So i guess by trying to force it open, you're causing a crash because theres no item associated with the window.
 
Just wanted to report back that brainiac was right on the money (as befits the name). Calling the TradeskillWnd directly was causing the crashing. After reworking things to call the window from the container has fixed the 'issue'. So, to anyone that is trying to automate anything from tradeskill windows, make sure that you are using the container instead of the direct window.
 
Problem - EQ Crash: Using /invoke to open a Tradeskill Window causes a crash. [Lua]

Users who are viewing this thread

Back
Top
Cart