PRB V2.0 - Fully Automated Reagent Buying Macro System for UOR!

Discussion in 'Guides' started by Patek, Jan 20, 2018.

  1. Patek

    Patek Active Member
    UO:R Donor

    Joined:
    Mar 29, 2017
    Messages:
    273
    Likes Received:
    244
    Afternoon all,

    I'd like to introduce you to the freshly updated UOR version 2.0 of the Patek Reagent Buyer Macro (PRB)!

    The macro is a fully automated 'one click' reagent buyer that goes to all 26 mage and reagent shops (Occlo is specifically excluded) and can buy millions of gp a day worth of regs, empty bottles and/or blank scrolls if you let it run. It runs on 110 cross-linked macros that call each other automatically.

    I've decided to share this macro purely to enable more people to be able to buy bulk reagents whenever they may want. I'm also keen on helping people better understand Razor and the macro'ing system and I believe those who use this macro would get a helping hand in understanding large-scale macros. That being said, if you just want bulk reagents, this macro will do you fine and you don't need to know much of any Razor before-hand.

    Macro Includes:
    - Fully automated recall to and from all mage shops including T2A with included fail-over redundancies for blocked locations.
    - Fully automated walking of stores and buying
    - Fully automated de-stocking and re-stocking and bank
    - Built in danger avoidance through cycling bank recall spots
    - Very high server save tolerance
    - Tweakable reagent buyers to get whatever combination of reagents, empty bottles and/or scrolls you may want

    The package includes the following:
    - 110 macros
    - A 50 page PDF with granular installation instructions, pictures of where to mark runes, an overview of how the macro functions, full Razor setup guide etc. Lots of pictures and step-by-step instructions to make it easy!
    - Razor .xml profile file for the buyer (includes buyers, counters, organizers, restocks etc.)

    Download Link:
    https://mega.nz/#!Zp5hgIpB!YOjT707091YNzHKUrgR0pjPfLV3o_DaFgQleR_G8zzs

    The Mega link contains all files in a .zip:
    PRB V2.pdf
    PRB-V2-1.xml
    PRB IDs.txt
    [PRB] folder with 110 macros


    If you have any questions or find any bugs let me know! One of the good things about this system is slotting a new version in takes only a few minutes, so i'm intending to keep a full bug report registry to enforce quality assurance.

    Cheers and all the best.


    - Patek
    Last edited: Nov 16, 2019
    Rydian01, Ahirman, Azerothian and 3 others like this.
  2. Patek

    Patek Active Member
    UO:R Donor

    Joined:
    Mar 29, 2017
    Messages:
    273
    Likes Received:
    244
    Bug Reports:
    - Initial release had a disparity between empty bottle and blank scroll counter references in macros vs counters. Updated previous references throughout macros to EMPTYBOTTLES and BLANKSCROLLS to EMPTYBOT and BLANKSCRL respectively in line with new naming convention. Updated version uploaded and the Mega link now points to the latest release.

    - Minor one. Profile was set to queue actions "True". This has been changed to "False". Updated version uploaded and the Mega link now points to the latest release.

    - Weight calculations for the Buy Agent in the macro are currently too...ambitious. It is currently set to 360 of each reagent, this should be lowered to ~330. A fool-proof way to check your exact limit, especially if your character wears lots of clothes/hats, is to load up on 30 of each recall reagent + 4000gp and see what the difference between current and maximum weight is, as that number x 10 is the maximum total reagents you can carry. Updated version uploaded and the Mega link now points to the latest release.

    - A feature added as a safeguard (RecallToShop reg counting) has been removed as it sat in the incorrect order of operations and could cause a macro hang under certain circumstances. Updated version uploaded and the Mega link now points to the latest release.

    - The counters used for blank scrolls and empty bottles are not aligned between the profile and the macro files (somehow this crept back in between versions) which means empty bottles and scrolls wont organize during bank cycles. This was changed early on, but the latest macro release still had the legacy calls in the macro. This will be updated in V2.1, but the quick-fix until then is: Open all Bank and BankT2A files in NotePad++ and replace all EMPTYBOTTLES with EMPTYBOT and replace all BLANKSCROLLS with BLANKSCRL. That will get it working.

    - The item ID in the empty bottle / blank scroll Organizer-Agent for blank scrolls may be incorrect. Will be added to V2.1, but quick-fix is simply remove the line in the Organizer-Agent and target another blank scroll to add the correct one.

    - The PRB installation document makes mention of 114 macros, when in actuality there are 110 (this was due to a mid-construction design change). In addition, the find-and-replace will have 112 for PRBCARRY and 63 for PRBPOUCH as opposed to the 116 and 65 listed due to this difference in macro numbers. This will be updated to V2.1, but wont cause any issues during installation of the current version.


    Items planned for V2.1:
    - Additional stores for blank scrolls. Will be able to turn on and off easily.
    - Rewind feature to go back to the same store if they had more stock. Will be able to turn on and off easily.

    - Updated PRB PDF with specific instructions in case the Carry runebook is lost
    - Updated PRB PDF with instructions on adding new versions
    - I've been made aware of another mage vendor at the Yew Prison. Will monitor this to see if I can add (as long as the spawn doesnt move around)
    - LanDarr’s suggestions RE ‘Say’ statement order will be fully integrated
    - Azerothian has helped a lot with things to add in such as fixing the walk path at locations to match the spawn etc.
    Last edited: Feb 12, 2018
    Rydian01, Fin and Azerothian like this.
  3. Patek

    Patek Active Member
    UO:R Donor

    Joined:
    Mar 29, 2017
    Messages:
    273
    Likes Received:
    244
    Decided to consolidate the sold pouch file links into a single spot.

    Below are all the people who've bought a PRB kit with their specific variables applied to the latest 23rd Jan release (includes RecallToShop fix and Buy Agent re-weighing):

    Landarr:
    https://mega.nz/#!RoAnVJAK!hhUpqPMeoNt-hhCiUHI5iGHfkjeJAl7dhpY7nxheCWk

    Azerothian:
    https://mega.nz/#!AsQwjIBT!yFDp6fG81wY-76w8oKHGlF3aDqSGaOdSJcQ5sLHOGLI

    Cerofate:
    https://mega.nz/#!58BykTYY!cQGMLFBfbBZlEEXqL6sHItib12rQRrxHkP7Z946eAuA

    midgetbob:
    https://mega.nz/#!Y1RQAajQ!DXi_BpOpdMF_7an-yhZhcaoAI7LWtd1Oimatd12jM1A

    Rextacy:
    https://mega.nz/#!Q8oVXKrT!ksD9k1o4hQzgPm89yWTcMaiItfJchmm0b8OupsUbbhk

    X-Factor:
    https://mega.nz/#!phIAjawA!TitDcYUWMKEZ4wQ_6KOIqQj3NjMipIeTtfCIhLG8yPk
    Last edited: Feb 12, 2018
    Rydian01 and Azerothian like this.
  4. Fin

    Fin Well-Known Member
    UO:R Subscriber

    Joined:
    Aug 20, 2014
    Messages:
    481
    Likes Received:
    395
    Mother of god!
  5. Patek

    Patek Active Member
    UO:R Donor

    Joined:
    Mar 29, 2017
    Messages:
    273
    Likes Received:
    244
    Couple of people let me know MEGA link went dead, so i've reuploaded and updated the link.

    Enjoy the auto-buying :)
    MikeK and eherruh like this.
  6. Carm

    Carm Active Member
    UO:R Donor

    Joined:
    May 23, 2020
    Messages:
    350
    Likes Received:
    225
    Patek,

    Small note for any future updates:

    I had to manually adjust all the restock and organization agents that had a single number (Organizer 2, restock 1, etc.) to have a 2 digit format (Organizer 02, restock 01, etc.) in order for this to work for me. Other than that, fantastic job.
  7. Patek

    Patek Active Member
    UO:R Donor

    Joined:
    Mar 29, 2017
    Messages:
    273
    Likes Received:
    244
    Cheers and glad its working well :).

    The CUO Razor updates changed the format of Agents to have a prepended '0' so they're all 2 characters long (so now its 01, 02, 03 as opposed to 1, 2, 3). If i get time i'll update it to V2.1 and tune it for CUO, but for anyone installing it now Carm is correct, you'll need to do a 'find replace' for the agents to add in the '0' before all agents under 10.

Share This Page