need feedback on LJ macro attempt

Discussion in 'Guides' started by Caska VS Trees, Apr 20, 2016.

  1. Caska VS Trees

    Caska VS Trees Well-Known Member

    Joined:
    Mar 25, 2016
    Messages:
    341
    Likes Received:
    515
    Hi! I've been trying to teach myself Razor a bit more, and I could really use some advice.

    My hope is to make a macro that lets me clean out a tree, chop the logs, and dump them to my stupid door blocking pack horse (who I love very much I swear). I guess we can't use system message for LJing so I tested it out and it seems like every "fresh" tree has 60 logs on it. So after 60 I tell myself and give some time to move on to a new tree. Then when I'm gonna hit my weight limit it moves the boards to my packy. If there's anything I could improve upon I'm all ears:)

    [CODE
    !Loop
    Assistant.Macros.IfAction|8|0|0
    Assistant.Macros.HotKeyAction|0|Dress: chop
    Assistant.Macros.DressAction|chop
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.LastTargetAction
    Assistant.Macros.PauseAction|00:00:05
    Assistant.Macros.IfAction|50|1|59|logs
    Assistant.Macros.SpeechAction|0|3|3|ENU|0|finished
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.PauseAction|00:00:30
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|5|1|380
    Assistant.Macros.HotKeyAction|0|Organizer Agent-1
    Assistant.Macros.PauseAction|00:00:30
    Assistant.Macros.EndIfAction
    [/CODE]
    Last edited: Apr 20, 2016
  2. wylwrk

    wylwrk Well-Known Member

    Joined:
    Jun 18, 2015
    Messages:
    5,473
    Likes Received:
    8,963
    I've had good results with 'use item in hand'.


    How's this one working for you?
  3. Caska VS Trees

    Caska VS Trees Well-Known Member

    Joined:
    Mar 25, 2016
    Messages:
    341
    Likes Received:
    515
    Yeah 'use item in hand' is awesome :)

    My main trouble has been oak. Since I can't seem to find a way to get Razor to tell the difference, if I have some oak logs in my pack, it counts them, but it only chops one type into boards, so then my numbers get thrown off. I thought maybe sticking a second go-over would work, something like:
    Code:
    Assistant.Macros.IfAction|50|1|59|logs
    Assistant.Macros.SpeechAction|0|3|3|ENU|0|finished
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.IfAction|50|1|1|logs
    Assistant.Macros.SpeechAction|0|3|3|ENU|0|oops
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.TargetTypeAction|False|7133
    Assistant.Macros.EndIfAction
    Assistant.Macros.PauseAction|00:00:30
    Assistant.Macros.EndIfAction
    
    And I think that's helped a bit, but sometimes I still do get a little off and need to restart the macro. It's a lot easier than doing it all by hand like I was though, that's for sure :oops:

    I'm also still pretty bad with my sense of how much time I need between each action so I keep fiddling.
  4. wylwrk

    wylwrk Well-Known Member

    Joined:
    Jun 18, 2015
    Messages:
    5,473
    Likes Received:
    8,963
    naw, try putting one item type right after the other after a slight pause of using item type/hatchet
  5. Caska VS Trees

    Caska VS Trees Well-Known Member

    Joined:
    Mar 25, 2016
    Messages:
    341
    Likes Received:
    515
    When you say item type you mean the 2 kinds of boards, right? Thing is, I can't seem to get Razor to recognize them as separate things. Logs too. Logs all come up as 1BDD and all boards come up as 1BD7. If I try to add one type and then the other to, say, an organizer agent it tells me I already added that and won't let me. So when I chop logs at 60 it will either chop the oak or the regular and stop. And when I hit the agent at the end of that macro, it takes both kind of boards regardless. I've had the same issue with gold/plat coins - Razor seems to think they're the same thing. If there's some alternate item IDs I could be using I'd be all over that solution.
  6. wylwrk

    wylwrk Well-Known Member

    Joined:
    Jun 18, 2015
    Messages:
    5,473
    Likes Received:
    8,963
    try a for loop yet?

    for loop 1 of 2
    if logs >whatever
    chop logs by target type
    end if
    end for


    pauses where applicable
  7. Caska VS Trees

    Caska VS Trees Well-Known Member

    Joined:
    Mar 25, 2016
    Messages:
    341
    Likes Received:
    515
    !!

    That might do the trick! I'm gonna try it out and get back to you. Thanks for the advice BTW!
  8. Rick O'Connell

    Rick O'Connell Member

    Joined:
    Apr 8, 2014
    Messages:
    94
    Likes Received:
    66

    Dont bother checking for logs...just chop them by type, twice. It doesnt matter if you have any or not...maybe put a slight pause between the two chops
  9. Caska VS Trees

    Caska VS Trees Well-Known Member

    Joined:
    Mar 25, 2016
    Messages:
    341
    Likes Received:
    515
    but I wanted to be FANCY :p
    that's a good point, the second check isn't saving me anything but a "item not found" message quickly scrolled through.

    I'm at work for the next 7 hours but I'm gonna be twitching the whole time to get back to this!

    Caska
  10. Caska VS Trees

    Caska VS Trees Well-Known Member

    Joined:
    Mar 25, 2016
    Messages:
    341
    Likes Received:
    515
    It worked! I do have to watch to see when to guide it to the next tree but overall it works really smoothly now. Thanks guys! :D

Share This Page