• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Switching items

Soandso2

Well-known member
Joined
Mar 13, 2023
RedCents
937¢
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
 
Why remove your power source when not in combat? I always thought it only drained in combat… might have been doing this wrong the whole time.
 
Why remove your power source when not in combat? I always thought it only drained in combat… might have been doing this wrong the whole time.
They only drain when attack is on from my understanding of leaving the raider logged in with his all week and it's not dead yet.
 
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