Is it possible to automatically open corpses in EC? Even with custom script?
Hello everyone,
I have been trying to gather resources. I set an agent to loot the corpses to make life easier. On the other hand continuous CTRL+SHIFT+ Double Click is messing up my hands. My thumb started tingling/shaking on it's own.
So the question is, is it possible to automatically open corpses on EC? This way, I can just click the organizer button at the top and be done with each corpse.
I tried looking into the files under "Default/Source/ObjectHandle.lua" and "WindowData.ObjectInfo" table. It seems like these two are only updated with objects from currently open containers. I tried to find any other table/function that would return object IDs for the objects on the ground.
Turns out you can find IDs of the objects by looking at the "WindowData.ObjectHandle" but this list is only populated when I push CTRL+SHIFT. Using this would only save me a double click.
So the question is that, is there any way on EC to automatically open corpses right next to me? If that is not possible, is there any API/Structure that returns the list of objects on the screen without pushing CTRL+SHIFT? This way I can write my own corpse opener.
Thanks a lot!
Comments
You can however, just use Target Nearest Object>Use Targeted Object from the actions list as a two-line macro. That will open the nearest corpse (unless you're standing by some other object). I'm sure there is a script check to make sure the object "isCorpse", but I haven't looked into it.
If you use Target Nearest Object>Use Targeted Object, then Target Next Object>Use Targeted Object, that macro will open the nearest two corpses. You can stack Target Next>Use Targeted to open entire piles of corpses with one keypress.
Instead of pressing the organizer button on each corpse, just put Actions>Other>Vacuum at the end of the macro. Vacuum will execute the selected organizer on all open containers (corpses). You can Delay for the organizers to run and then use Actions>Other>Close All Corpses to finish the macro and clean up the screen.
"My thumb started tingling/shaking on it's own.", that is how we identify fellow UO players.