Page 1 of 2

~Zoning~ Harvest Bot

Posted: April 20th, 2005, 1:28 pm
by simucal
I am currently working on modifying the harvest bot so we can use it in instanced zones like Cove of Decay and have it zone out when no more resources are found, zone back in, then run back to the middle of zone and continue harvesting.

I am currently testing this in Blood Skull Valley because I dont have Cove of Decay access just yet, I should later today.

Code: Select all

sub HandleNoResourcesNearby 
   writeLogLine("No Resources in this area. Zoning to reset!")
   XUScriptPlugin.staStatus.Text = "Zoning to refresh nodes!"
   XUScriptHost.KeyUp(VirtualKey.VK_NUMPAD5)    ' Hit the numpad 5 key to reset orientation
   XUScriptHost.Sleep 200
   XUScriptHost.KeyDown(VirtualKey.VK_NUMPAD5)
   NavigateXY oServiceObject,-7.27,-48.26       ' Run to exit of BSV
   Sleep 1000
   XUScriptHost.LMouseClick 600, 500, 2, 0    ' Double clicks door to exit BSV (navigator will force wait)
   NavigateXY oServiceObject,-3.33,-48.34       ' Run to ent of BSV after zoning out
   XUScriptHost.LMouseClick 600, 500, 2, 0    ' Double clicks door to enter BSV
   NavigateXY oServiceObject,IX,IY       ' Run back to origin in BSV
end sub


Here are a few of the issues I am having with it not working so far:

1.) When I tell it to "NavigateXY oServiceObject,-7.27,-48.26" it doesnt run to the door, it trys to run into the wall. What am I doing wrong when trying to get it to run to a loc? I tested this out in the middle of commonlands and could NOT get it to run back to the exact spot i had /loc after I had moved and started the Navigate function.

2.) The mouse click does it at position 600,500 which works for me, but it might not work for people using other resolutions / screen sizes. Is there a way to find the coordinates for the exact middle of peoples screens?

I am not a coder and I really dont know what I'm doing.. this is just how I thought it would work in my head and if any of you more skilled members can help me refine/rewrite this to get it working it would be MUCH appreciated. Imagine constant harvesting in T4 zone with no danger and constant harvestable nodes!

Re: ~Zoning~ Harvest Bot

Posted: April 20th, 2005, 7:26 pm
by octaveus
wow, looks like you are doing good. Keep up the great work! If you could get this working.. it would be AWESOME!!!

Re: ~Zoning~ Harvest Bot

Posted: April 21st, 2005, 8:42 am
by simucal
Anyone?

Posted: April 21st, 2005, 4:49 pm
by wyvernx
I beleive you can hit the "U" button to open doors instead of clicking them.

Posted: April 21st, 2005, 4:49 pm
by wyvernx
also, might be good to grab the latest harvester codebase (with waypoints, etc) and go from there.

Re: ~Zoning~ Harvest Bot

Posted: April 21st, 2005, 10:41 pm
by simucal
ok, do you see anything wrong with this wyrv or how we could get it to work better?

Posted: April 21st, 2005, 11:28 pm
by wyvernx
Honestly I havnt looked at it.

I suggest PM'ing the authors that have updated the harvester before.

Posted: April 24th, 2005, 2:52 am
by sirusdv
simucal, send me an IM when I am on, need some info from you...

Posted: April 25th, 2005, 7:28 am
by twilightadmin
wyvernx";p="62632 wrote:I beleive you can hit the "U" button to open doors instead of clicking them.

what we need is a way to interact with objects without having to 'click' on them- I was working on a simple macro for somthing similar (but unrelated) to this, but ran into problems due to the fact that if another player happened to be standing between me and the object, I clicked on that player rather than the object.

Posted: April 25th, 2005, 3:44 pm
by wyvernx
What object are you wanting to interract with?

And how?

I mean resources can be targeted and then a button hit to gather from it.

What more are you wanting?

Re: ~Zoning~ Harvest Bot

Posted: April 25th, 2005, 9:26 pm
by quietlurker
Some of these instances have reuse timers... CoD is 12 hrs for example.

Re: ~Zoning~ Harvest Bot

Posted: April 25th, 2005, 10:31 pm
by simucal
You are incorrect about that, I zone in and out of CoD now, over and over.

The object we need to interact with is the door to zone.

Posted: April 26th, 2005, 5:45 am
by wyvernx
can the door be tabbed to be targeted?



Also, did the "U" button not work? It might be another button, but I thought it was "U" in eq1.

Posted: April 26th, 2005, 4:21 pm
by sirusdv
its F in EQ2 and no doors cannot be tabbed to so there really is no way to know exactly where it is besides running right up to it and brute forcing alot of screen locs and checking zoning bool.

Re: ~Zoning~ Harvest Bot

Posted: April 28th, 2005, 11:15 pm
by ulorid
My recommendation would be to set it up for specific instances with location to zone from, direction to face, mousemove so it is near the top of the screen, and then send F key for *use item*.
Logic:
manually walk to zone in loc and face the door
script memorizes
mousemove and {F} to use door
wait for zone in
memorize loc and direction of door (direction from item list)
.loop
...find nearest node
...walk to node
...{ESC} 'to clear target
....loop
......{TAB}
......while node != nearest node name
....loop x6 'reasonable number of harvest attempts
....Harvestkey 'key appropriate to node type
.Until nextnode = null
return to exitpoint


I've found all nodes harvestable in Cove of Decay, but if your instance of choice has unreachable nodes, throw in appropriate node elimination code.