What's new

Modified stealth macro for Outlands

** not 100% optimized, just taken from a UOS macro elsewhere and updated so it attempts to hide before stealthing **


Code:
//Stealth/Hiding Macroer By Vlek, Grunt of the Bloodclan (Bloodclan.org)
//Get to a safe area and play the macro. It does the rest.
while not dead and skill 'hiding' < 80
  useskill 'hiding'
  pause 11000
endwhile
while not dead and skill 'stealth' < 100
  pause 12000
  useskill 'stealth'
  pause 500
  walk "West"
  walk "west"
  pause 300
  walk "North"
  walk "North"
  pause 300
  walk "East"
  walk "East"
  pause 300
  walk "South"
  walk "South"
  pause 300
  walk "West"
  walk "west"
  pause 300
  walk "North"
  walk "North"
  pause 300
  walk "Southeast"
  walk "Southeast"
  pause 300
  while not hidden
    pause 500
    useskill 'hiding'
    pause 500
  endwhile
endwhile
while not dead and skill 'hiding' < 100
  useskill 'hiding'
  pause 11000
endwhile
 
testing a modified version that focuses on re-stealthing instead of hide/stealth cycle. not sure which is better.

Code:
//Stealth/Hiding Macroer By Vlek, Grunt of the Bloodclan (Bloodclan.org)


//Get to a safe area and play the macro. It does the rest.


while not dead and skill 'hiding' < 80


msg "abra cadabra b!"


useskill 'hiding'


pause 11000


endwhile


while not dead and skill 'stealth' < 100


pause 510


if not hidden 'self'


while not hidden


msg 'abra cadabra b!'


pause 510


useskill 'hiding'


pause 11000


endwhile


endif


pause 510


if hidden 'self'


pause 510


useskill 'stealth'


pause 510


if hidden 'self'


while hidden 'self'


pause 500


walk "West"


walk "west"


pause 300


walk "North"


walk "North"


pause 300


walk "East"


walk "East"


pause 300


walk "South"


walk "South"


pause 300


walk "West"


walk "west"


pause 300


walk "North"


walk "North"


pause 300


walk "Southeast"


walk "Southeast"


pause 11000


endwhile


endif


endif


endwhile


while not dead and skill 'hiding' < 100


if not hidden 'self'


pause 510


msg 'abra cadabra b!'


useskill 'hiding'


pause 11000


endif


endwhile
 
Last edited:
it helped to add a loop for bandaging yourself... then go find an area like a cemetery or forest and keep 10 minute 5x skill buffer up
 
For what it's worth I'll share my macro as well. The differences are minimal. Mine does a hide confirmation first and then waits until you get the message that you're ready to stealth before it starts walking. It only goes east/west 7 tiles each. Note that you have a gain chance on each step so you want to maximize your steps. Enjoy!

Code:
if not hidden 'self'
  // the stealth walking code below lasts only 7 total seconds so we're adding 4 seconds here so that on the loop it's waited a total of 11 seconds before trying to hide again if needed.
  pause 4000
  useskill 'Hiding'
  pause 11000
// checks journal to see if you received the initial message that you're ready to stealth
elseif @injournal! 'You feel comfortable enough to begin stealthing.' 'system'
// walks 7 tiles east and 7 tiles west to use up all stealth steps
  turn 'east'
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  turn 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  @clearjournal
// checks journal to see if you're ready to continue stealthing.
elseif @injournal! 'You feel ready to continue stealthing.' 'system'
// // walks 7 tiles east and 7 tiles west to use up all stealth steps
  turn 'east'
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  turn 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  @clearjournal
endif
 
That's correct but you have a chance to gain on every step, not just initiation of the skill. More steps = more gain chances.
 
I would use for loops for your steps. For example:

for 0 to 4
walk 'north'
endfor

Will walk 4 steps north and save you having to repeat yourself over and over in your macro.

A simple version of the above:

Code:
if not hidden
  useskill 'Hiding'
  pause 10000
else
  for 0 to 5
    walk 'west'
  endfor
  for 0 to 5
    walk 'east'
  endfor
endif
 
Last edited:
For what it's worth I'll share my macro as well. The differences are minimal. Mine does a hide confirmation first and then waits until you get the message that you're ready to stealth before it starts walking. It only goes east/west 7 tiles each. Note that you have a gain chance on each step so you want to maximize your steps. Enjoy!

Code:
if not hidden 'self'
  // the stealth walking code below lasts only 7 total seconds so we're adding 4 seconds here so that on the loop it's waited a total of 11 seconds before trying to hide again if needed.
  pause 4000
  useskill 'Hiding'
  pause 11000
// checks journal to see if you received the initial message that you're ready to stealth
elseif @injournal! 'You feel comfortable enough to begin stealthing.' 'system'
// walks 7 tiles east and 7 tiles west to use up all stealth steps
  turn 'east'
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  turn 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  @clearjournal
// checks journal to see if you're ready to continue stealthing.
elseif @injournal! 'You feel ready to continue stealthing.' 'system'
// // walks 7 tiles east and 7 tiles west to use up all stealth steps
  turn 'east'
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  walk 'east'
  pause 500
  turn 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  walk 'west'
  pause 500
  @clearjournal
endif
This macro only Hiding.. Not Stealth.. fix it please.
 
Once you're hidden you will automatically be ready to stealth after 10-11 seconds without having to manually use the stealth skill. A message comes up saying "You feel comfortable enough to begin stealthing." Once that message comes up and you take your first step you are attempting stealth and have a chance to gain each step.
 
Thx to mR TeKa and Dexly.. And to me =)
This code is working good.

Code:
if buffexists "Hiding" and skill "Hiding" > 80
  useskill "Stealth"
  pause 500
else
  useskill "Hiding"
  pause 10500
endif
if @injournal! 'You fail in your attempt to move unnoticed.' 'system'
  pause 10500
endif
if @injournal! 'You begin to move quietly.' 'system'
  for 0 to 7
    walk 'west'
    pause 100
  endfor
  for 0 to 7
    walk 'east'
    pause 100
  endfor
  pause 10000
endif
@clearjournal

I thought they disabled journal checking on this server. In the FAQ it says:

The following features are disabled across all clients:

- Target Closest
- Target Share
- Auto Bandage
- Autoloot
- Health Checks
- InJournal checks
 
Deleted the last post.. its unused because no need to went for train stealth..
Code:
if hidden
useskill 'Stealth'
pause 10500
endif
useskill 'Hiding'
pause 10500
 
I can't take credit for this one, but here's an improved version of what you're already doing...

Code:
while not dead 'self'
  if skill 'stealth' == 100
    useskill 'hiding'
  elseif skill 'hiding' >= 80 and hidden 'self'
    useskill 'stealth'
  else
    useskill 'hiding'
  endif
  pause 10250
endwhile
 
I GM'd in 2 days without moving using this razor for anyone who wants it.

Code:
UseSkill Stealth
If ( SysMessage "you must first hide")
 Pause 12.00sec
 UseSkill Hiding
Else
If ( SysMessage "you fail in your attempt to move unnoticed.")
  Pause 12.00sec
  UseSkill Hiding
  Pause 12.00sec
Else
 Pause 12.00sec

macro
 
First day on UOsteam but I managed to cook up this.

If hidden, it keeps walking until the 10 second wait between skills timer is over and it doesn't check the journal.

Code:
while not hidden
  if not timerexists 'stealthtime'
    createtimer 'stealthtime' 10500
  elseif timer 'stealthtime' >= 10500
    useskill "Hiding"
    settimer 'stealthtime' 0
    if listexists 'stealthing'
      removelist 'stealthing'
    endif
    if skill "Hiding" < 80
      turn "North"
      walk "North"
      pause 300
      turn "south"
      walk "south"
      pause 300
      turn "north"
    endif
  endif
endwhile
while hidden and skill "Hiding" >= 80
  if timer 'stealthtime' >= 10500 and not listexists 'stealthing'
    useskill "Stealth"
    settimer 'stealthtime' 0
    createlist 'stealthing'
  elseif listexists 'stealthing'
    turn "North"
    walk "North"
    pause 525
    turn "south"
    walk "south"
    pause 525
    turn "north"
    if timer 'stealthtime' >= 10500
      settimer 'stealthtime' 0
    endif
  endif
endwhile
 
Last edited:
Optimised the above script, it now, instead of just walking around even when failing a stealth check, will try to rehide.
Code:
while not hidden
  if not timerexists 'stealthtime'
    createtimer 'stealthtime' 10500
  elseif timer 'stealthtime' >= 10500
    useskill "Hiding"
    settimer 'stealthtime' 0
    if listexists 'stealthing'
      removelist 'stealthing'
    endif
  endif
endwhile
while hidden
  if timer 'stealthtime' >= 10500 and not listexists 'stealthing'
    useskill "Stealth"
    settimer 'stealthtime' 0
    createlist 'stealthing'
  elseif listexists 'stealthing'
    turn "North"
    walk "North"
    pause 300
    turn "south"
    walk "south"
    pause 300
    turn "north"
  endif
endwhile
 
Last edited:
Worked up a very efficient razor macro for those who prefer razor. This will use stealth, hide if necessary, walk until you have revealed yourself (might take a few steps extra after a reveal, but no big deal), etc. Takes advantage of the way UO Outlands skill-gain happens for stealth.


Code:
!Loop
Assistant.Macros.UseSkillAction|47
Assistant.Macros.PauseAction|00:00:00.1500000
Assistant.Macros.IfAction|4|0|you must hide first
Assistant.Macros.PauseAction|00:00:10.1000000
Assistant.Macros.HotKeyAction|1044081|
Assistant.Macros.PauseAction|00:00:10.1000000
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|you fail in your attempt to move unnoticed.
Assistant.Macros.PauseAction|00:00:10.1000000
Assistant.Macros.HotKeyAction|1044081|
Assistant.Macros.PauseAction|00:00:10.1000000
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|you begin to move
Assistant.Macros.ForAction|6
Assistant.Macros.WalkAction|2
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.WalkAction|2
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.WalkAction|6
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.WalkAction|6
Assistant.Macros.EndForAction
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.EndIfAction
 
That's correct but you have a chance to gain on every step, not just initiation of the skill. More steps = more gain chances.
Completely untrue...

If you look at your skill gain chance %'s they only go up on the initial useskill of stealth, the steps are a complete waste of time :)
But thanks for the macro :) You can remove the steps and it works perfectly.