- This is my 'travelTo' userfunction, inspired by noobbotters worldtraveler userfunction. Thanks Noobbotter and everyone else who contributed to it.
This function takes you from any of the defined nodes (typically teleporter npcs) to any other node automatically, taking the shortest route.
- travelTo("nodename[, returnBool]")
Code: Select all
travelTo("VaranasCentral")
Code: Select all
if travelTo("VaranasCentral", true) == false then -- Take recovery steps. end
- [tr][td]Node Name[/td][td]Location[/td][/tr] [tr][td]-------------[/td][td]----------[/td][/tr] [tr][td]-- TELEPORTERS[/td][/tr] [tr][td]AbandonedFortress[/td][td]Abandoned Fortress[/td][/tr] [tr][td]AyrenCaravan[/td][td]Ayren Caravan[/td][/tr] [tr][td]BattleSquare[/td][td]Obsidian Stronghold Battle Square.[/td][/tr] [tr][td]Boulderwind[/td][td]Boulderwind Village[/td][/tr] [tr][td]Chrysalia[/td][td]Chrysalia[/td][/tr] [tr][td]CraftingSquare[/td][td]Obsidian Stronghold Crafting Square.[/td][/tr] [tr][td]Dalanis[/td][td]Dalanis Snoop[/td][/tr] [tr][td]DalanisObsidianEnvoy[/td][td]Dalanis Envoy[/td][/tr] [tr][td]DesertInvestigation[/td][td]Desert Investigation Post[/td][/tr] [tr][td]Dimarka[/td][td]Dimarka[/td][/tr] [tr][td]FangersMakeshift[/td][td]Fangers Makeshift Camp[/td][/tr] [tr][td]Fireboot[/td][td]Fireboot Fortress[/td][/tr] [tr][td]Frontline[/td][td]Frontline Camp[/td][/tr] [tr][td]GlorySquare[/td][td]Obsidian Stronghold Glory Square.[/td][/tr] [tr][td]GreenTower[/td][td]Green Tower[/td][/tr] [tr][td]HarfTradingPost[/td][td]Harf Trading Post[/td][/tr] [tr][td]Haven[/td][td]Haven of Departure[/td][/tr] [tr][td]Heffner[/td][td]Heffner Camp[/td][/tr] [tr][td]Hortek[/td][td]Jungle of Hortek[/td][/tr] [tr][td]Jinners[/td][td]Jinners Camp[/td][/tr] [tr][td]Kampel[/td][td]Kampel Town[/td][/tr] [tr][td]Kashaylan[/td][td]Kashaylan[/td][/tr] [tr][td]Limon[/td][td]Kingdom of Limon[/td][/tr] [tr][td]Logar[/td][td]Logar[/td][/tr] [tr][td]Lyk[/td][td]Lyk[/td][/tr] [tr][td]Lyonsyde[/td][td]Lyonsyde Tribe[/td][/tr] [tr][td]MercenarySquare[/td][td]Obsidian Stronghold Mercenary Square.[/td][/tr] [tr][td]NorthernJanost[/td][td]Northern Janost Forest[/td][/tr] [tr][td]Obsidian[/td][td]Obsidian Stronghold Snoop[/td][/tr] [tr][td]ObsidianCastle[/td][td]Obsidian Stronghold Guild Castle[/td][/tr] [tr][td]ObsidianDalanisEnvoy[/td][td]Obsidian Stronghold Envoy[/td][/tr] [tr][td]Reifort[/td][td]Reifort Camp[/td][/tr] [tr][td]Rorazan[/td][td]Ancient Kingdom of Rorazan[/td][/tr] [tr][td]RuinsResearch[/td][td]Ruins Research Camp[/td][/tr] [tr][td]Salioca[/td][td]Salioca Basin[/td][/tr] [tr][td]Silverfall[/td][td]Silverfall[/td][/tr] [tr][td]SouthernJanost[/td][td]Southern Janost Forest[/td][/tr] [tr][td]Sarlo[/td][td]Sarlo[/td][/tr] [tr][td]Syrbal[/td][td]Syrbal Pass[/td][/tr] [tr][td]TergothenBay[/td][td]Torag Caravan[/td][/tr] [tr][td]TradeSquare[/td][td]Obsidian Stronghold Trade Square.[/td][/tr] [tr][td]Tundra[/td][td]Merdhin Tundra[/td][/tr] [tr][td]Varanas[/td][td]Varanas Snoop[/td][/tr] [tr][td]VaranasBridge[/td][td]Varanas Gates[/td][/tr] [tr][td]VaranasCastleEast[/td][td]Varanas East Guild Castle[/td][/tr] [tr][td]VaranasCastleWest[/td][td]Varanas West Guild Castle[/td][/tr] [tr][td]VaranasCentral[/td][td]Varanas Central Plaza[/td][/tr] [tr][td]VaranasClassHall[/td][td]Varanas Class Hall[/td][/tr] [tr][td]VaranasEast[/td][td]Varanas Lower City East[/td][/tr] [tr][td]VaranasGuildHall[/td][td]Varanas Guild Hall[/td][/tr] [tr][td]VaranasWest[/td][td]Varanas Lower City West[/td][/tr] [tr][td]VaranasWisdom[/td][td]Varanas Hall of the Eye of Wisdom[/td][/tr] [tr][td]WailingFjord[/td][td]Wailing Fjord[/td][/tr] [tr][td]Yrvandis[/td][td]Yrvandis Hollows[/td][/tr] [tr][td]-[/td][/tr] [tr][td]-- HOUSEMAIDS[/td][/tr] [tr][td]HarfTradingPostHousemaid[/td][td]Harf Trading Post Housemaid[/td][/tr] [tr][td]HeffnerHousemaid[/td][td]Heffner Housemaid[/td][/tr] [tr][td]LogarHousemaid[/td][td]Logar Housemaid[/td][/tr] [tr][td]ObsidianNorthHousemaid[/td][td]Obsidian Stronghold Housemaid[/td][/tr] [tr][td]TundraHousemaid[/td][td]Merdhin Tundra Housemaid[/td][/tr] [tr][td]WailingFjordHousemaid[/td][td]Wailing Fjord Housemaid[/td][/tr] [tr][td]-[/td][/tr] [tr][td]-- OTHERS[/td][/tr] [tr][td]Butterflies[/td][td]Butterflies Daily Npc[/td][/tr] [tr][td]DemostrationBattle[/td][td]Demonstration Battle[/td][/tr] [tr][td]DoD[/td][td]Dungeon of Dalanis[/td][/tr] [tr][td]GoblinMines[/td][td]Goblin Mines[/td][/tr]
- Uses an algorithm to find the shortest path to the destination.
- Knows if major hubs have been visited so can avoid unvisited nodes. So it wont try to go to Dalanis via Rorazan if you haven't visited Rorazan, for example.
- If Recall isn't on cooldown it can use a transport skill, if it needs to, to get to the destination. This includes if you are not near a node point.
- Knows about automatically available links such as Reifort to Ayren, so can find paths to destinations you haven't visited. For example, if you have a new character that has the Reifort Transport skill, it could still find a path to Dalanis, even if you haven't unlocked Obsidian yet.
- Designed to be easily maintained. In most cases all you have to do is add an entry in the 'nodeList' and 'optionString'.