Page 1 of 1

Guide: My razor inscription macro

Posted: Sun Mar 01, 2009 11:43 pm
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!

Re: Guide: My razor inscription macro

Posted: Mon Mar 02, 2009 6:10 am
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

Re: Guide: My razor inscription macro

Posted: Mon Mar 02, 2009 6:26 am
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).

Re: Guide: My razor inscription macro

Posted: Tue Dec 22, 2009 12:12 pm
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?

Re: Guide: My razor inscription macro

Posted: Tue Dec 22, 2009 6:20 pm
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.

Re: Guide: My razor inscription macro

Posted: Wed Dec 23, 2009 1:39 pm
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

Re: Guide: My razor inscription macro

Posted: Sat Aug 17, 2013 8:30 am
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