Razor & Macros

From UO Excelsior Wiki - Ultima Online Free Shard
Jump to: navigation, search

Hi all, Jax2 here. I am going to be adding some information about razor and how to edit macros and some of the other great features you can use. Feel free to add anything you feel I left out.


Downloading Razor

Download Razor


Razor Setup

Depending on your operating system (and your luck), you may be able to install razor without any further need of editing, but it's not often the case. If you have installed Ultima Online using the downloadable files found on UOEX.net, you will usually have to edit a file in order for razor to function correctly.
The following steps are to be followed after you have installed Ultima Online.
1.) Go to the directory where you installed Ultima Online (e.g. C:\uo\Ultima Online - Excelsior Shard\)
2.) Open the folder called RAZOR HOWTO.
3.) Open the file Custom.reg with a text editor by right clicking and selecting OPEN WITH and then choosing notepad.exe.
4.) Note the lines with CUSTOMLOCATION in their name, change this to the location UO is at. Pay special attention here as you must use two \'s instead of one; for example, C:\\uo\\Ultima Online - Excelsior Shard\\ LEAVE THE FILE NAMES AT THE END OF EACH LINE! (client.exe, uopatch.exe, uo.exe, uotd.exe)
5.) If you are using a computer with a 64-bit Operating System, you may need to modify the HKEY_LOCAL_MACHINE lines as well. Add Wow6432Node\ inbetween SOFTWARE\ and Origin Worlds Online\ (the first one would be [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Origin Worlds Online]), be sure you change all five of those lines.
6.) Once each line has been edited properly, save the file, right click it and click on MERGE.
7.) Create a shortcut for Razor, if there isn't one already. Many Windows Vista and Windows 7 users will need to right-click on this shortcut, select Properties, go into the Compatibility tab and turn on Compatibility Mode for Windows XP. In order for Razor to work properly, it must open the client through itself - so do not use the original Ultima Online shortcut, use the Razor one.
8.) Once Razor opens, you must specify the shard IP address and port. These are: shard.uoex.net and port 60.
9.) Log into the shard and play! :)


Razor Use

The following link will take you to the razor users guide which has a tab by tab explanations to all of the tabs in razor. Very handy, I would suggest you read this well:
Razor Guide

Macros

I will give some example macros and show you how to make your own here. If anyone has any good macros to add, please do so.

Macros in razor can be easy or very, very complex, depending on all of the steps you would like to include in them.
In order to make a macro, you begin by clicking on the macros tab and then the "NEW" button. Name your macro and press OK and you will be ready to begin.

On the right side of razor, you will see an empty box as well as the buttons PLAY and RECORD. To make a basic macro, click on record, perform an action, or a step of actions, and then click on STOP. Each action will be saved and when you press play, will be repeated. Keep in mind, however, that Razor does not automatically add things like pauses and time limits on what you are doing. You have to do that yourself after you've recorded your basic macro.

Ok, let's start with something easy. We're going to make a fast macro to add all the wood to your lumberjack keys.

Basic Macro Making:

One thing to note here: This may seem like an awful lot of steps to follow for a simple macro, but really, it goes very quick and once you get the hang of it, you'll be going even faster! Bear with me here and follow each step exactly.

Before we start the macro, farm some wood. 2 or 3 different types is best for the example macro. So, go grab 20 regular, 20 ash and 20 of another type of logs. Leave these in your pack for now and be sure you have your LJ keys in your pack as well.

1.) Make the new macro and name it Add wood to keys and press OK.
2.) Click RECORD
3.) In your pack, double click your LJ keys.
4.) On the LJ Keys menu, click Add Resources.
5.) Click ONLY the normal logs.
6.) Press STOP in RAZOR.

Now let's pause and see what your macro looks like. You should have the following lines in the macro box:

Double Click (9x405A1E4A)
Wait For Gump (Any)
Gump Response (Button 17)
Wait For Target
Absolute Target
Wait For Gump(Any)
Wait For Target

Here is a small explanation of what is going on:
Double Click (xxx) - The numbers and letters inside the parentheses are unique to certain items in the game. In this case, 9x405A1E4A stands for Wood Workers Keys (LJ keys)
Gump - A gump is any window that opens in the game, in this case, when you double click the woodworkers keys, you open the wood menu gump.
Gump Response - The button you press (17 in this case being "Add resources")
Wait for Target - Razor pauses until a targeting cursor comes up
Absolute Target - In this case, when you clicked on the regular logs, it was an absolute target. In other words, this macro will currently only choose REGULAR logs. We'll fix that in a bit.

Editing the macro:

In order for Razor to add ALL the logs in your bag to your LJ Keys, we have to tell it to do a few things differently than above. We want to make a macro that will keep searching in your pack for all logs, no matter what color, add them to keys, and then stop when your pack is empty of logs. So, we will make changes to do this. If your wood workers keys menu is not open, double click your keys again before continuing.

1.) Click the very bottom line in the macro (Wait For Target) so it is highlighted.
2.) Right click the now highlighted line and choose: Special Constructs and then choose Insert "IF" conditional.
3.) In the new box that opens, you will see three small boxes you can change. In the first box, choose SYSMESSAGE. Now you will only have one other box to work with. In this box, type: no item and then press OK.
4.) Your macro will auto-save. At this point, click on the tab for HOT KEYS.
5.) Click the + symbol next to the word Macros
6.) The very first line under macros should be STOP CURRENT MACRO. To the right, select a key combination not currently used by you in Ultima Online. Mine, for example, is set to Ctrl F10. So, you would check mark Ctrl, and in the key box, press F10. When finished, press SET.
7.) Go back to the macros tab and open your Add wood to keys macro. Again, highlight the very bottom line ( If (SysMessage "no item") ) and right click the line once highlighted. Choose BEGIN RECORDING HERE.
8.) Click your UO window to bring it back into focus and press Ctrl F10 (or whatever button you chose for "Stop Current Macro" in hot keys) This will add a new line to your macro at the very bottom which should read: Exec: > Stop Current Macro.
9.) Now we need to change the macro so it is not only searching for regular logs. In your macro, find the line that says "Absolute Target" and single click it to highlight it. When highlighted, right click the line and choose: Convert to Target By Type. Be careful not to choose any other option here or you may have to re-record your macro. Now, where it used to say Absolute Target, it should say: Target By Type log%s(1BDD).
10.) We're almost done now. We just have to add some pauses and fix a few other minor things. To start, highlight the first line: Double Click (xxx). When highlighted, right click and choose Special Constructs, followed by Insert Pause. Set the pause to 500 ms and press OK.
11.) Look for the first line that says Wait For Target, highlight it and press Delete. Press OK to delete this line. The line above where it was should still be Wait For Gump (any). Highlight that, right click it and choose Special Constructs --> Add Pause and choose 500 ms again.
12.) Highlight the line that says: Target By Type log%s(xxx), right click, Special Construct --> Add Pause and set this to 880ms (To allow time for the logs to go on keys and the system to respond)
13.) Make sure on your UO screen, your wood workers key menu is still open and then highlight the line that says: If (SysMessage "no item")and right click, choose Begin Recording Here. Click your UO window again to bring it into focus and then close your Wood Workers Keys menu. This will add the line: Close Gump below the SysMessage line so that when all is done, it will close your wood workers keys menu for you.
14.) Near the bottom of your macro text box, on the right, you will see a little check box with the word LOOP next to it. Check mark this box. 15.) Test your macro! Press the play button and watch while it (hopefully) adds the rest of the logs you had in your pack onto your keys. If it doesn't, go through the steps again and make sure your macro looks like this:

Double Click (xxx)
Pause .50sec
Gump Response (button 17)
Pause .50sec
Target By Type log%s(xxx)
Pause .88sec
If (SysMessage "no item")
Close Gump
Exec:> Stop current macro

Final step: Pick a key combination that is convenient for you (I.e. Alt F1, alt A, or whatever is not currently in use by UO) and go to the Hot Keys tab. If it's not already expanded, click the + symbol next to macros, find your macro and highlight it and enter your key combination to start the macro. Be sure to check mark SEND TO UO and then press SET.

In closing, I just want to say, this is only one of an endless number of macros you can use and design. You can do pretty much anything in the game. I would highly recommend you fool around with the macros and see what does what and eventually you'll be able to figure out how to get Razor to do whatever you want it to (almost, there ARE some limits). Good luck!

Tips and Tricks


There are a few fun things you can do with Razor... here are a few quick ones... feel free to add more!

Open Doors Automatically - VERY nice feature. No longer will you have to double click those annoying doors to walk through them! Razor can do it for you. Find this option under the "More Options" tab.

Multiple Macros in 1 Macro - If you have a macro that is very complex or must do a number of different tasks, don't forget the Hot Keys! You can create several small macro's, set up hot keys for each of them, and then in one LARGE macro, call up a smaller one when you need it! For example, in your macro, if there is something that is repeated more than once, put that part in a new macro and then simply record a key stroke that calls that macro when needed. This will save you from having to re-record the same actions over again as razor unfortunately does not have cut & paste capabilities in the macro section.

See how much Tithe Points you have left - Tithing, as you well know, is always important for clerical spells, running out at a bad time could leave both you and your pet(s) dead. So, it's really nice to be able to see how much you have left at a glance. In order to do this, click on the Displays/Counters tab, on the bottom left click "Add" and enter the following: Name: Tithe Format: {th} and press OK. Now, up top on your UO screen where it shows how many regs you have in your bag (does not count those on keys), you will see your current remaining Tithe points!

Sell and Organize Agents - Do you ever get sick of having to click on each thing in your bag you want to sell to vendors? If you are going to ALWAYS sell certain items, the selling agent is for you! For example: You are practicing Bow crafting. You want to sell your bows instead of chopping back into wood. Click the Agents tab, in the drop down menu, choose Sell, click Set Hot Bag and choose your backpack symbol on your paper doll, click Add Target and choose a bow inside your bag. Now, enable the agent with the bottom button. Each time you visit the bow vendor and click Sell, it will sell every one of the bow type you chose to the vendor at once! No need to click every one of them anymore! This works on anything that is sellable, but BE WARNED: If you have an item you want to keep that is like an item on your sell list (Boots for example) it WILL sell them! Do not have them in your bag!