[OpenEUO] Beekeeping
[OpenEUO] Beekeeping
Hello Excelsior,
This is my first crack at a beekeeping macro since I didn't see any listed already on the forums. This will work on up to 22 hives (max you can reach from one location) and will automatically add 2 agility potions, and poison/cure/heal potions as needed depending on the level of disease, pests, and the hive health. In order to get it to work, you have to add the locations of your hives (x, y) on your screen from the location you normally tend from. The locations are stored as BH1x, BH1y, etc. at the beginning of the script. It is currently set up for the following formation (X being a hive, p being the player):
XXXXX
XXXXX
XXpXX
XX XX
XX XX
If you have that formation already, you should be good to go, otherwise you will have to hover over each hive you need to edit and see what the x and y values of your mouse are within the info pane of OpenEUO and edit the BH1x, BH1y, etc. values in the script.
Also, there are no error checks in here for silly things like not having enough potions in your kegs/not having kegs at all, standing in the wrong location when you hit run on the script, etc. If you mess up, just comment out the hives you already did and the script will take care of the rest. You usually need 44 agility, and 22 of the poison/cure potions for each run.
Let me know if you have questions or improvements, I welcome them!
-Nimbus
This is my first crack at a beekeeping macro since I didn't see any listed already on the forums. This will work on up to 22 hives (max you can reach from one location) and will automatically add 2 agility potions, and poison/cure/heal potions as needed depending on the level of disease, pests, and the hive health. In order to get it to work, you have to add the locations of your hives (x, y) on your screen from the location you normally tend from. The locations are stored as BH1x, BH1y, etc. at the beginning of the script. It is currently set up for the following formation (X being a hive, p being the player):
XXXXX
XXXXX
XXpXX
XX XX
XX XX
If you have that formation already, you should be good to go, otherwise you will have to hover over each hive you need to edit and see what the x and y values of your mouse are within the info pane of OpenEUO and edit the BH1x, BH1y, etc. values in the script.
Also, there are no error checks in here for silly things like not having enough potions in your kegs/not having kegs at all, standing in the wrong location when you hit run on the script, etc. If you mess up, just comment out the hives you already did and the script will take care of the rest. You usually need 44 agility, and 22 of the poison/cure potions for each run.
Let me know if you have questions or improvements, I welcome them!
-Nimbus
- Attachments
-
- beekeeping.lua
- Open this with OpenEUO
- (7.08 KiB) Downloaded 645 times
____________________
-Nimbus
-Nimbus
Re: [OpenEUO] Beekeeping
Looks good. (Hopefully unlike the last script +Colibri doesn't nerf bees from this) Why use X and Y Locations for the hives though? Couldn't you just use the item id for each one so they don't have to worry about finding spots in tight areas with no bees ever popping around?
Example: My First Hive ID would be 1117633083
Or could have it scan the ground at the start and auto get the ID for each hive each time and then put it into an array to use for them.
Example: My First Hive ID would be 1117633083
Or could have it scan the ground at the start and auto get the ID for each hive each time and then put it into an array to use for them.
Re: [OpenEUO] Beekeeping
Dramoor,
Those are great ideas! I'll have to do a little research on how to auto scan for the item IDs since I've never done that before, but I'll try to get something like that into the next version. Thank you for the feedback! I hope it doesn't get re-nerfed too, but hopefully not since this isn't significantly faster than the manual way and you still need to be present to comply with the AFK rules while the script is running. I just wanted to reduce the carpal tunnel rate of UOEX beekeepers
.
-Nimbus
Those are great ideas! I'll have to do a little research on how to auto scan for the item IDs since I've never done that before, but I'll try to get something like that into the next version. Thank you for the feedback! I hope it doesn't get re-nerfed too, but hopefully not since this isn't significantly faster than the manual way and you still need to be present to comply with the AFK rules while the script is running. I just wanted to reduce the carpal tunnel rate of UOEX beekeepers

-Nimbus
____________________
-Nimbus
-Nimbus
Re: [OpenEUO] Beekeeping
I made one small change. Ive run into gumps with 6 dots so I changed the following 2 lines:
Code: Select all
while scannumber <= 6 do --scan for max of 6 dots in a beehive
Code: Select all
if scannumber == 6 then
Carzikan (formerly known as Tostig on Great Lakes)
Re: [OpenEUO] Beekeeping
There was a script written called "Finditems.lua" i ran across and it really made doing to this script what you needed. I went ahead and updated your script with the suggestions and just gave it a run. Was flawless. Im attaching your updated script and the finditems.lua that will need to be in the same folder as your script.
You can browse thru the beekeeping file to see how it works.
Enjoy!
You can browse thru the beekeeping file to see how it works.
Enjoy!
- Attachments
-
- Beekeeping.lua
- (5.71 KiB) Downloaded 653 times
-
- FindItems.lua
- (12.7 KiB) Downloaded 640 times
Carzikan (formerly known as Tostig on Great Lakes)
- assterixxx
- Journeyman Scribe
- Posts: 20
- Joined: Wed Dec 18, 2013 6:29 am
Re: [OpenEUO] Beekeeping
The script works flawless, thank you for sharing it, Yancy! With brhanson2's tweaks it works even better. Thank you too!
My only minor complaint was that it didn't dispense a Str pot, so I added a couple of lines to brhanson2's script.
Under the "function HealPotions (nX, nY)" I added this
In the "function TendBeehive (x)" I added this line, just under the two agility potions
Thanks for all your hard work and for making it easy to understand!
My only minor complaint was that it didn't dispense a Str pot, so I added a couple of lines to brhanson2's script.
Under the "function HealPotions (nX, nY)" I added this
Code: Select all
function StrengthPotions (nX, nY)
-- open gump for strength potion
UO.Click(nX+208, nY+156, true, true, false, false)
UO.Click(nX+208, nY+156, true, false, true, false)
ClickRedDots (nX, nY)
wait (500)
end
Code: Select all
StrengthPotions (nX, nY) --pour single strength
- Darain Farell
Commander of the undead army by night. Confined to a coffin by day.
Commander of the undead army by night. Confined to a coffin by day.
Re: [OpenEUO] Beekeeping
brhanson2, I tried out your modifications and they work great! Thank you so much for taking the script and running with it. I'm a pretty novice scripter so I was hoping something like that would happen if I posted it. I'm glad everyone is enjoying it!
____________________
-Nimbus
-Nimbus
Re: [OpenEUO] Beekeeping
Most don't use str pots on the hives. Most of the older bee keepers I used to talk to said it wasn't needed or didn't help much for what it was supposed to do. May have changed though dunno as I have only had bees once and it was for 3 weeks 2.5 years ago.
Re: [OpenEUO] Beekeeping
could there be a function to maybe find the kegs in a chest locked down near your hives? for those of us who dont have bags of holding.
“No tree, it is said, can grow to heaven unless its roots reach down to hell.”
― C.G. Jung
― C.G. Jung
Re: [OpenEUO] Beekeeping
The Manhattan Project comes to mind.
Re: [OpenEUO] Beekeeping
brhanson2 - Only issue I have with your modification for finding the beehives is if you are experiencing extreme lag or occasional disconnects. The script as written has a tendency to hang if there is longer than a 5-10 second lag spike, and without being able to comment out specific hives, the script will start trying to add to hives you have already completed. As long as you are on a good connection the modifications work great, but just a warning to others who may be using it on a less than reliable connection. Also, I still have yet to see a sixth dot, been beekeeping for almost 5 months now and have never encountered it - very weird.
Fiernocht - If you want to add something like a keg searcher to the script, please do. As long as you maintain your hives daily, you will never need a heal keg, in which case the max weight from 3 full kegs is 300, which leaves 100 weight available for all your other stuff in your pack. If you do need to use a heal keg, I would recommend just keeping a quarter full one on hand so you only need an extra 25 weight to handle it. For that reason, I'm not personally going to build out something like what you were suggesting. Again, feel free to add it if you would like, that is why I posted this publicly.
Dramoor - I agree, I've been beekeeping for many months now and my experimentation with the STR potions ended quickly when I realized I was effectively trading a poison or cure potion for a strength potion on each hive, and just ended up having to carry around another keg.
I'm so excited that this script is helping people out, and I'm thankful for the feedback and updates from everyone! Thank you!!!
Fiernocht - If you want to add something like a keg searcher to the script, please do. As long as you maintain your hives daily, you will never need a heal keg, in which case the max weight from 3 full kegs is 300, which leaves 100 weight available for all your other stuff in your pack. If you do need to use a heal keg, I would recommend just keeping a quarter full one on hand so you only need an extra 25 weight to handle it. For that reason, I'm not personally going to build out something like what you were suggesting. Again, feel free to add it if you would like, that is why I posted this publicly.
Dramoor - I agree, I've been beekeeping for many months now and my experimentation with the STR potions ended quickly when I realized I was effectively trading a poison or cure potion for a strength potion on each hive, and just ended up having to carry around another keg.
I'm so excited that this script is helping people out, and I'm thankful for the feedback and updates from everyone! Thank you!!!
____________________
-Nimbus
-Nimbus
- assterixxx
- Journeyman Scribe
- Posts: 20
- Joined: Wed Dec 18, 2013 6:29 am
Re: [OpenEUO] Beekeeping
After seeing the reply's on people not using Str pots, I went to test things out myself. I started planning my reply with arguments like Str only costs 5 mandrake roots, while Cures cost 7 garlics. I felt well prepared for a good battle, but as it turned out, this isn't a battle, as much as a flat out surrender. After testing it out, I saw little to(in most cases) no change in the pot's required.
By now, I should really have learned that when Dramoor drops hints, I should listen...
As a sidenote, if you care about 5 mandrakes vs 7 garlics, you should probably go get a girlfriend, and stop obsessing about this game. *goes off looking for a girl*
Request: Would it be possible for my char to count out how many hives are finished? Just a simple "x+1" & "display x", but in LUA...
Still loving the script!
By now, I should really have learned that when Dramoor drops hints, I should listen...
As a sidenote, if you care about 5 mandrakes vs 7 garlics, you should probably go get a girlfriend, and stop obsessing about this game. *goes off looking for a girl*
Request: Would it be possible for my char to count out how many hives are finished? Just a simple "x+1" & "display x", but in LUA...
Still loving the script!
- Darain Farell
Commander of the undead army by night. Confined to a coffin by day.
Commander of the undead army by night. Confined to a coffin by day.
Re: [OpenEUO] Beekeeping
Hi guys, i hope someone can help me here. Wanted to give this a try since i've got the full set of 22 hives, so all that clicking can be tiresome. Only, it's not working for me. It does literally nothing, with either versions of this script.
I'm running EasyUO 1.5 version 204 if that's of any interest.
Thanks in advance.
I'm running EasyUO 1.5 version 204 if that's of any interest.
Thanks in advance.
"There is nothing in our intelligence that has not passed by the senses." - Aristoteles
"The ultimate seduction is not express one's feelings, but to suggest them." - Jules Barbey D'Aurevilly
"The ultimate seduction is not express one's feelings, but to suggest them." - Jules Barbey D'Aurevilly
Re: [OpenEUO] Beekeeping
You might be using wrong program. There are two versions of EasyUO. One is just EasyUO with it's own scripting language, it's version is 1.5. And there is OpenEUO which version is 0.9 which scripting language is based on lua. It's open source version of EasyUO, that have better performance from what they say. And this beekeeping script is for OpenEUO, it won't work in EasyUO.
Re: [OpenEUO] Beekeeping
Today tried the script with no success. It has problems opening the gumps, says 'You can not pick that up'. Checking the code I do not understand what all the Click commands try to do, I open the hives with a double-click but the UO.Click commands are not performing a simple left-click according to the OpenEUO wiki. Considering the feedback the game is giving, seems that the script is trying to drag the hives, which obviously cant do because are locked down.
Does the script depend on screen resolution for the coords?
Edit: apart from that, once I open the Gump, the coords returned by UO.GetCont(0) do not match with the corner of the gump, there is a (-35,-20) constant error in the reading, isnt that weird?
Edit2: I checked the agility function, the coordinate correction taking the top-left corner to find the agility potion icon also does not match in my gump. Why these differences in coordinates? I dont even want to go down the ClickRedDots function if all coordinates are wrong
Edit3: Ok, even figuring out the coordinate differences, my UO.GetPix call always returns -1. I managed to fix the coordinates to open the red dot click gump, but with the function GetPix always returning -1 its impossible to progress. I tried the function in a separate script just to print out the color of the pixel where the cursor is and always returns -1.
Does the script depend on screen resolution for the coords?
Edit: apart from that, once I open the Gump, the coords returned by UO.GetCont(0) do not match with the corner of the gump, there is a (-35,-20) constant error in the reading, isnt that weird?

Edit2: I checked the agility function, the coordinate correction taking the top-left corner to find the agility potion icon also does not match in my gump. Why these differences in coordinates? I dont even want to go down the ClickRedDots function if all coordinates are wrong

Edit3: Ok, even figuring out the coordinate differences, my UO.GetPix call always returns -1. I managed to fix the coordinates to open the red dot click gump, but with the function GetPix always returning -1 its impossible to progress. I tried the function in a separate script just to print out the color of the pixel where the cursor is and always returns -1.