Skip to content
Outlands Hub

Razor script

Fast Travel

by alcon188 · 282 lines
Download

by Alcon Use Moongate, Magery, Chivalry, or Camping to travel to a specified location using one button. Works on multiple characters if they have their Favorite rune in the same slot of their respective books. Last Edited…

MagicChivalryMageryCamping
Fast Travel.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/7333c8c6-822c-4aed-aa10-0a5a5bb76a00 for latest2# Automation by Jaseowns3## Script: Fast Travel4## Created by: alcon188#05#############################################6 7# Fast Travel by Alcon8# Use Moongate, Magery, Chivalry, or Camping to travel to a specified location using one button.9# Works on multiple characters if they have their Favorite rune in the same slot of their respective books.10# Last Edited 12/12/2411// Cut the multiple runebook related variables, turns out they break everything in their current iteration12 13 14#/#/# IMPORTANT #/#/#15# There is a feature that automatically uses a Recall scroll if you are out of reagents16# Relevant characters must have a cooldown named Regs with a Trigger for Overhead Message:17# More reagents are needed for this spell18# Recommend that the cooldown be 10 seconds19// After additional testing I've found that in some cases the hotkey needs to be pressed multiple times for the switch to happen, haven't found a fix yet.20 21 22 23###24# Set your Moongate preferences for all Moongate types (Blue, Red, Gold, Ghost)25###26 27#Set this to 1 to return to whatever city you used last instead of a Favorite one28@setvar! MoongateToLastCity 029 30@setvar! FavoriteCity 1431# Anchors Rest 1032# Andaria 1133# Cambria 1234# Horseshoe Bay 1335# Outpost 1436# Prevalia 1537# Terran 1638# Totem 1739# Shelter Island 1840# Corpse Creek 1941 42 43 44###45# Set your Recall preferences for Runebooks and Rune Tomes46###47 48@setvar! AlwaysUseScroll 049 50@setvar! BookFavoriteRune 551@setvar! BookFavoriteScroll 252 53@setvar! TomeFavoriteRune  20054@setvar! TomeFavoriteScroll 10055 56### Runebook Numbers57# 1st Rune Slot 5        # 1st Scroll Slot 258# 2nd Rune Slot 11       # 2nd Scroll Slot 8     59# 3rd Rune Slot 17       # 3rd Scroll Slot 1460# 4th Rune Slot 23       # 4th Scroll Slot 2061# 5th Rune Slot 29       # 5th Scroll Slot 2662# 6th Rune Slot 35       # 6th Scroll Slot 3263# 7th Rune Slot 41       # 7th Scroll Slot 3864# 8th Rune Slot 47       # 8th Scroll Slot 4465# 9th Rune Slot 53       # 9th Scroll Slot 5066# 10th Rune Slot 59      # 10th Scroll Slot 5667# 11th Rune Slot 65      # 11th Scroll Slot 6268# 12th Rune Slot 71      # 12th Scroll Slot 6869# 13th Rune Slot 77      # 13th Scroll Slot 7470# 14th Rune Slot 83      # 14th Scroll Slot 8071# 15th Rune Slot 89      # 15th Scroll Slot 8672# 16th Rune Slot 95      # 16th Scroll Slot 9273 74### Rune Tome Numbers75# 1st Rune Slot 200      # 1st Scroll Slot 10076# 2nd Rune Slot 201      # 2nd Scroll Slot 10177# 3rd Rune Slot 202      # 3rd Scroll Slot 10278# ...                    # ...  79# 26th Rune Slot 225     # 26th Scroll Slot 12580 81 82 83###84# Set your Hiking preferences85###86 87@setvar! FavoriteHikingCategory 10388@setvar! FavoriteHikingSpot 2689@setvar! MyFavoriteHikingSpotIsOnTheFirstPage 190 91 92### Hiking Numbers, set category and location93# Dungeons 101              # For location, the top of the page is 2094# Healer Caravans 102       # and it counts up as you go down the page    95# Moongates 103             #  96# New Player 104            #97# Personal 105              #98# Points of Interest 106    # E.G. I want to go to Prevalia Bog Caravan99# Shrines 107               # @setvar! FavoriteHikingCategory 102100# Sub-Dungeon 108           # @setvar! FavoriteHikingSpot 30101# Townships 109             # @setvar! MyFavoriteHikingSpotIsOnTheFirstPage 0102 103####################################################################################################104###### DO NOT EDIT BELOW THIS UNLESS YOU WANT TO BREAK THE SCRIPT ##################################105####################################################################################################106@setvar! ChivGateBlocked 0107 108if findtype "blue moongate" true as gate109    while not gumpexists 3773199800110        dclick gate111    endwhile112    if MoongateToLastCity = 0113        waitforgump 3773199800114    gumpresponse FavoriteCity115    endif116    waitforgump 3773199800117    gumpresponse 2118   119    120elseif skill "Chivalry" >= 90 and SwitchToRecall = 0121    while ChivGateBlocked = 0122        clearsysmsg 123        say '[sacredjourney'124        wait 150125        if insysmsg "You must wait another"126            @setvar! ChivGateBlocked 1127            @setvar SwitchToRecall 1128            loop129        endif130        waitforgump 1482653814131        gumpresponse 4132        wait 150133        if insysmsg "You have been in combat too recently"134            @setvar! ChivGateBlocked 1135            @setvar SwitchToRecall 1136            gumpclose137            loop138        elseif insysmsg "A mysterious force prevents your spell"139            @setvar! ChivGateBlocked 1140            @setvar SwitchToRecall 1141            gumpclose142            loop143        else144            // do nothing145        endif146        waitforgump 1387930325147        while not findtype "moongate" true148        endwhile149        dclicktype "moongate" true150        waitforgump 3899019871151        gumpresponse 2152        stop153    endwhile154    155    156elseif findtype "runebook" backpack157    if skill "Magery" >= 60 and AlwaysUseScroll = 0 and OutOfRegs = 0158        if findlayer self righthand as found159            @setvar! weapon_equipped found160        endif161        if findlayer self lefthand as found162            @setvar! shield_equipped found163        endif164        dclicktype 'runebook' backpack165        waitforgump 1551740969166        gumpresponse BookFavoriteRune167        wait 500168        if cooldown Regs > 1169            @setvar OutOfRegs 1170            wait 500171            loop172        endif173        wait 2000174        if not findlayer self righthand and weapon_equipped = found175            dclick weapon_equipped176        endif177        if not findlayer self lefthand and shield_equipped = found178            wait 500179            dclick shield_equipped180        endif181    else182        if findlayer self righthand as found183            @setvar! weapon_equipped found184        endif185        if findlayer self lefthand as found186            @setvar! shield_equipped found187        endif188        dclicktype 'runebook' backpack189        waitforgump 1551740969190        gumpresponse BookFavoriteScroll    191        wait 2500192        if not findlayer self righthand and weapon_equipped = found193            dclick weapon_equipped194        endif195        if not findlayer self lefthand  and shield_equipped = found196            wait 500197        dclick shield_equipped198        endif199    endif200    @setvar SwitchToRecall 0201    @setvar OutOfRegs 0202    203 204elseif findtype "runetome" backpack205    if skill "Magery" >= 60 and AlwaysUseScroll = 0 and OutOfRegs = 0206        if findlayer self righthand as found207            @setvar! weapon_equipped found208        endif209        if findlayer self lefthand as found210            @setvar! shield_equipped found211        endif212        dclicktype 'runetome' backpack213        waitforgump 167090027214        gumpresponse TomeFavoriteRune215        waitforgump 167090027216        gumpresponse 10217        wait 500218        if cooldown Regs > 1219            @setvar OutOfRegs 1220            wait 500221            loop222        endif223        wait 2000224        if not findlayer self righthand and weapon_equipped = found225            dclick weapon_equipped226        endif227        if not findlayer self lefthand and shield_equipped = found228            wait 500229            dclick shield_equipped230        endif231    else232        if findlayer self righthand as found233            @setvar! weapon_equipped found234        endif235        if findlayer self lefthand as found236            @setvar! shield_equipped found237        endif238        dclicktype 'runetome' backpack239        waitforgump 167090027240        gumpresponse TomeFavoriteScroll241        wait 2500242        if not findlayer self righthand and weapon_equipped = found243            dclick weapon_equipped244        endif245        if not findlayer self lefthand and shield_equipped = found246            wait 500247            dclick shield_equipped248        endif249    endif250    @setvar SwitchToRecall 0251    @setvar OutOfRegs 0252        253 254elseif skill "Camping" >= 60255    while not findtype "campfire" ground 0 1 8 256        if not findtype "kindling" backpack257            overhead "No kindling" 34258            stop259        endif260        dclicktype "kindling" backpack261        clearsysmsg262        wait 5000263    endwhile264    while findtype "campfire" ground 0 1 8265        while not insysmsg "Your campfire is now secure."266        endwhile267        dclicktype 'atlas' backpack268        waitforgump 341416395269        gumpresponse FavoriteHikingCategory270        waitforgump 341416395271        if MyFavoriteHikingSpotIsOnTheFirstPage = 0272        gumpresponse 16     273        waitforgump 341416395274        endif275        gumpresponse FavoriteHikingSpot    276        waitforgump 341416395277        gumpresponse 14     278        stop279    endwhile280else 281    overhead 'No way home' 34282endif