Guide: My razor inscription macro

Playguides written by Staff and Players.
Much more information on specific skills can be found in our T2A wiki.
Post Reply
whoa its shan
Posts: 121
Joined: Fri Jan 16, 2009 4:45 pm

Guide: My razor inscription macro

Post by whoa its shan »

While I'm in my house, my macro grabs 1 of each reg of the scroll I'm trying to make along with 1 blank scroll. It tries to makes the scroll and if I succeed, it stacks the scroll wherever I want it to (In this case a box in my house).

IF (Mana <= 20) **I only have about 60 int on my char gage it as you see fit**
Use Skill Meditation
Wait for (Mana >= 30)
End IF
Execute: Restock Agent
Absolute Target (Target wherever you need to get your single items from)
Pause (1 second per item)
Use Skill Inscription
Wait for Target
Target by Type blank scroll **Incredibly important you target the SINGLE blank scroll, right click in the razor macro and then hit 'click by type'**
Wait for Menu (Any)
Menu Response
Wait for Menu (Any)
Menu Response
Pause 6.50 seconds
If (Sys Message "you inscribe the spell and put the scroll in your backpack.")
Lift Energy Bolt Scroll **In my case that's what I'm currently doing at the moment, put the appropriate spell for yourself. ONCE MORE THOUGH, make sure this is also clicked by type**
Drop to Location
Pause 1.00 second
End If



Make sure every time you start or restart your macro, you reset the drop spot you put the scroll if you successfully make it.

Feel free to add to this or change it, but otherwise good luck!

User avatar
Batlin
wobble llama
wobble llama
Posts: 512
Joined: Fri Dec 19, 2008 4:32 am
Location: Ultima Universe

Re: Guide: My razor inscription macro

Post by Batlin »

Wait For Mana>=30 doesn't seem right to me

why not use a loop ?

Loop 4 times ---> change the number depending on your meditation skill and int stat
Meditate
Wait 10 seconds
End Loop


with meditation on you can make a lot more scrolls
+ORC: If you give a man a crack he'll be hungry again tomorrow, but if you teach him how to crack, he'll never be hungry again.
chumbucket: I don't collect pixels.

Never trust the client. It's in the hands of the enemy : UO Demo internals @ JoinUO

whoa its shan
Posts: 121
Joined: Fri Jan 16, 2009 4:45 pm

Re: Guide: My razor inscription macro

Post by whoa its shan »

Well if my mana runs lower than 20 it will use meditation until it reaches 30, but this is considering you don't think you'll fail med often (my med is GM of course though, should've probably mentioned that).

Sufferings
Posts: 15
Joined: Sat Dec 19, 2009 1:50 am

Re: Guide: My razor inscription macro

Post by Sufferings »

For me.. this macro enters "waiting, timeout" at this line:

Target by Type blank scroll
Wait for Menu (Any) <<<<<<<<<<<<<<<------------------ HERE
Menu Response
Wait for Menu (Any)
Menu Response

Any ideas?

Krats
Posts: 818
Joined: Wed Jul 29, 2009 9:32 am
Location: Latitude = 30.6927, Longitude = -96.1970

Re: Guide: My razor inscription macro

Post by Krats »

Sufferings wrote:For me.. this macro enters "waiting, timeout" at this line:

Target by Type blank scroll
Wait for Menu (Any) <<<<<<<<<<<<<<<------------------ HERE
Menu Response
Wait for Menu (Any)
Menu Response

Any ideas?
Right click the Target by Type: Blank scroll, and retarget the scroll in your backpack.
When you play with fire, there is a 50/50 chance something will go wrong, and nine times out of ten it does.
Teph wrote:chum stole a castle, a f**in castle.
Derrick wrote:I hate to see this go unanswered, so I can at least say that I read this, and have no idea myself.

Sufferings
Posts: 15
Joined: Sat Dec 19, 2009 1:50 am

Re: Guide: My razor inscription macro

Post by Sufferings »

Krats wrote:
Sufferings wrote:For me.. this macro enters "waiting, timeout" at this line:

Target by Type blank scroll
Wait for Menu (Any) <<<<<<<<<<<<<<<------------------ HERE
Menu Response
Wait for Menu (Any)
Menu Response

Any ideas?
Right click the Target by Type: Blank scroll, and retarget the scroll in your backpack.
That was it! Ty

It seems i cannot restock one blank scroll at a time, or the macro screws up. Restock 2 or more instead and use "absolute target" instead of target by type, making sure you never run out of blank scrolls in your backpack

User avatar
Fireball
UOSA Donor!!
UOSA Donor!!
Posts: 120
Joined: Tue Jul 09, 2013 7:56 am
Location: United Kingdom
Contact:

Re: Guide: My razor inscription macro

Post by Fireball »

Thank you for the information here.

In an attempt to help others, I would like to confirm and clarify that the macro will hang at the menu prompt if you attempt to use type "blank scroll". You actually have to target a pair of blank scrolls in your backpack every time you initiate this macro from scratch. I know it's a pain, and I don't know why it behaves like this.

Anyway, here is my macro which will attempt 4 times to meditate at the end, and uses a container in your house, or bank, as you prefer. I've used restock agent 2 which loads minimal regs for this task because restock agent 1 is my main one for recalling about and so on where I need a lot more than a couple of reagents.

You limit the number of iterations by limiting the number of blank scrolls that you put in your reagent container (and/or the quantity of reagents, but I just drop 100 blanks or whatever into my house's main reagent store).

I am posting the macro in both formats; Razor window and Razor raw code so you can re-create it easily. My comments are in [square brackets]. You will need to retarget your blank scrolls and finished scroll pile every time you set up this macro. It's fairly easy to modify this for other spells by changing the menu numbers for circle and spell and also the name of the scroll that you drag out into your completed scroll container. For example I have a container for each spell circle and this macro can be set up to put scrolls into the correct container. Takes a bit of setting up, but convenient when you are done.

Here we go:

If (Mana>=70) [Change this to reflect the meditation skill you have and the mana level needed for you to gain med]
Exec: Restock Agent-2
Absolute Target [target your reagent stock in bank or house container]
Pause 3.50sec
UseSkill Inscription
Wait for Target
Absolute Target [Target blank scroll. Need to retarget this every time you set up. Cannot use type "blank scroll"]
Wait for Menu (Any) [If you try to use type "blank scroll", the macro will hang here.
Pause .50sec
MenuResponse 6 [Select spell circle]
Wait for Menu (Any)
Pause .50sec
MenuResponse 2 [Select Spell]
Pause 7.35sec
End If
If (SysMessage "you inscribe") [Success!]
Lift Enerfg Bolt Scroll (1F56) -1
Drop to 0x40B82E10 (@(21, 138, 0)) [Need to retarget this every time you set up. It's the pile of completed scrolls in your bank/container]
Pause 1.15sec
End If
For (1 to 4) [try to meditate 4 times in case of failure]
If (Mana <=70) [Make this the same mana used above]
UseSkill Meditation
Pause 10.15sec
If (SysMessage "trance") [Success!]
Wait for Mana>=70 [Again, make this the same as mana used at start for max med skill gain]
End If
End If
End For


And here is the raw code version. Copy and paste this into a text file in your Razor macro folder and rename the extension from ".txt" to ".macro" and you can then just load it with Razor:

!Loop
Assistant.Macros.IfAction|1|1|70
Assistant.Macros.HotKeyAction|0|Restock Agent-2
Assistant.Macros.AbsoluteTargetAction|0|0|1075380431|19|147|0|3702
Assistant.Macros.PauseAction|00:00:03.5000000
Assistant.Macros.UseSkillAction|23
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.AbsoluteTargetAction|0|0|1085812540|75|76|0|3636
Assistant.Macros.WaitForMenuAction|0|15
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.MenuResponseAction|6|8389|0
Assistant.Macros.WaitForMenuAction|0|15
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.MenuResponseAction|2|8361|0
Assistant.Macros.PauseAction|00:00:07.3500000
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|you inscribe
Assistant.Macros.LiftTypeAction|8022|1
Assistant.Macros.DropAction|0x40B82E18|(21, 138, 0)|0
Assistant.Macros.PauseAction|00:00:01.1500000
Assistant.Macros.EndIfAction
Assistant.Macros.ForAction|4
Assistant.Macros.IfAction|1|0|70
Assistant.Macros.HotKeyAction|1044106|
Assistant.Macros.PauseAction|00:00:10.1500000
Assistant.Macros.IfAction|4|0|trance
Assistant.Macros.WaitForStatAction|1|1|70|3600
Assistant.Macros.EndIfAction
Assistant.Macros.EndIfAction
Assistant.Macros.EndForAction


I hope that helps someone and saves you a bit of work.

Fireball
Guildmaster, BiH
<@BoomlandJenkins> I don't favor anyone here, I hate all of you equally as much as the next player :)

Image

Post Reply

Return to “Guides”