[Razor] Attack/Claim Macro

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
User avatar
Devlin
Legendary Scribe
Reactions:
Posts: 659
Joined: Thu Mar 18, 2010 12:50 pm

[Razor] Attack/Claim Macro

Post by Devlin »

Create a new macro in razor, close down UO, open up the macro you created and save this code into the .txt.

If you don't claim quick enough, change the wait to .333 or so.

Code: Select all

Assistant.Macros.HotKeyAction|1515|
Assistant.Macros.HotKeyAction|1395|
Assistant.Macros.HotKeyAction|1332|
Assistant.Macros.SpeechAction|0|956|3|ENU|2|16|9|[claim
Assistant.Macros.PauseAction|00:00:00.5550000
Assistant.Macros.TargetTypeAction|False|8198
If you cannot figure out how/where to place this code, you can create a new one from scratch.
Target Closest Non-friendly
Attack last target
Cancel current target
say: [claim
pause .56 sec
target by type corpse

to get the target by type corpse function, cast a spell, hit record in razor and select a corpse. Then right click the target function you just added and change it to "target by type"

NOTE: Target closest non friendly is the best option for auto targetting.
NOTE2: CANCEL CURRENT TARGET NEEDS TO STAY IN THE SCRIPT. Without CCT, you will still have the enemy targetted, meaning if you try to heal, you will cast on the monster, not yourself
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Runebook Copier
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Devlin
Legendary Scribe
Reactions:
Posts: 659
Joined: Thu Mar 18, 2010 12:50 pm

Re: [Razor] Auto Attack/Claim Macro

Post by Devlin »

Bump and request for sticky
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Runebook Copier
---------------------------------------------
Combat Focus Guide (Godmode Formula)
User avatar
Old Fart
Novice Scribe
Reactions:
Posts: 8
Joined: Fri Aug 31, 2012 7:59 pm

Re: [Razor] Attack/Claim Macro

Post by Old Fart »

I can not locate the .txt file you speak of? i have looked in the razor file folder and non exist there.
The sum of the whole is equal to the sum of it's parts ! However, if there are any parts left over after completing the whole then just through them away then shhhh... *(whisper) don't tell anybody....
User avatar
Ilsanor
Legendary Scribe
Reactions:
Posts: 407
Joined: Tue Jun 07, 2011 5:47 am

Re: [Razor] Attack/Claim Macro

Post by Ilsanor »

There is no .txt file. Razor macros get saved as "macroname.macro". You open and edit these with notepad or whatever.

For example you create a macro named AttackClaim in UO. Exit the game. Find the file AttackClaim.macro in Razor\Macros folder. Open the file in notepad, paste in the code, save and close. Fire up UO and enjoy your new macro.

Alternatively you may create a .txt file in the folder, paste in the code, rename to *.macro and you're good to go as well.
User avatar
moome1649
Apprentice Scribe
Reactions:
Posts: 13
Joined: Thu Aug 29, 2013 8:23 am

Re: [Razor] Attack/Claim Macro

Post by moome1649 »

Hi i tried following the directions on how to make the script work. made a macro folder in razor. copied the code and saved in the folder. When i launch razor, how come the macro still does not show up. Even though I tried making one from scratch I cant find the "Target Closest Non-friendly" please help thank you
彼らの助けを頼りにすることなく、仏や神々を尊重
______________________________________________________________________________________
Warlord Alden
Aryanna Conners
Elder Scribe
Reactions:
Posts: 151
Joined: Sun Jan 27, 2013 11:26 pm

Re: [Razor] Attack/Claim Macro

Post by Aryanna Conners »

moome1649 wrote:Hi i tried following the directions on how to make the script work. made a macro folder in razor. copied the code and saved in the folder. When i launch razor, how come the macro still does not show up. Even though I tried making one from scratch I cant find the "Target Closest Non-friendly" please help thank you
folder is probably in your appdata folder on newer windows. add it to the macros folder in there.
Locked