UOSteam Fighting Macro
Posted: Sun Jun 05, 2016 5:45 pm
Hey there, it's me again.
I created a small combat macro that will cast Bless, then rearm your wep, Divine Fury and Consecrate Weapon. I used the timer mechanic to achieve this.
I now have questions;
1- Is there something I can do to shorten the length of the macro, hence making it easier to read?
2- Is there a way to add auto targeting to this macro? If there is, another question comes to my mind;
-> would there be a way to cast enemy of one once a new mob type is targeted?
ex. : I fight 3 liches and 2 zombies, once it auto targets one of the liches, I cast enemy of one, then it auto targets the other liches. After killing the liches, it would target the zombies and cast enemy of one. (I understand that since UOSteam does not give the option to create variables, this would be hard to achieve, I'm only wondering if it is possible)
3- Is there a way to activate primary or secondary attacks automatically when mobs are targeted?
Here is the script I wrote, I put a couple notes here and there to make it easier to read. Keep in mind that I am a beginner when it comes to macros.
I created a small combat macro that will cast Bless, then rearm your wep, Divine Fury and Consecrate Weapon. I used the timer mechanic to achieve this.
I now have questions;
1- Is there something I can do to shorten the length of the macro, hence making it easier to read?
2- Is there a way to add auto targeting to this macro? If there is, another question comes to my mind;
-> would there be a way to cast enemy of one once a new mob type is targeted?
ex. : I fight 3 liches and 2 zombies, once it auto targets one of the liches, I cast enemy of one, then it auto targets the other liches. After killing the liches, it would target the zombies and cast enemy of one. (I understand that since UOSteam does not give the option to create variables, this would be hard to achieve, I'm only wondering if it is possible)
3- Is there a way to activate primary or secondary attacks automatically when mobs are targeted?
Here is the script I wrote, I put a couple notes here and there to make it easier to read. Keep in mind that I am a beginner when it comes to macros.
Code: Select all
//=====================================UOEX fighting macro=======================================//
//=====================================Created by Trithebest=====================================//
//Prompts for the weapon you'll be using, to rearm it after spells
if not @findobject 'Weapon'
promptalias 'Weapon'
endif
//Casts Bless, and creates the timer for it.
if not timerexists 'Bless'
cast 'Bless'
pause 1500
target! 'self'
equipitem 'Weapon' 2
createtimer 'Bless'
endif
clearjournal
//Casts Divine Fury, and creates the timer for it.
if not timerexists 'Divine Fury'
cast 'Divine Fury'
pause 300
//I put two different cells here for both scenarios, I do not know if it is possible to unite both of them.
if @injournal 'You have not yet recovered from'
pause 3500
cast 'Divine Fury'
endif
if @injournal 'You are already'
pause 3500
cast 'Divine Fury'
endif
createtimer 'Divine Fury'
endif
clearjournal
//Casts Consecrate Weapon, and creates the timer for it.
if not timerexists 'Consecrate Weapon'
cast 'Consecrate Weapon'
pause 300
if @injournal 'You have not yet recovered from'
or 'you are already'
pause 3500
cast 'Consecrate Weapon'
endif
if @injournal 'You are already'
pause 3500
cast 'Consecrate Weapon'
endif
createtimer 'Consecrate Weapon'
endif
clearjournal
//This is where the loop starts
if timer 'Bless' > 120000
cast 'Bless'
pause 1500
target! 'self'
equipitem 'Weapon' 2
settimer 'Bless' 0
endif
if timer 'Divine Fury' > 180000
cast 'Divine Fury'
pause 300
if @injournal 'You have not yet recovered from'
pause 3500
cast 'Divine Fury'
endif
if @injournal 'You are already'
pause 3500
cast 'Divine Fury'
endif
settimer 'Divine Fury' 0
endif
if timer 'Consecrate Weapon' > 10000
cast 'Consecrate Weapon'
pause 300
if @injournal 'You have not yet recovered from'
pause 3500
cast 'Consecrate Weapon'
endif
if @injournal 'You are already'
pause 3500
cast 'Consecrate Weapon'
endif
settimer 'Consecrate Weapon' 0
endif