Auto Stable Pets

Young Star

Grandmaster
This is the script that I made to recall to a stable, automatically stable my pets, and recall to my house.
I hard coded in my own runebook ID and pet serial numbers for all three of my metas. If those are not being used it looks for pet1 and pet2 alias which is what my vet hotkeys also use.
Code:
//Use object inspector to find
//the serial # for your specific pets.
//same for the runebook to recall
//Enter those IDs where noted below
clearjournal
msg 'All Follow Me'
cast "Recall"
pause 200
msg 'All Follow Me'
waitfortarget 15000
//Runebook ID with default rune near stable set
target! (RUNEBOOK SERIAL#)
msg 'All Follow Me'
pause 5500
if @inregion 'guards' 'self'
  //set to your first meta's ID
  if @inrange (Meta1 Serial#) 10
    msg 'stable'
    waitingfortarget 1500
    //set to first meta's ID
    target (Meta1 Serial#)
    pause 1000
  endif
  //set to your second meta's ID
  if @inrange (Meta2 Serial#) 10
    msg 'stable'
    waitingfortarget 1500
    //set to second meta's ID
    target (Meta2 Serial#)
    pause 1000
  endif
  //set to your third meta's ID
  if @inrange (Meta3 Serial#) 10
    msg 'stable'
    waitingfortarget 1500
    //set to third meta's ID
    target (Meta3 Serial#)
    pause 1000
  endif
  //A secondary check in case you are using other pets
  if @inrange 'pet1' 10
    msg 'stable'
    waitingfortarget 1500
    target 'pet1'
    pause 1000
  endif
  if @inrange 'pet2' 10
    msg 'stable'
    waitingfortarget 1500
    target 'pet2'
  endif
endif
if not mounted and followers != 0
  playsound 'alert.wav'
  messagebox '****************Warning*****************' "!!!!!Pets are not stabled!!!!!!"
endif
if mounted and followers >= 3
  messagebox '!!!!!!!!!!!!!!Warning!!!!!!!!!!!!!!' "!!!!!Pets are not stabled!!!!!!"
endif
pause 30000
playmacro 'go home'

My "go home" macro that it plays at the end is just a recording of me recalling off a runebook defaulted to my house and runs to a teleporter.
cast "Recall"
waitfortarget 15000
target! (Runebook serial# with home set to default)
pause 600
run "North"
run "North"
run 'North'
 
Top