sorting wands macro

Discussion in 'Guides' started by JohnM, Oct 28, 2018.

  1. JohnM

    JohnM Well-Known Member
    UO:R Donor

    Joined:
    Mar 27, 2015
    Messages:
    2,284
    Likes Received:
    1,570
    Alright, here's what I do to sort wands. It's not perfect, but looking to improve it if possible.

    It's still a work in progress, any feedback is appreciated:

    Here goes - to make this work, you have to set your "Range Check Last Target" to 0 and not be standing on the bags with the wands in it. You will also need to setup counters for the types of wands

    You also need a dagger in your pack


    Kick off the macro:
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\grab wand - One restock agent for each type of wand, targeting the same pack.

    Grab a wand:
    Assistant.Macros.IfAction|50|0|0|f2wand
    Assistant.Macros.HotKeyAction|0|Restock Agent-02
    Assistant.Macros.AbsoluteTargetAction|0|0|1087048339|2546|165|15|3705
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|1|1|f2wand
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\target f2 wand in pack
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|0|0|f3wand
    Assistant.Macros.HotKeyAction|0|Restock Agent-03
    Assistant.Macros.AbsoluteTargetAction|0|0|1087048339|2546|165|15|3705
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|1|1|f3wand
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\target f3 wand in pack
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|0|0|f4wand
    Assistant.Macros.HotKeyAction|0|Restock Agent-04
    Assistant.Macros.AbsoluteTargetAction|0|0|1087048339|2546|165|15|3705
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|1|1|f4wand
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\target f4 wand in pack
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|0|0|f5wand
    Assistant.Macros.HotKeyAction|0|Restock Agent-05
    Assistant.Macros.AbsoluteTargetAction|0|0|1087048339|2546|165|15|3705
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|1|1|f5wand
    Assistant.Macros.PauseAction|00:00:01
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\target f5 wand in pack
    Assistant.Macros.EndIfAction

    Great, you pulled a wand, now Target the wand in your pack (F2 type posted only), you will need one of these for each type of wand

    !Loop
    Assistant.Macros.HotKeyAction|1060|
    Assistant.Macros.TargetTypeAction|False|3570
    Assistant.Macros.PauseAction|00:00:00.2500000
    Assistant.Macros.DoubleClickTypeAction|3922|True
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.LastTargetAction
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|bladed
    Assistant.Macros.UseSkillAction|3
    Assistant.Macros.WaitForTargetAction|10
    Assistant.Macros.HotKeyAction|1058|
    Assistant.Macros.PauseAction|00:00:00.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\start organizing


    You eventually identified it, now sort it (12 bags) and start the process over again:
    Assistant.Macros.IfAction|4|0|arrow
    Assistant.Macros.HotKeyAction|0|Organizer Agent-01
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|mana
    Assistant.Macros.HotKeyAction|0|Organizer Agent-02
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|identification
    Assistant.Macros.HotKeyAction|0|Organizer Agent-03
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|fireball
    Assistant.Macros.HotKeyAction|0|Organizer Agent-04
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|weakness
    Assistant.Macros.HotKeyAction|0|Organizer Agent-05
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|greater
    Assistant.Macros.HotKeyAction|0|Organizer Agent-07
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|healing
    Assistant.Macros.HotKeyAction|0|Organizer Agent-06
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|lightning
    Assistant.Macros.HotKeyAction|0|Organizer Agent-08
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|feeblemindedness
    Assistant.Macros.HotKeyAction|0|Organizer Agent-09
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|clumsi
    Assistant.Macros.HotKeyAction|0|Organizer Agent-10
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|harming
    Assistant.Macros.HotKeyAction|0|Organizer Agent-11
    Assistant.Macros.PauseAction|00:00:00.6500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|0|Organizer Agent-12
    Assistant.Macros.PauseAction|00:00:00.7500000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\kick off macro
    Assistant.Macros.EndIfAction
    Last edited: Apr 12, 2020
    Leopold, eherruh and Buga like this.
  2. JohnM

    JohnM Well-Known Member
    UO:R Donor

    Joined:
    Mar 27, 2015
    Messages:
    2,284
    Likes Received:
    1,570
    updated org and restock agents for CUO (format is Agent-01 instead of Agent-1

    Setup these counters

    upload_2020-4-12_12-56-30.png

    Put the macros into a folder - Sorting\Wands\New, or edit the macro location in the macros themselves

    upload_2020-4-12_12-57-16.png
  3. JohnM

    JohnM Well-Known Member
    UO:R Donor

    Joined:
    Mar 27, 2015
    Messages:
    2,284
    Likes Received:
    1,570
    Updated the Grab wand macro to use a variable

    Setup this variable - target your bag to grab a wand from

    upload_2020-4-12_13-0-9.png


    Assistant.Macros.IfAction|50|2|1|f2wand
    Assistant.Macros.HotKeyAction|0|Restock Agent-02
    Assistant.Macros.AbsoluteTargetVariableAction|wandbag
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|3|0|f2wand
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\target f2 wand in pack
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|2|1|f3wand
    Assistant.Macros.HotKeyAction|0|Restock Agent-03
    Assistant.Macros.AbsoluteTargetVariableAction|wandbag
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|3|0|f3wand
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\target f3 wand in pack
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|2|1|f4wand
    Assistant.Macros.HotKeyAction|0|Restock Agent-04
    Assistant.Macros.AbsoluteTargetVariableAction|wandbag
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|3|0|f4wand
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\target f4 wand in pack
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|2|1|f5wand
    Assistant.Macros.HotKeyAction|0|Restock Agent-05
    Assistant.Macros.AbsoluteTargetVariableAction|wandbag
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|50|3|0|f5wand
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\target f5 wand in pack
    Assistant.Macros.EndIfAction
  4. JohnM

    JohnM Well-Known Member
    UO:R Donor

    Joined:
    Mar 27, 2015
    Messages:
    2,284
    Likes Received:
    1,570
    F2 Wand

    !Loop
    Assistant.Macros.IfAction|4|0|world will save
    Assistant.Macros.PauseAction|00:00:30
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1060|
    Assistant.Macros.TargetTypeAction|False|3570
    Assistant.Macros.PauseAction|00:00:00.2500000
    Assistant.Macros.DoubleClickTypeAction|3922|True
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|world will save
    Assistant.Macros.PauseAction|00:00:20
    Assistant.Macros.EndIfAction
    Assistant.Macros.LastTargetAction
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|bladed
    Assistant.Macros.PauseAction|00:00:05
    Assistant.Macros.UseSkillAction|3
    Assistant.Macros.WaitForTargetAction|10
    Assistant.Macros.HotKeyAction|1058|
    Assistant.Macros.PauseAction|00:00:00.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\start organizing


    F3 Wand

    !Loop
    Assistant.Macros.IfAction|4|0|world will save
    Assistant.Macros.PauseAction|00:00:30
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1060|
    Assistant.Macros.TargetTypeAction|False|3570
    Assistant.Macros.PauseAction|00:00:00.2500000
    Assistant.Macros.DoubleClickTypeAction|3922|True
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|world will save
    Assistant.Macros.PauseAction|00:00:20
    Assistant.Macros.EndIfAction
    Assistant.Macros.LastTargetAction
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|bladed
    Assistant.Macros.PauseAction|00:00:05
    Assistant.Macros.UseSkillAction|3
    Assistant.Macros.WaitForTargetAction|10
    Assistant.Macros.HotKeyAction|1058|
    Assistant.Macros.PauseAction|00:00:00.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\start organizing
  5. JohnM

    JohnM Well-Known Member
    UO:R Donor

    Joined:
    Mar 27, 2015
    Messages:
    2,284
    Likes Received:
    1,570
    F4 wand

    !Loop
    Assistant.Macros.IfAction|4|0|world will save
    Assistant.Macros.PauseAction|00:00:30
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1060|
    Assistant.Macros.TargetTypeAction|False|3572
    Assistant.Macros.PauseAction|00:00:00.2500000
    Assistant.Macros.DoubleClickTypeAction|3922|True
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|world will save
    Assistant.Macros.PauseAction|00:00:20
    Assistant.Macros.EndIfAction
    Assistant.Macros.LastTargetAction
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|bladed
    Assistant.Macros.PauseAction|00:00:03
    Assistant.Macros.UseSkillAction|3
    Assistant.Macros.WaitForTargetAction|10
    Assistant.Macros.HotKeyAction|1058|
    Assistant.Macros.PauseAction|00:00:00.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\start organizing



    F5 wand

    !Loop
    Assistant.Macros.IfAction|4|0|world will save
    Assistant.Macros.PauseAction|00:00:30
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1060|
    Assistant.Macros.TargetTypeAction|False|3573
    Assistant.Macros.PauseAction|00:00:00.2500000
    Assistant.Macros.DoubleClickTypeAction|3922|True
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|world will save
    Assistant.Macros.PauseAction|00:00:20
    Assistant.Macros.EndIfAction
    Assistant.Macros.LastTargetAction
    Assistant.Macros.PauseAction|00:00:00.3000000
    Assistant.Macros.IfAction|4|0|bladed
    Assistant.Macros.PauseAction|00:00:02
    Assistant.Macros.UseSkillAction|3
    Assistant.Macros.WaitForTargetAction|10
    Assistant.Macros.HotKeyAction|1058|
    Assistant.Macros.PauseAction|00:00:00.5000000
    Assistant.Macros.HotKeyAction|0|Play: Sorting\Wands\New\start organizing
  6. JohnM

    JohnM Well-Known Member
    UO:R Donor

    Joined:
    Mar 27, 2015
    Messages:
    2,284
    Likes Received:
    1,570
    upload_2020-4-12_13-16-26.png
    Last edited: Apr 12, 2020
  7. JohnM

    JohnM Well-Known Member
    UO:R Donor

    Joined:
    Mar 27, 2015
    Messages:
    2,284
    Likes Received:
    1,570
    upload_2020-4-12_13-11-44.png

    Org agents 2-5 setup with all 4 wands
  8. JohnM

    JohnM Well-Known Member
    UO:R Donor

    Joined:
    Mar 27, 2015
    Messages:
    2,284
    Likes Received:
    1,570
    upload_2020-4-12_13-12-28.png

    Restock agents are only using one type of wand each

    upload_2020-4-12_13-12-52.png
  9. Leopold

    Leopold Well-Known Member
    UO:R Subscriber

    Joined:
    Jul 29, 2017
    Messages:
    679
    Likes Received:
    915
    Great macros! I made a few changes which I will PM you.

Share This Page