Imagine Nation Forums
Razor Macros for Imagine Nation - Printable Version

+- Imagine Nation Forums (https://in-uo.net/forums)
+-- Forum: Imagine Nation archive (https://in-uo.net/forums/forumdisplay.php?fid=6)
+--- Forum: Player Guides (https://in-uo.net/forums/forumdisplay.php?fid=29)
+--- Thread: Razor Macros for Imagine Nation (/showthread.php?tid=5434)

Pages: 1 2


Razor Macros for Imagine Nation - Elia - 04-07-2012

This thread contains general information about Razor Macros, and a Training Macros Library, which I will update with my macros.

GENERAL INFORMATION

First of all you have to find your Razor Macros folder on you hard drive:

Code:
c:\Users\%username\AppData\Roaming\Razor\Macros\

In order to create a macro, you must create a blank file with .macro extension, and then copy-paste the code from this thread into it.
In this thread I'll post the whole code of the macro and setup instructions.

Another important file you're going to use if counters.xml. It's in the Razor folder - one folder back from Macros folder:

Code:
c:\Users\%username\AppData\Roaming\Razor\

In this file you'll copy-paste necessary [for your macro] code parts. You should past it after any line which contains this code part:

[HTML][/HTML]

Don't forget to enable your counter, so that Razor could read its value.

Also you should know how to use Razor Agents, because they usually become an essential part of every macro. I won't explain the Agents system, because it's pretty easy to figure out.


TRAINING MACROS LIBRARY

I won't post here the Item Identification Macro, or Hiding Macro. You understand why.
I've decided to open this thread for more tricky macros, as I had found them difficult to set up, so that they could work without errors.
I'll update this thread as soon as I'll write new macros. But I've got a few to start with.


1. Training Blacksmithing Macro
2. Training Tinkering Macro
3. Training Lockpicking Macro
4. Training Alchemy+Poisoning Macro
5. Training Fishing Macro



Razor Macros for Imagine Nation - Elia - 04-07-2012


REQUIREMENTS
1. a forge and an anvil
2. iron ingots
3. a supply container for iron ingots
4. four {4} iron ingots in your backpack
5. a smith's tool equipped


SETUP

A. Razor checks if there are any daggers in your backpack, and smelts them, if there are any.

1. You have to retarget your smith's tool and iron ingots in your backpack.
2. You must also have [dagger] in counters.xml:

[HTML]
Dagger
dgr 3922
-1
[/HTML]

B. Razor checks if you have ingots for making a dagger, and restocks them, if you don't have enough.

1. You must have [iron ingot%s (1BEF)] in your Restock-1 agent. Set amount to 4.
2. You have to retarget your supply container.
3. You must also have [iron ingots] in counters.xml:

[HTML]
Iron ingots
irn 7151
0
[/HTML]


C. Razor checks if there are no daggers in your backpack, and makes one, if the check if successful.

1. You have to retarget your smith's tool and iron ingots in your backpack.


CODE:

Code:
!Loop
// Put 4 iron ingots into your backpack
//
// SMELTING DAGGERS
//
Assistant.Macros.IfAction|50|1|1|Dagger
Assistant.Macros.PauseAction|00:00:00.5000000
[COLOR=#40E0D0]// retarget your smith's tool
Assistant.Macros.DoubleClickAction|1088760045|5091[/COLOR]
Assistant.Macros.WaitForTargetAction|10
[COLOR=#40E0D0]// retarget ingots in your backpack
Assistant.Macros.AbsoluteTargetAction|0|0|1076334442|68|119|0|7151[/COLOR]
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|14|0|0
Assistant.Macros.WaitForTargetAction|10
Assistant.Macros.TargetTypeAction|False|3922
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|0|0|0
Assistant.Macros.EndIfAction
//
// RESTOCKING INGOTS
//
Assistant.Macros.IfAction|50|0|3|Iron ingots
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.HotKeyAction|0|Restock Agent-1
Assistant.Macros.WaitForTargetAction|10
[COLOR=#40E0D0]// retarget your supply container
Assistant.Macros.AbsoluteTargetAction|0|0|1073819149|2921|987|0|3645[/COLOR]
Assistant.Macros.EndIfAction
//
// MAKING DAGGERS
//
Assistant.Macros.IfAction|50|0|0|Dagger
Assistant.Macros.PauseAction|00:00:00.5000000
[COLOR=#40E0D0]// retarget your smith's tool
Assistant.Macros.DoubleClickAction|1088760045|5091[/COLOR]
Assistant.Macros.WaitForTargetAction|10
[COLOR=#40E0D0]// retarget ingots in your backpack
Assistant.Macros.AbsoluteTargetAction|0|0|1076334442|68|119|0|7151[/COLOR]
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|16|0|0
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|0|0|0
Assistant.Macros.EndIfAction



Razor Macros for Imagine Nation - Elia - 04-07-2012


REQUIREMENTS
1. iron ingots
2. a tinker's tool
3. a supply container for iron ingots and crafted lockpicks


SETUP

A. Razor checks if there any lockpicks in your backpack, and throws them out into a box, if there are any.

1. You must have [lockpick%s% (14FC)] in your Organizer-1 agent. Don't forget to Set Hot Bag (where to throw them out into).
2. You must also have [lockpicks] in counters.xml:

[HTML]
Lockpick
lkp 5372
-1
[/HTML]

B. Razor checks if there are enough iron ingots in your backpack.

1. You must have [iron ingot%s (1BEF)] in your Restock-1 agent. Set amount to 100.
2. You have to retarget your supply container.
3. You must also have [iron ingots] in counters.xml:

[HTML]
Iron ingots
irn 7151
0
[/HTML]

C. Razor checks if there are no lockpicks in your backpack, and makes them.

1. You have to retarget your tinker's tool in your backpack.


CODE:

Code:
!Loop
//
// ORGANISING LOCKPICKS
//
Assistant.Macros.IfAction|50|1|1|Lockpick
Assistant.Macros.PauseAction|00:00:00.7000000
Assistant.Macros.HotKeyAction|0|Organizer Agent-1
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
//
// RESTOCKING INGOTS
//
Assistant.Macros.IfAction|50|0|2|Iron ingots
Assistant.Macros.PauseAction|00:00:00.7000000
Assistant.Macros.HotKeyAction|0|Restock Agent-1
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget your supply container
Assistant.Macros.AbsoluteTargetAction|0|0|1073819149|2921|987|0|3645[/COLOR]
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
//
// MAKING LOCKPICKS
//
Assistant.Macros.IfAction|50|0|0|Lockpick
Assistant.Macros.PauseAction|00:00:00.7000000
[COLOR="#40E0D0"]// retarget your tinker's tool
Assistant.Macros.DoubleClickAction|1156482847|7868[/COLOR]
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|121|0|0
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|0|0|0
Assistant.Macros.EndIfAction



Razor Macros for Imagine Nation - Elia - 04-07-2012


REQUIREMENTS
1. a metal box with a key
2. lockpicks
3. one lockpick in your backpack
4. a supply container for lockpicks


SETUP

A. Razor checks if the box is locked by checking two types of Last System Message. If unlocked, it locks the box.

1. You have to retarget the key to the box. Twice - for every time of Last System Message.
2. You have to retarget the box you're going to lock. Twice - for every time of Last System Message.

B. Razor checks if there are lockpicks in your backpack and restocks them, if there are none.

1. You must have [lockpick%s% (14FC)] in your Restock-1 agent.
2. You have to retarget your supply container.
3. You must also have [lockpicks] in counters.xml:

[HTML]
Lockpick
lkp 5372
-1
[/HTML]

C. Razor checks if there lockpicks in your backpack, and if there are, it tries to lockpick the box.

1. You must have at least one lockpick in your backpack, and you have to retarget it.
2. You have to retarget the box you're going to lockpick.


CODE:

Code:
!Loop
//
// LOCKING THE BOX
//
Assistant.Macros.IfAction|4|0|The lock quickly
Assistant.Macros.PauseAction|00:00:00.7000000
[COLOR="#40E0D0"]// retarget the key
Assistant.Macros.DoubleClickAction|1097808492|4110[/COLOR]
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget the box
Assistant.Macros.AbsoluteTargetAction|0|0|1097808491|2912|988|7|3712[/COLOR]
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|This does not appear
Assistant.Macros.PauseAction|00:00:00.7000000
[COLOR="#40E0D0"]// retarget the key
Assistant.Macros.DoubleClickAction|1097808492|4110[/COLOR]
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget the box
Assistant.Macros.AbsoluteTargetAction|0|0|1097808491|2912|988|7|3712[/COLOR]
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
//
// RESTOCKING LOCKPICKS
//
Assistant.Macros.IfAction|50|0|1|Lockpick
Assistant.Macros.PauseAction|00:00:00.7000000
Assistant.Macros.HotKeyAction|0|Restock Agent-1
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget the supply container
Assistant.Macros.AbsoluteTargetAction|0|0|1098055490|2912|987|6|3644[/COLOR]
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
//
// LOCKPICKING THE BOX
//
Assistant.Macros.IfAction|50|1|2|Lockpick
Assistant.Macros.PauseAction|00:00:00.7000000
[COLOR="#40E0D0"]// retarget the lockpick in your backpack
Assistant.Macros.DoubleClickAction|1098068013|5372[/COLOR]
Assistant.Macros.WaitForTargetAction|10
[COLOR="#40E0D0"]// retarget the locked box
Assistant.Macros.AbsoluteTargetAction|0|0|1097808491|2912|988|7|3712[/COLOR]
Assistant.Macros.PauseAction|00:00:05
Assistant.Macros.EndIfAction



Razor Macros for Imagine Nation - Elia - 04-07-2012


REQUIREMENTS
1. nightshade [in your backpack]
2. two empty bottles + one Lesser Poison Potion
3. a mortar and pestle
4. a dagger


SETUP

A. Razor checks if there are Lesser Poison Potions and poisons a dagger in your backpack.

1. You have to retarget the Lesser Poison Potion in your backpack.
2. You must also have [Lesser Poison] in counters.xml:

[HTML]
Lesser Poison
lpsn 3850
-1
[/HTML]

B. Razor makes a Lesser Poison Potion.

1. You have to retarget your alchemist's tool in your backpack.


CODE:

Code:
!Loop
//
// POISONING
//
Assistant.Macros.IfAction|50|1|2|Lesser Poison
Assistant.Macros.PauseAction|00:00:00.7000000
Assistant.Macros.UseSkillAction|30
Assistant.Macros.WaitForTargetAction|3
[COLOR="#40E0D0"]// retarget your Lesser Poison Potion
Assistant.Macros.AbsoluteTargetAction|0|0|1086412537|94|101|0|3850[/COLOR]
Assistant.Macros.WaitForTargetAction|3
Assistant.Macros.TargetTypeAction|False|3922
Assistant.Macros.PauseAction|00:00:07
Assistant.Macros.EndIfAction
//
// ALCHEMY
//
Assistant.Macros.IfAction|50|0|1|Lesser Poison
Assistant.Macros.PauseAction|00:00:00.7000000
[COLOR="#40E0D0"]//retarget your mortar and pestle
Assistant.Macros.DoubleClickAction|1075644696|3739[/COLOR]
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|36|0|0
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|2|0|0
Assistant.Macros.WaitForGumpAction|949095101|True|10
Assistant.Macros.GumpResponseAction|0|0|0
Assistant.Macros.EndIfAction



Razor Macros for Imagine Nation - tranith - 04-08-2012

I tried the Alchemy macro..

I follow the instructions.. did everything i had to do.. I have the correct items in my backpack..

But when i run the Macro in Razor...
it just Loops thru each line lightning fast and repeats, and doesn't do anything in the game, no targets or cursors or anything....

idon't get it? did i do something wrong or what?
I put the file in Macros folder with macro extension. i added the Counter Lines in counter.xml

the macro showed up in Razor instantly.. i click it,click start.. and it doesnt do anything at all, just loops thru over and over.

Only thing i can think of is in the first post you say, dont forget to enable your counter..
im not sure what that means...? option in razor somewhere?


Razor Macros for Imagine Nation - Elia - 04-08-2012

It seems Razor doesn't read your counter, because it's disabled. [As you said.]

There's Display/Counters section in Razor.
Click it and you'll see the list of your counters.
Find the one you need and click the check box in order to enable the counter.

p.s.
Also you must have Nightshade in counters.xml, but it's there by default. And it's enabled by default. So nightshade can't be your problem unless you had disabled it earlier.


Razor Macros for Imagine Nation - tranith - 04-08-2012

hmm ok i found Lesser Poison in the list hit the check box...

Now i run the Macro.. and now it just says you must wait to perform wait wait wait, then it says select the potion you want to use..?
but doesn't give me a cursor in the Game...
then just keeps repeating that over and over and over.. hmm..

I got the nightshade, lesser pots,empty bottles and daggers in my pack, just wont get the target to click the pots when it asks..
aww i must of screwed something up i dunno, usually pretty good at following directions lol


Razor Macros for Imagine Nation - Elia - 04-08-2012

The "you must wait to perform" problem means that Razor uses Poisoning but doesn't recognise the targets.

1. Copy-paste the code again.
2. Save it and retarget everything again.
3. If this doesn't work, there must be the dagger problem. Because the macro uses any dagger it can find in your backpack and around you. Make sure there's only one dagger and it's in your backpack.
4. If your ping is bad, there can appear the "wait for" problem.

I've copy-pasted the macro right now and it works well for me.
Tell me if it still doesn't work, I'll change the macro a bit.

p.s.
You won't see the cursor in the game while the macro is on, because it clicks the target immediately.


Razor Macros for Imagine Nation - tranith - 04-08-2012

Hm Ok ill try it all over again..
but before i do.. im confused by what you said last..

I wont see the cursor in the game to target the potion... or daggger.

How else do i set the Target then?

I thought i had to RUN the macro.. and while the macro is running ill target the potion or dagger atleast once to kinda set it all in place for the second round.. lol.
im new to this sorry bare with me..

but yea ill try copy pasting the script all over again..

Maybe cause i had like 300 lesser potions on me it screwed up? ill just try with the bare minimums...ill past back in a few mins


Razor Macros for Imagine Nation - Elia - 04-08-2012

Ah!!! So you don't know how to retarget!

That's easy.

Right-click the line in Razor Macro and choose 'Re-target'.

And you need:
one dagger
one lesser poison potion
two empty bottles.

not less, not more.


Razor Macros for Imagine Nation - tranith - 04-08-2012

I have no idea what you mean by,
you have to REtarget the lesser potion, then step two retarget your alchemist tools...

noidea what this means.. i figured you run the macro and then target them as the macro plays the first time...
if thats not right then i have no idea whats going on or what to do..

macro is doing the exact same thing.. my ping is like avg 70ms so i dont think lag is the problem.

I have one dagger, motar pestle , 2 empty bottles and one lesser potion in my back.. and about 500 nightshade..

macro still says the same thing...

I noticed theres no Dagger in counter? should there be one?