Complex Single-Button Hide > Stealth by thisideasucks
Description from the author:
// Complex Single-Button Hide > Stealth
// Wait and Timeout values, adjust if needed
@setvar! globalWait 100
@setvar! messageTimeout 2000
// Repeat hide attempts until hidden
@setvar! repeatHide 0
// Repeat stealth attempts until stealthed
@setvar! repeatStealth 1
// Call magical hat trick script - Set the name of script in Razor below (Line 59)
@setvar! callHatTrick 1
// Set whether script is more chatty
@setvar! chattyScript 0
if not timerexists warningTimer
settimer warningTimer messageTimeout
endif
if not timerexists notifyTimer
settimer notifyTimer messageTimeout
endif
if not hidden
clearsysmsg
useskill 'Hiding'
wait globalWait
if hidden
if chattyScript = 1
overhead 'Hidden' 88
endif
else
if timer warningTimer > messageTimeout
if insysmsg "You must wait a few moments to use another skill"
overhead "Skill cooldown!!" 38
settimer warningTimer 0
elseif not hidden
overhead 'Not Hidden!!' 38
settimer warningTimer 0
endif
endif
wait globalWait
if repeatHide = 1
loop
endif
endif
elseif hidden
clearsysmsg
if timer notifyTimer > messageTimeout
if chattyScript = 1
overhead 'Attempting stealth' 94
settimer notifyTimer 0
endif
endif
useskill 'Stealth'
wait globalWait
if insysmsg "You begin to move quietly" or insysmsg "You feel ready to continue stealthing" or insysmsg "You will automatically stealth when out of steps"
overhead 'Stealthed' 88
if callHatTrick = 1
script "Magical Hat Trick"
endif
else
if timer warningTimer > messageTimeout
overhead 'Not Stealthed!!' 38
settimer warningTimer 0
endif
wait globalWait
if repeatStealth = 1
loop
endif
endif
endifMore complex version of simple Hide > Stealth script. Adds looping function to repeat attempts to hide or stealth, and variables to control whether script repeats for each.
Script works with another script called "Magical Hat Trick" to activate Magical Wizard's Hat to prevent accidental de-stealth when walking over other mobiles.
I use "Bapeth's Wizard Hat Stealth Trick" as the script to handle this, you can use any version or skip this configuration if wanted.