Need help with Lumber macro and anti afk gathering

Discussion in 'Renaissance Discussion' started by kresso, Oct 21, 2016.

  1. kresso

    kresso New Member

    Joined:
    Oct 21, 2016
    Messages:
    18
    Likes Received:
    13
    I have been put in jail twice while chopping wood, and my macro seems to be activating the anti afk gump.

    I am a newbee and have been playing for just about 1 week now.
    So my macro for chopping wood is:

    !Loop
    Assistant.Macros.IfAction|8|-1|0
    Assistant.Macros.DressAction|Tree Chopper
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetRelLocAction|-1|0
    Assistant.Macros.PauseAction|00:00:01.1000000
    Assistant.Macros.IfAction|5|1|362
    Assistant.Macros.PauseAction|00:00:03
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.EndIfAction

    but when ever the screen verification pops up this macro seems to activate it. This has happened twice now. I don't do any gump stuff with the macro. Could anyone chime in? Thanks.
  2. jefferyjay

    jefferyjay Member

    Joined:
    Aug 17, 2013
    Messages:
    66
    Likes Received:
    39
    Chopping trees is resource gathering which you cannot do unattended. The AFK gump is designed to prevent this, and according to your information is working perfectly. You can run macros for this, but if you are not watching you will always run the risk of missing a gump and going to jail. Check out the thread below for all the details.

    http://uorforum.com/threads/anti-afk-gather-sell-system.486/
    Last edited: Oct 21, 2016
    Dun Scaith likes this.
  3. kresso

    kresso New Member

    Joined:
    Oct 21, 2016
    Messages:
    18
    Likes Received:
    13
    I was attending it, walking around tree to tree, but as soon as the gump popped up it selected some option. What level of macro can I use? I am chopping the tree and changing logs to boards with the macro.
  4. Cynic

    Cynic Well-Known Member
    UO:R Subscriber

    Joined:
    Aug 15, 2013
    Messages:
    3,263
    Likes Received:
    3,014
    If you have your macro selecting any sort of gump option then that's the culprit.

    I had to remove a tracking loop from my fishing macro because it kept putting me in jail.
    compsays and Mindless like this.
  5. kresso

    kresso New Member

    Joined:
    Oct 21, 2016
    Messages:
    18
    Likes Received:
    13
    Cynic, thanks. I will make certain that stuff is out. I thought I had a good macro but will take a second look.
  6. jefferyjay

    jefferyjay Member

    Joined:
    Aug 17, 2013
    Messages:
    66
    Likes Received:
    39
    This makes more sense, I didn't know what you meant by "activate". Maybe "Assistant.Macros.DressAction|Tree Chopper" is selecting it? If you're interested I'll dig up my old LJ macros and share.
    Last edited: Oct 21, 2016
  7. kresso

    kresso New Member

    Joined:
    Oct 21, 2016
    Messages:
    18
    Likes Received:
    13
    Ok, I will take that part out. That puts axes back in my hand when the break. I will test it for a while without that part.
  8. jefferyjay

    jefferyjay Member

    Joined:
    Aug 17, 2013
    Messages:
    66
    Likes Received:
    39
    I don't remember how I had it set. Maybe try the Arm/Disarm hotkey instead of an actual dress action.
  9. kresso

    kresso New Member

    Joined:
    Oct 21, 2016
    Messages:
    18
    Likes Received:
    13
    Yeah, I would be interested in your macros. Thanks a ton. I will set the hotkey since I am watching it anyways when it breaks, but it isn't to much trouble to drag and drop. I just like scripting : )
  10. That Guy

    That Guy Well-Known Member
    UO:R Donor

    Joined:
    Apr 26, 2016
    Messages:
    396
    Likes Received:
    412
    One thing you can do is remove all wait for targets and replace with simple pauses. Also if you bring a pack horse you can set them as a container for an organizer agent. I have found that making macros as basic as possible helps a ton in removing undesired actions from taking place.
  11. kresso

    kresso New Member

    Joined:
    Oct 21, 2016
    Messages:
    18
    Likes Received:
    13
    Using the pack horse as an organizer is great! Thanks so much, that helps a ton.
    That Guy likes this.
  12. jefferyjay

    jefferyjay Member

    Joined:
    Aug 17, 2013
    Messages:
    66
    Likes Received:
    39
    So after careful review...I'm curious how much RL hours I put into some of these. I'm pretty sure I had more, possibly better ones, but my old laptop hard drive took a dive a year or two ago and I lost some epic data. At any rate, here are the ones I found with a brief description of each. Some of these include movement. I recommend removing these steps as this causes a glitch in the game where you can't move fluently. Unless this was patched you have to restart the client to fix. At least a couple of them drop boards to a pack animal which I believe you can just use the re-target option within Razor. As of their creation, I don't know that sorting or organizing to a pack animal was (or is) possible.

    This first one was a fully automated macro including movement, cutting logs into boards, and dropping them onto a pack animal. I'm not 100% but I may have been using an axe instead of a hatchet (likely on another shard) since they didn't deteriorate like hatchets so there was no need to re-equip anything. It works, but as mentioned the walking in a macro causes a bug, not to mention the itch to not pay attention to the game window can easily land you in jail.
    !Loop
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|2
    Assistant.Macros.TargetRelLocAction|-2|0
    Assistant.Macros.PauseAction|00:00:00.7770000
    Assistant.Macros.IfAction|4|0|use an axe
    Assistant.Macros.PauseAction|00:00:00.7770000
    Assistant.Macros.WalkAction|0
    Assistant.Macros.PauseAction|00:00:00.8880000
    Assistant.Macros.HotKeyAction|0|Play: LJtest
    Assistant.Macros.ElseAction
    Assistant.Macros.PauseAction|00:00:01.1110000
    Assistant.Macros.ForAction|6
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetRelLocAction|-2|0
    Assistant.Macros.PauseAction|00:00:04.4440000
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.PauseAction|00:00:00.7770000
    Assistant.Macros.LiftTypeAction|7127|10
    Assistant.Macros.DropAction|0x10B365|(-1, -1, 0)|0
    Assistant.Macros.PauseAction|00:00:01.1110000
    Assistant.Macros.EndForAction
    Assistant.Macros.WalkAction|0
    Assistant.Macros.PauseAction|00:00:00.7770000
    Assistant.Macros.WalkAction|0
    Assistant.Macros.EndIfAction


    This one is very similar to the first, but includes a manual movement to pick up and equip a hatchet each loop. Everything else in the first description applies here also.
    !Loop
    Assistant.Macros.LiftTypeAction|3907|1
    Assistant.Macros.DropAction|0x53551|(0, 0, 0)|2
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|2
    Assistant.Macros.TargetRelLocAction|-2|0
    Assistant.Macros.PauseAction|00:00:00.7770000
    Assistant.Macros.IfAction|4|0|use an axe
    Assistant.Macros.PauseAction|00:00:00.7770000
    Assistant.Macros.WalkAction|0
    Assistant.Macros.PauseAction|00:00:00.8880000
    Assistant.Macros.HotKeyAction|0|Play: LJtest
    Assistant.Macros.ElseAction
    Assistant.Macros.PauseAction|00:00:01.1110000
    Assistant.Macros.ForAction|6
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetRelLocAction|-2|0
    Assistant.Macros.PauseAction|00:00:04.4440000
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.PauseAction|00:00:00.7770000
    Assistant.Macros.LiftTypeAction|7127|10
    Assistant.Macros.DropAction|0x10B365|(-1, -1, 0)|0
    Assistant.Macros.PauseAction|00:00:01.1110000
    Assistant.Macros.EndForAction
    Assistant.Macros.WalkAction|0
    Assistant.Macros.PauseAction|00:00:00.7770000
    Assistant.Macros.WalkAction|0
    Assistant.Macros.EndIfAction


    This was one of my last ones and although its very simple, it requires a lot more attention to the game. You have to manually equip a new hatched when required, and just walk along a North to South path of trees with a pack animal in tow. Basically you chop the tree, cut the log, place the board, then move to the next tree when it says its out of wood.
    !Loop
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetRelLocAction|-1|0
    Assistant.Macros.PauseAction|00:00:01.5550000
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.WaitForTargetAction|1
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.PauseAction|00:00:00.5550000
    Assistant.Macros.LiftTypeAction|7127|10
    Assistant.Macros.DropAction|0x61143|(-1, -1, 0)|0


    I do have much simpler ones (which im sure you already done) and 1 much more complicated that I don't think is relevant, but if nothing else hopefully you can use something in these or at least find some ideas to tweak. I think your safest bet would be using the equip lines (1 and 2) from the second macro with the remainder of the third and just manually move when you need to. Any questions let me know. Good luck!
  13. Mindless

    Mindless Well-Known Member
    UO:R Subscriber

    Joined:
    Aug 21, 2014
    Messages:
    1,357
    Likes Received:
    1,153
    You can also right click the wait for target and edit the timeout to not be so exteme. It'll make the macro more efficient than hard pauses.
  14. Savage

    Savage Well-Known Member
    UO:R Donor

    Joined:
    Jan 23, 2015
    Messages:
    270
    Likes Received:
    350
    The two Macros I used to chop a few hundred thousand boards were these basic macros.

    Nothing fancy, but I never got jailed for these.

    This first one is used with the "drop logs to your feet" checked in razor, I used it when gaining skill and locating Oak.
    Code:
    !Loop
    Assistant.Macros.DoubleClickAction|1077725841|3907
    Assistant.Macros.PauseAction|00:00:00.6000000
    Assistant.Macros.TargetRelLocAction|1|-1
    Assistant.Macros.PauseAction|00:00:03
    
    Target Rel Loc can be changed, depends on what side of the tree you like to walk on.

    The second one chops until my pre-set weight is reached, and it makes logs into boards.
    Code:
    !Loop
    Assistant.Macros.DoubleClickAction|1077725806|3907
    Assistant.Macros.PauseAction|00:00:00.6000000
    Assistant.Macros.TargetRelLocAction|1|-1
    Assistant.Macros.PauseAction|00:00:04
    Assistant.Macros.IfAction|5|1|350
    Assistant.Macros.DoubleClickTypeAction|3907|True
    Assistant.Macros.PauseAction|00:00:00.6000000
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.PauseAction|00:00:02
    Like I said, nothing fancy, but its not a bot, you walk, stop and reload axes manually.
  15. kresso

    kresso New Member

    Joined:
    Oct 21, 2016
    Messages:
    18
    Likes Received:
    13
    Thanks everyone. Those macros look good and seems to be working. It looks like the dress part was doing the gump, since I removed that I haven't been jailed! Gotta push through to GM by axe/dexxer!
  16. Sheepdog

    Sheepdog Well-Known Member

    Joined:
    Jun 29, 2017
    Messages:
    839
    Likes Received:
    1,065
    Dragging up an old post because it seems the most relevant to ask a question in rather than start a new topic.

    Is it possible to toggle the drop resources to feet option in Razor and then AFK walk around lumberjacking?

    Because "technically" you're not walking around gathering resources if you're dropping everything. You're just gaining a skill, like many other AFK macro-able/bank/house sitting skills.

    Thanks in advance for any answers!
  17. Artex

    Artex Well-Known Member
    UO:R Subscriber

    Joined:
    Mar 12, 2014
    Messages:
    982
    Likes Received:
    448

    You can spar and gain lumberjack skill to a certain point. Resource gathering afk is forbidden in any context. Someone using a second toon could afk gather logs. Really doesn't take that long to GM LJ. Fishing on the beach is allowed afk I believe? imo wood has value and fish steaks have none.
  18. MikeK

    MikeK Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 29, 2014
    Messages:
    3,124
    Likes Received:
    1,787
    Here's my macro. I can explain in more detail on IRC if you want.

    It will chop wood in 1 tile, chop till it's out. If your weight is over 300, it will cut the logs into boards and put boards it into the backpack of a pack horse. You just need the pack horse backpack open. You'll have to re-assign parts of the drop locations, since it'll drop wherever the open packhorse backpack is located on your screen.

    You have to be attended, but all you need to do is move the char next to trees and occasionally go to the bank to dropoff boards. Recommend chopping in Skara, guardzone.

    !Loop
    Assistant.Macros.IfAction|8|-1|0
    Assistant.Macros.LiftTypeAction|3907|1
    Assistant.Macros.DropAction|0x6B64|(0, 0, 0)|2
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.TargetRelLocAction|-1|0
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|16|7|guards
    Assistant.Macros.SpeechAction|0|52|3|ENU|5|48|7|22|177|153|all guard me
    Assistant.Macros.PauseAction|00:00:01.1000000
    Assistant.Macros.IfAction|5|1|300
    Assistant.Macros.DoubleClickTypeAction|3907|True
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.LiftTypeAction|7127|350
    Assistant.Macros.DropAction|0x7D27D|(-1, -1, 0)|0
    Assistant.Macros.EndIfAction
  19. Patek

    Patek Active Member
    UO:R Donor

    Joined:
    Mar 29, 2017
    Messages:
    273
    Likes Received:
    244
    In terms of policy nerp, as you're gathering resources, you're just choosing to throw them away :)
    Last edited: Jul 15, 2017

Share This Page