All times are UTC - 5 hours [ DST ]


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Razor: How To Setup A Restock Macro
PostPosted: Sat Jul 07, 2012 7:02 pm 
Offline
UOSA Subscriber!
UOSA Subscriber!
User avatar
User Rep: Trustworthy
Post Rep: 3
Trustworthy
 Profile

Joined: Sat Oct 23, 2010 12:42 pm
Posts: 2565
Location: Trammel
Razor: How To Setup A Restock Macro

I get asked how to setup a Razor Restock Macro all the time, so I figured i'd write up a guide on how to do it. Here's the basics.

First off, create your macro and give it a name.
Image

Then go to the "Agents" tab in Razor and scroll down to Restock-1.
Image
Click on "Add (Target)..." button and select the items that you would like to restock. A box will pop up asking you to enter in the amount of said item that you would like to restock. This is the amount that Razor will make sure is in your bag. If you have 53 of something and your restock is set for 100, it will restock 47 of them. This will give you a total of 100 items again.

Now, go back to the "Macros" tab in Razor and click the "Record" button.
Image

Go to the "Hot Keys" tab in Razor and go to the Agents [+] and expand the menu for Agents.
Image
Scroll down till you see "Restock Agent-1 (not assigned)". Click "Execute Selected" and then target the container in UO that you want to Restock from.

In Razor, click on the "Macros" tab and click the "Stop" button.
Image
Your macro should look something like this.

Now you need to add in a Pause after the Restock.
Image
Left Click on the last line in your "Actions" box in Razor. This should highlight it blue. Then Right Click on that line and go to "Special Constructs" --> Then "Insert Pause/Wait..." This will bring up a Popup box where you need to select the radio button for "Pause for:" and should enter in a pause. For each item you should enter in 1,000ms. So if you're restocking 5 items, you should enter in 5,000ms.

Then you need to verify that you have the appropriate Object Delay for the UOSA Server:
Image
Go to the "More Options" tab and look for "Object Delay:" near the top left. This needs to be set for 1,000ms as this is the default for this server. Some people modify this value based off of how they write their macros or how much lag they have. If you have a higher ping, you may need to adjust this value accordingly. Many people use values between 1,000ms and 1,250ms.

Now, one thing that people often find is that their macros "break" after a while. This is often times due to them running out of particular resources, then restocking said resources. Once you restock from Zero, you give that "Absolute Target" in other parts of your macro a new ID in razor.

In order to get around this, you need to make sure you restock before you run out of all of your resources for a particular "Absolute Target". A good way to do this is to use for loops. If you have a macro that uses up 25 of each reagent, and then goes to restock...make sure you restock 100 of each reagent. This way, if a world save or lag hits you and you miss restocking that item, your macro will not break. Well, unless you're lucky enough to hit a huge lag spike on 4 consecutive restocks...in which case you just need to get a different internet provider.

Hope this helps.

L/S

_________________
Image
[20:08] <@Kaivan> We have a ridable Maahes in Green Acres.
[10:00] <TheBreadman> leeds did a takeover on secondage
[10:00] <@Derrick> hax


Tom: Get bad bro


Top
 
These Support SecondAge
Links open a new window.
UOSA Donors & Subscribers do not receive these ads.

 Post subject: Re: Razor: How To Setup A Restock Macro
PostPosted: Sun Jul 08, 2012 12:04 pm 
Offline
User avatar
User Rep: Trustworthy
Trustworthy
 Profile

Joined: Tue Feb 08, 2011 4:16 am
Posts: 1806
Location: Behind Yew
Finally, a great guide for a razor feature. Great work!

Moar plz!

_________________
♥ Baaaaaaaaaaam ♠


Top
 

 Post subject: Re: Razor: How To Setup A Restock Macro
PostPosted: Fri Feb 07, 2014 2:37 pm 
Offline
UOSA Donor!!
UOSA Donor!!
User Rep: Unsung
 Profile

Joined: Sat Sep 11, 2010 7:46 am
Posts: 103
Thank You, the object delay was my problem.


Top
 

 Post subject: Re: Razor: How To Setup A Restock Macro
PostPosted: Tue Jun 17, 2014 7:35 pm 
Offline
UOSA Subscriber!
UOSA Subscriber!
User Rep: Good
Good
 Profile

Joined: Wed Dec 10, 2008 3:55 am
Posts: 381
Can you use the restock agent to pour potions into your bag from a keg? I have been playing around with it and not been able to figure it out.

_________________
Image


Top
 

 Post subject: Re: Razor: How To Setup A Restock Macro
PostPosted: Sat Sep 02, 2017 12:21 pm 
Offline
User Rep: Unsung
 Profile

Joined: Sun Apr 25, 2010 11:38 pm
Posts: 65
Images are gone :(


Top
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Support Second Age: These links Open in a New Window

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
Extended by Karma MOD © 2007—2012 m157y