• 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

Question - Switching items

Soandso2

Well-known member
Not so much because I need to, but because I want to, I decided to add a little snippet of code that equips a powersource when I enter combat and then removes it when combat ends. This works fine when I solo/molo, but as soon as I group, I end up with the powersource on my cursor more often than not, instead of either in the bag or equipped. I used the example from the macroquest manual. Also, I am aware that this code presumes that the powersource is stored in a fixed position in my bags. I know it can be done in a prettier way, but tihs is how it is for now.

When in combat (or rather, simply when autoattack is active) I run this:

Lua:
if not pSource then
    mq.cmd("/itemnotify in pack10 32 leftmouseup")
    mq.cmd("/itemnotify powersource leftmouseup")
    pSource = true
end

and a similar, inverse one when combat (autoattack) ends.

a) is this the only/correct way to switch items between slots?
b) if it is, how come it works only half good?
 
because eq interface is slowness, so you need a detection on if you got the powersource on cursor, then move on to popping it in the powersource slot, and for taking it off the same thing. use a delay of 250 in the loop

you can alsso just grab the powersource by name, instead of bag slot, but if you tintend that bag slot is where it needs to reside then ignore that
 
Not so much because I need to, but because I want to, I decided to add a little snippet of code that equips a powersource when I enter combat and then removes it when combat ends. This works fine when I solo/molo, but as soon as I group, I end up with the powersource on my cursor more often than not, instead of either in the bag or equipped. I used the example from the macroquest manual. Also, I am aware that this code presumes that the powersource is stored in a fixed position in my bags. I know it can be done in a prettier way, but tihs is how it is for now.

When in combat (or rather, simply when autoattack is active) I run this:

Lua:
if not pSource then
    mq.cmd("/itemnotify in pack10 32 leftmouseup")
    mq.cmd("/itemnotify powersource leftmouseup")
    pSource = true
end

and a similar, inverse one when combat (autoattack) ends.

a) is this the only/correct way to switch items between slots?
b) if it is, how come it works only half good?
Grand and HF are right, they only power down DURING combat (new, last year or less?)
 
Oh, I had no idea about the "only drain during combat" thing. That renders the whole issue moot.
Anyway, thanks for all the answers regarding why it happens. I thought (again) that it might have to do with some sort of "MQ being much faster than EQ can handle". All that being said, the question about why it happens when I am grouped but not solo remains. Does being in a group add more lag to "my" game, than when I run around alone? (Not that it matters now, but still...)
 
Question - Switching items

Users who are viewing this thread

Back
Top
Cart