Basic Harvesting *solved*
Posted: Mon Aug 02, 2010 2:41 pm
Solved.
The reason you had to bump it is because editing a post doesn't bring it to the top of the list again, so no one knows you are expecting an answer.Wundervice wrote:Okay so I decided to start with something more basic. Learning how to create a script to ID an item node (not resource) and harvest all at a single waypoint as a start to the learning process. Im thinking this is how it should be written:
<!-- #1 --><waypoint x="xxxx" z="xxxx">
player:target_Object(xxxxx,xxxx,true) <-- Not sure what the numbers are that go here tho. Item IDs, coordinates?
while player:target_Object(xxxxx,xxxx) do
sendMacro("UseSkill(1,1)") yrest(5500)
end
That would make the bot target the items nearby and harvest then with about a 5-second wait between attempts yes?
Code: Select all
player:target_Object()Code: Select all
target_Object(NameorId)Code: Select all
target_Object(NameorId,time)Code: Select all
target_Object(NameorId,time,true)Code: Select all
target_Object(NameorId,time,true,true)Code: Select all
while player:target_Object(NameorId,time) do
...Do something between clicks
endThat's the id of the item in your inventory, it's different to the id of the node you have to click. As I've said multiple times in numerous threads, use rom/getid.lua to get the id of the node.Wundervice wrote:Tests failed. Having trouble getting it to recognize harvestables.. tried the name of the item, the name of the node itself, and the item id.
<waypoints>
<!-- # 1 --><waypoint x="-1838" z="4846">
player:target_Object(206756,6000,true)
sendMacro("UseSkill(1,1)") yrest(6000)
</waypoint>
</waypoints>