LibTourist-3.0

Usage sample

LibTourist is a library that provides information about zones, instances, transports and more.

For zones, instances, complexes (like Caverns of Time), arenas and battlegrounds, LibTourist can provide level range, faction, location and connections with other zones, as well as instance group sizes, instance entrance portal coordinates, battle pet level ranges and required fishing skills, if applicable.

Color-coding for level ranges and zone names is available.

Relationships between zones can be provided, i.e. which instances are located in a specific complex, and in which zone resides the complex, vice versa.

The library contains information about all known cross-zone transports: zeppelins, boats, portals etcetera. It can also be used for distance calculations between coordinates.

An extensive API allows the addon developer to query LibTourist in many ways.

LibTourist supports localization.

__________________

A few notes about the fishing skills in LibTourist:

- All fishing skills are now set to the skill required to fish 100% junk-free. If your skill, including the effect of lures and other enhancements, is below that, you will catch a certain percentage of junk, which can be up to 100%.

- These values are valid for open water, because fishing pools requires skill 1 since WoW patch 3.3.0, regardless of the zone they're in.

- If multiple values apply for a zone, generally the lowest is used. For example, for Northern Stranglethorn a higher skill is required to fish the South Seas (300) compared to other waters (150), so it's value in LibTourist is set to 150.

- Zones that have a fishing skill of 1, allow fishing in lava or acid only. Don't expect to catch anything useful here, except for an incidental Elemental Fire from lava.

- Zones without a fishing skill should contain no fishable water.

Source: http://www.elsanglin.com

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Odica Odica Nov 28, 2012 at 22:01 UTC - 0 likes

    @twobits: Go

    Hm... I have no clue why this was originally built this way. If you meet the required minimum level, you can enter a BG, all the way up to the game level cap, as far as I know. No idea what the fmod construction is for, so I removed it and replaced it with a straight-forward low/high-check :-) Also, I have upped the high value for all BG's to 90 to make that check work for players above 85.

    See r156...

    Would you be so kind to check if this results in the expected behaviour? Thanks! ;-)

    Odica

    Last edited Nov 28, 2012 by Odica
  • Avatar of twobits twobits Nov 28, 2012 at 07:00 UTC - 0 likes

    @Odica: Go

    Ah, well that may explain why the IterateRecommendedInstances no longer works as they used to for BGs.
    It used to be if you had a character that was the right level for say, WSG and AB you would get these returned and no other BGs. At max level you would get all of them. I no longer am seeing recommended BGs on low level characters. I was proposing that instead of fixing RecommendedInstances a new RecommendedBGs that behaves like it used to , but just for BGs be added.

    I have and was looking at Wow-5.0-beta2 of LibTourist. I see code like

    zones[BZ["Warsong Gulch"]] = {
                    low = 10,
                    high = 85,
                    continent = Kalimdor,
                    paths = isHorde and BZ["Northern Barrens"] or BZ["Ashenvale"],
                    groupSize = 10,
                    type = "Battleground",
                    texture = "WarsongGulch",
    

    and for other BGS that seem to set the high to 85., so the high is being set to only 85, then just ignored in the code it seems?

    Also,

    if playerLevel >= low and (playerLevel == MAX_PLAYER_LEVEL or math.fmod(playerLevel, 10) >= 6) then
    

    seem to be an attempt to only recommend BGs when you are x6-x9, but that is not accurate for the current brackets as it misses recommending x4

    Last edited Nov 28, 2012 by twobits
  • Avatar of Odica Odica Nov 21, 2012 at 20:36 UTC - 0 likes

    @alsuko: Go

    Hi Alsuko,

    I have compared the Pandaria zone levels to what the game itself suggests. Turns out that 88-89 for Towlong Steppes is correct.

    However, 87-88 for Dread Wastes is incorrect, this should be 89-90. It will be corrected in the next release of LibTourist.

    Thanks!

    Odica

  • Avatar of Odica Odica Nov 21, 2012 at 20:27 UTC - 0 likes

    @twobits: Go

    Hi Twobits,

    I don't quite understand how battlegrounds can be recommended, as they have level brackets which make them accessible for all player levels that meet the minimum level requirement for the BG. Furthermore, the max level is not set to 85 but to MAX_PLAYER_LEVEL, which is supplied by WoW (currently 90).

    Odica

  • Avatar of alsuko alsuko Nov 19, 2012 at 09:49 UTC - 0 likes

    I use elvui location +, it use your library. I see a mistake for the townlong steppes for the level of this zone. It must be to appear 89-90.

    Thank you (i'm frensh)

  • Avatar of twobits twobits Oct 28, 2012 at 13:57 UTC - 0 likes

    Would it make any sense to add an IterateRecommendedBattlegrounds()

    I guess it does not matter that the max_level for the Battlegrounds is still set to 85?

    Maybe these should be made auto adjusting?

    something like

    local current_max_level = MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()]

    then use current_max_level for the max_level = in the Battlegrounds.

  • Avatar of Odica Odica Oct 10, 2012 at 18:22 UTC - 0 likes

    @nickyjean01: Go

    I'm sorry, I missed your comment somehow, but in the meantime a ticket has been created for this idea. I'll look into it, I think it would be a valuable addition.

  • Avatar of nickyjean01 nickyjean01 Sep 09, 2012 at 05:55 UTC - 1 like

    Not sure if this fits into you goal but Pet Battle Levels might be something you want to include. 85 - 90's will be bouncing all over the world hoping to get a rare this or that but making sure that the companions you have are ready for the level you are going enter is going to be a thing.

  • Avatar of next96 next96 Sep 04, 2012 at 10:59 UTC - 0 likes

    @Odica: Go

    thank you

  • Avatar of Odica Odica Sep 02, 2012 at 21:58 UTC - 0 likes

    @next96: Go

    Try r146.

Facts

Date created
Jul 20, 2008
Category
Last update
Oct 23, 2014
Development stage
Mature
Language
  • enUS
License
MIT License
Curse link
LibTourist-3.0
Reverse relationships
17
Downloads
238,498
Recent files
  • A: r167 for 6.0.2 Oct 23, 2014
  • A: r166 for 5.4.8 Oct 06, 2014
  • A: r165 for 5.4.0 Sep 11, 2013
  • A: r164 for 5.3.0 Aug 19, 2013
  • A: r163 for 5.3.0 Aug 15, 2013

Authors

Relationships

Embedded library
LibStub