~Zoning~ Harvest Bot
Posted: April 20th, 2005, 1:28 pm
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.
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!
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!