🧙‍♂️ Brought to you by Peptides.gg — Use code UO20 for 20% off — GLP-1's, 90+ Peptides and more!

EC Macro to harvest petals?

Started by Petra_Fyde · 2021-03-13 · 30 posts · General Discussions
#0
Has anyone ever managed to put together an EC macro to harvest resources and seeds from plants? It has to be the most click-fest activity I do.
#1
I have never worked with the plant system, do you harvest by clicking on the plant, or by interacting with a gump?
#3
Well, hopefully someone has already worked with the plant reproduction gump and will share what they've got.

Can you do what you are looking to do with Pinco's?

I know Pinco's is huge...but it if already works....
#4
Has anyone ever managed to put together an EC macro to harvest resources and seeds from plants? It has to be the most click-fest activity I do.
Create Macros with a script command for the following:

Harvest Resources
script GumpsParsing.PressButton(22222,6)

Harvest Seeds
script GumpsParsing.PressButton(22222,7)

Make sure you have the Reproduction/Harvest Gump open, then press the appropriate macro to harvest.

You could probably extend the macro with Delays and copy the Command Script multiple times to harvest all resources.
#5
@Khyro

1. Nice.

2. I have been through GumpsParsing a bunch of times and totally missed .PressButton. Just did a CRT-F and it pops right up. How did I miss that...... My UO life is now approximately 1 gazillion times easier. Thanks!

3. Just from looking at the pics in the link Petra posted I thought the indices would be 2 and 3. Man I was way off.

4. I don't envy Bleak. At all.   


#6
Im not sure if you use default EC or if you use Pinco's UI, but I asked and convinced him to add actions in his version  for  this almost a year ago. I got him to add 3 actions,  gather seeds, gather resources and turn plant decorative this one requires to press enter after you use it.

The gather ones  harvest everything in one go after you open the plant gump, so basically  all you have to do is open the plant gump and press 3 hotkeys, then enter  = plant all done, then open the next plant gump and repeat, etc.
#7
Homer said:
Im not sure if you use default EC or if you use Pinco's UI, but I asked and convinced him to add actions in his version  for  this almost a year ago. I got him to add 3 actions,  gather seeds, gather resources and turn plant decorative this one requires to press enter after you use it.

The gather ones  harvest everything in one go after you open the plant gump, so basically  all you have to do is open the plant gump and press 3 hotkeys, then enter  = plant all done, then open the next plant gump and repeat, etc.
@Homer

I do not know about other users of the Pinco UI but, at least to me, when I use it, my Latency worsens significantly and, thus, I get lagged.

So, I cannot use it rin combat, but only when I do non-combat type of gameplay.

Does anyone else have issue with increased Latency and Lag when using the Pinco UI for the Enhanced Client ?
#8
Wish I had known about the scripting earlier.  I had to get a new mouse last month because the mouse button was going bad because of all the clicking to gather seeds and resources.
#9
@Khyro Thank you so much! I should have guessed that if anyone had the answer to this one it would be you. 🙂

@Homer ; I use the default UI.
#10
EC:

Target By Type
Use Targeted Object

Enable Repeat 10 times.

Done.
#11
A quick question on how to determine the active elements in a window.  How do you find out where to tell it to click.  The 22222,6 for example.  

#12
Zamot said:
A quick question on how to determine the active elements in a window.  How do you find out where to tell it to click.  The 22222,6 for example.  

In the Default UI folder, GGManager.lua has a list of the gumps (22222 is the plant production gump for instance). Well, a list of the gumps when the default folder was built anyway. I would suspect Khyro & co. have a more up to date list.

The instructions for retrieving a table with all components of the gump are in the functions below the gump list. 



If you're not into lua and you're just looking to ease your gameplay a bit, you can assign different parameters to the "Command" action scripts and see which buttons get pushed.

Example:
"script GumpsParsing.PressButton(22222, 6)" will access the plant production gump (22222) and push the button at index position (6).

"script GumpsParsing.PressButton(x, 4)" would push the button at index position 4 on whatever gump you're accessing (x).
#13
Arroth Thank you  for this information.  I will mess around with this.

#14
Hopefully this thread enlightens a few people on the EC, it can do a lot more than you think it can.
#15
Plant window done, Tending plants just got easier for me.  Have a macro that will empty seeds and resources and the go back to the abandon plot.  I will try to stream line this.  Thanks for the quick information.

#16
Pinco's already has built-in actions to strip resources and seeds off of plants...
#17
hi    Dot_Warner    where is it in pinco's whats it called?   I am not very familiar with EC I usually use CC  but on occasion I use EC and this would be another reason that I would use it 🙂  ty
#18
The entire point of this thread is that putting the two "Command" actions Khyro posted above into an EC macro will let the default EC harvest plants without the button clicking.

So if you want to use Pinco's you can, but the default EC can do it as well.
#19
Seth said:
EC:

Target By Type
Use Targeted Object

Enable Repeat 10 times.

Done.
Has anyone tried this idea? I had already harvested my plants when I saw it, so can't try it till the next lot grow.
#20
Goldie said:
hi    Dot_Warner    where is it in pinco's whats it called?   I am not very familiar with EC I usually use CC  but on occasion I use EC and this would be another reason that I would use it 🙂  ty
In the Pinco's action menu, go to Items/Abilities and you will find "Gather Seeds" and "Gather Resources." Just have a plant gump open and then use the action and wait while it strips the plant. 
#21
Seth said:
EC:

Target By Type
Use Targeted Object

Enable Repeat 10 times.

Done.
Has anyone tried this idea? I had already harvested my plants when I saw it, so can't try it till the next lot grow.
I was wondering if that worked as well.
#22
thank you  Dot_Warner  I will be doing that once my plants are ready in couple days 🙂 assume

Any chance to get fruit off fruit trees and  rose of trinsic? lots of clicking involved in that and they have no gump to open.
#23
Goldie said:
thank you  Dot_Warner  I will be doing that once my plants are ready in couple days 🙂 assume

Any chance to get fruit off fruit trees and  rose of trinsic? lots of clicking involved in that and they have no gump to open.
Put the following 2 actions in a macro with Repeat = 10
Last Object
Use Targeted Object


Click on the tree or rose once. Then run the macro. You may need to add a delay after Use Targeted Object.
#24
@Seth could you elaborate on your macro? When I tried it my macro wanted to plant seeds instead of collecting them.
#25
I couldn't resist I did it now before my plants at 8/8   was it fast and nice woow 🙂  thanks for letting me know  Dot_Warner 
#26
TimSt said:
@ Seth could you elaborate on your macro? When I tried it my macro wanted to plant seeds instead of collecting them.

Sorry did not see this earlier, the macro was meant for "petals" for Trinsic Rose.

I read the title quickly and jumped in assuming it was referring to the petals for Trinsic Rose, didn't read the content of OP. My bad.
#27
Goldie said:
I couldn't resist I did it now before my plants at 8/8   was it fast and nice woow 🙂  thanks for letting me know  Dot_Warner 
when your plants are ready to be removed
there is also an icon for "Turn Decorative"
#28
Alright, I managed to find the codes in GGManager.Lua as hinted by Arroth Thaiel, and tested the following. Basically I double click a plot, then a single Macro with a series of commands, open the resource gump, harvest (8 + 8 times), return to main gump, open the abandon plot and press yes.

These are all done in one button. Work hard for 10 mins, easy for life.

Main Gump>Goto Resource Gump

script GumpsParsing.PressButton(29842,1)
Delay 0.5

Manually insert the following 8 times:
script GumpsParsing.PressButton(22222,6)
Delay 0.5
script GumpsParsing.PressButton(22222,7)
Delay 0.5

Resource Gump>Return to Main Gump:
script GumpsParsing.PressButton(22222,1)
Delay 0.5

Main Gump>Activate Abandon Plot
script GumpsParsing.PressButton(29842,12)
Delay 0.5
script GumpsParsing.PressButton(29582,3)
Delay 0.5

I have done a demo here:

#29
If you are going to auto abandon the plot I suggest increasing the resource and seed gathering to 10 incase you get the annoying "You must wait to perform another action" message.
← Browse more General Discussions discussions