[UOSteam] Meditate and re-arm
Posted: Sat Sep 16, 2017 9:32 am
This macro disarms you if armed, meditates till full or some action stops meditation, then rearms you.
If the delay since last meditate has not passed, it does nothing.
If the delay since last meditate has not passed, it does nothing.
Code: Select all
if not timerexists 'meditate'
createtimer 'meditate'
settimer 'meditate' 12000
endif
if timer 'meditate' < 6000
headmsg "timer for meditation is not expired"
stop
endif
@unsetalias rightHand_
@unsetalias leftHand_
if @findlayer 'self' 1
@setalias rightHand_ found
endif
if @findlayer 'self' 2
@setalias leftHand_ found
endif
clearhands both
clearjournal
pause 1500
useskill "Meditation"
while mana < maxmana and not @injournal "You stop meditating"
pause 1000
endwhile
if @findalias rightHand_
equipitem rightHand_ 1
endif
if @findalias leftHand_
equipitem leftHand_ 2
endif