Back to "stealth hiding thieve" tags

Safe Hiding & Stealth hotkey by golfinh0

1# Name: Begin to Hiding than Stealth or Stealth when ready
2# Author: golfinho, Guilherme Ledes (Inspired by first Jaseowns thief live stream)
3# Description: Use only one hotkey to hide and stealth, and do not lose any
4#   step when stealthing any more, with this script you will automaticaly begin to
5#   stealth only after you do your last available step.
6#
7# Hint:
8#   - Disable auto-stealth
9#   - Check Razor Options -> Additional options -> Count stealth steps, Overhead
10#     Format: [stealth {step}]
11#   - Add these overheadmessage to help you to follow what is going on:
12#      <overheadmessage searchtext="You feel comfortable enough to begin stealthing" message="READY" hue="68" />
13#      <overheadmessage searchtext="You begin to move quietly" message="stealth GO" hue="68" />
14#      <overheadmessage searchtext="You have 4 stealth" message="stealth LAST STEPS" hue="43" />
15#      <overheadmessage searchtext="You have been revealed" message="stealth REVEALED" hue="33" />
16#      <overheadmessage searchtext="You feel ready to continue stealth" message="stealth READY" hue="68" />
17#      <overheadmessage searchtext="You must hide first" message="stealth  NOT HIDDEN" hue="33" />
18
19@setvar! lag 200
20
21if not timerexists 'stealth'
22    createtimer 'stealth'
23endif
24
25settimer 'stealth' 0
26if not hidden
27    skill 'Hiding'
28    wait lag
29    while hidden and timer 'stealth' < 10000
30       overhead '[stealth WAIT]' 33
31       wait 2000
32    endwhile
33
34    if hidden
35       waitforsysmsg 'You feel comfortable enough to begin stealthing.'
36       wait lag
37       skill 'Stealth'
38    endif
39else
40    if timer 'stealth' > 10000
41       waitforsysmsg 'You feel ready to continue stealthing.'
42       waitforsysmsg 'You have 0 stealth steps remaining.'
43    endif
44    
45    wait lag
46    skill 'Stealth'
47endif