by Xyio
Auto Rails.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/cef07b00-9b9d-411f-b38a-42626b074dde for latest2# Automation by Jaseowns3## Script: Auto Rails4## Created by: Xyio#54205#############################################6 7#Auto Rails by Xyio8 9#Write your starting location below for reference10#Staring location: (example) 2007, 2239 -- Horseshoe Bay11#12# 13# <><><><><><><><><><><><><><><><><><><><><>14# ******************************************15# //--------------------------------------//16# //----PASTE RAILS FILE CONTENTS HERE----//17 18 19# //-------END RAILS FILE CONTENTS -------//20# //--------------------------------------//21#*******************************************22# <><><><><><><><><><><><><><><><><><><><><>23#24# ----CONFIG BELOW----25#----Use Rails?--- (0 if off, 1 is on)26setvar useRails 127#28#29# Delay between movement attempts30setvar movementDelay 25031#32#33# Variables to make our location persist.34setvar xListEntry 035setvar yListEntry 036 37 38#----------------DO NOT EDIT BELOW THIS LINE-----------------------39 40while not dead41 if useRails == 142 if atlist xCoord 0 as x43 setvar xListEntry x44 endif45 if atlist yCoord 0 as y46 setvar yListEntry y47 endif 48 if position xListEntry yListEntry 49 overhead 'at location' 50 if list moveList > 0 51 poplist moveList 'front'52 poplist xCoord 'front'53 poplist yCoord 'front'54 else55 overhead "::: Back to town rail completed :::"56 cast "recall"57 waitfortarget 300058 if findtype 'recall rune' backpack59 targettype 'recall rune' backpack60 overhead "::: Recalled Out :::" 1561 endif62 if findtype 'Runebook' backpack63 targettype 'Runebook' backpack64 overhead "::: Recalled Out :::" 1565 endif66 endif67 else 68 if atlist moveList 0 as firstEntry69 #overhead xListEntry70 #overhead yListEntry71 if firstEntry == 172 overhead '::: moving north :::' 5573 walk 'north'74 wait movementDelay75 endif76 if firstEntry == 277 overhead '::: moving right :::' 5578 walk 'right'79 wait movementDelay80 endif81 if firstEntry == 382 overhead '::: moving east :::' 5583 walk 'east'84 wait movementDelay85 endif86 if firstEntry == 487 overhead '::: moving down :::' 5588 walk 'down'89 wait movementDelay90 endif91 if firstEntry == 592 overhead '::: moving south :::' 5593 walk 'south'94 wait movementDelay95 endif96 if firstEntry == 697 overhead '::: moving left :::' 5598 walk 'left'99 wait movementDelay100 endif101 if firstEntry == 7102 overhead '::: moving west :::' 55103 walk 'west'104 wait movementDelay105 endif106 if firstEntry == 8107 overhead '::: moving up :::' 55108 walk 'up'109 wait movementDelay110 endif111 endif112 endif113 endif 114endwhile115 