11-12-2007, 01:40 AM
I set up a simple healing macro, might be of some use to people. I'll explain what everything does so you can make your own next time!
Requirements:
ú One lightning scroll or preferably, an xuo fs scroll.
ú As many bandages as you can get.
ú 100HP, if you have less, change the first if. Will get to that a bit later.
ú A razor hotkey to cancel the current target set to N for this macro. (Hotkeys->Targets->Cancel current target.)
ú A razor hotkey for Restock Agent 1 set to M. You'll need to specify the amount of bandages you'll take from your bank each time you're low on bandies. (Agents->Restock 1)
ú Hotkey to Target Self set to B. (Hotkeys->Targets->Target Self.)
ú Razor display bar enabled with bandages on it. This to have razor count the resources in your backpack, in this case, aids. (Razor->Display/Counters->Show this in the UO title bar.)
(Add or enable Bandages{aids} on the left table, and enter {aids} in the right table if it's not there.)
What it does:
ú Yell guards only if you're attacked. Less spam yay!
ú Wash the bloody bandages
ú Only use the scroll if your hp is full. Maximum gains without the risk.
ú Restock.
ú And lastly.. heal.
How to use:
ú Open up notepad, save it into the razor/macros directory with a name like, bandage_heal.macro
The default installation path for razor is C:\Program Files\Razor
The lines explained.
What are ifs? Ifs are, simply put, a requirement that have to be met before the actions between the tags are played. It's a good way to make sure that things only happen when you want them to happen.
//edit
Made it a bit more userfriendly and added a restock when you're low on bandages. You can run this thing 100% AFK now, just hope the server doesn't go down 10 minutes after you went to bed.
//edit2
Changed macro a bit, it's now quicker to set up.
Requirements:
ú One lightning scroll or preferably, an xuo fs scroll.
ú As many bandages as you can get.
ú 100HP, if you have less, change the first if. Will get to that a bit later.
ú A razor hotkey to cancel the current target set to N for this macro. (Hotkeys->Targets->Cancel current target.)
ú A razor hotkey for Restock Agent 1 set to M. You'll need to specify the amount of bandages you'll take from your bank each time you're low on bandies. (Agents->Restock 1)
ú Hotkey to Target Self set to B. (Hotkeys->Targets->Target Self.)
ú Razor display bar enabled with bandages on it. This to have razor count the resources in your backpack, in this case, aids. (Razor->Display/Counters->Show this in the UO title bar.)
(Add or enable Bandages{aids} on the left table, and enter {aids} in the right table if it's not there.)
What it does:
ú Yell guards only if you're attacked. Less spam yay!
ú Wash the bloody bandages
ú Only use the scroll if your hp is full. Maximum gains without the risk.
ú Restock.
ú And lastly.. heal.
How to use:
ú Open up notepad, save it into the razor/macros directory with a name like, bandage_heal.macro
The default installation path for razor is C:\Program Files\Razor
Code:
!Loop
Assistant.Macros.IfAction|0|1|100
Assistant.Macros.DoubleClickTypeAction|8031|True
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.HotKeyAction|1332|
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|is attacking you!
Assistant.Macros.SpeechAction|0|23|3|NLD|5|48|2|0|113|113|Bank Guards Buy
Assistant.Macros.EndIfAction
Assistant.Macros.DoubleClickTypeAction|3617|True
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.HotKeyAction|1059|
Assistant.Macros.PauseAction|00:00:04
Assistant.Macros.IfAction|4|0|bloody bandages
Assistant.Macros.DoubleClickTypeAction|3616|True
Assistant.Macros.WaitForTargetAction|1
Assistant.Macros.AbsoluteTargetAction|0|0|1074922018|1433|1703|15|5950
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|50|0|5|Bandages
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.SpeechAction|0|23|3|NLD|2|16|2|Bank
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.HotKeyAction|0|Restock Agent-1
Assistant.Macros.WaitForTargetAction|30
Assistant.Macros.HotKeyAction|1059|
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.EndIfAction
The lines explained.
- An if. In this case it checks whether the HP is full or not. My STR is 100 so I have 100hp, if you have less, change it to your max HP #.
- Uses the XUO scroll.
- Waits for target. Self explanatory. It waits.
- Cancels the current target. My hotkey for it is set the N because razor does not detect pressing ESC in game. Be sure you have a cancel target macro, else you'll end up fsing yourself.
- Pauses for a full second, just to make sure the cancel comes through incase of lag or a worldsave.
- End if. Ends the actions needed to be taken when the requirements for an if are met.
- Another if. This time it checks your journal for the text "is attacking you!"
- Says guards.
- End if.
- Uses a bandage
- Waits for target.
- Targets self.
- Pauses for 4 full seconds. If this was removed the macro would try to bandage itself every ,3 seconds. You'll never get healed.
- Another if. Checks whether the bandaging was succesful and therefor placing a bloody bandage in your backpack.
- Uses the bloody bandage.
- Waits for target.
- Targets the fountain located under the Britain bank to wash them.
- End if.
- An if for checking bandage count. It's set to 5, I ping 20 though.
- Pauses a full second.
- Opens your bank.
- Pauses ,5sec.
- Presses the M key, set to execute the Restock 1 agent.
- Waits for a target to appear. Again.
- Targets yourself to have the restock agent use the bankbox to restock.
- Pauses ,5sec.
- End if.
What are ifs? Ifs are, simply put, a requirement that have to be met before the actions between the tags are played. It's a good way to make sure that things only happen when you want them to happen.
//edit
Made it a bit more userfriendly and added a restock when you're low on bandages. You can run this thing 100% AFK now, just hope the server doesn't go down 10 minutes after you went to bed.
//edit2
Changed macro a bit, it's now quicker to set up.