ESO – Modification de l’API
Suite à la mise à jour (très) majeure 6, de nombreuses modifications ont été apportées à l'API du jeu.
Voici une liste des principaux changements apportés avec la mise à jour 6.
TEXTURE_SIZE = 100
<Texture name=”TextureTemplate1” virtual=”true”>
<Dimensions x=” TEXTURE_SIZE” y=” TEXTURE_SIZE”/>
</Texture>
ApplyTemplateToControl(textureControl1, “TextureTemplate1”)
<Control name=”VirtualFrame” virtual=”true”>
<Controls>
<Texture name=”$(parent)Icon” textureFile=”test.dds” blendMode=”ADD”>
<Dimensions x =”32” y=”32”/>
</Texture>
</Controls>
</Control>
<Control name=”Frame” inherits=”VirtualFrame”>
<Controls>
<Texture name=”$(parent)Icon” override=”true” blendMode=”COLOR_DODGE”/>
</Control>
</Control>
Collection
Functions
- GetNumCollectibleCategories
- GetCollectibleCategoryInfo
- GetCollectibleSubCategoryInfo
- GetUnlockedCollectiblesCount
- GetTotalCollectiblesCount
- GetCollectibleId
- GetCollectibleInfo
- GetCategoryInfoFromCollectibleId
- GetTotalCollectiblesByCategoryType
- GetCollectibleIdFromType
- IsCollectibleCategorySlottable
- IsCollectibleSlottable
- IsCollectibleRenameable
- UseCollectible
- GetCollectibleLink
- StartCollectibleSearch
- GetCollectiblesSearchResults
- IsValidCollectibleName
- RenameCollectible
- GetCollectibleNickname
- GetCollectibleCurrentActionBarSlot
- PickupCollectible
- SelectSlotCollectible
- GetStoreCollectibleInfo
Enumerations
- COLLECTIBLE_CATEGORY_TYPE
- COLLECTIBLE_ITEM_TYPE
- COLLECTIBLE_UNLOCK_STATE
Events
- EVENT_COLLECTIBLES_SEARCH_RESULTS_READY
- EVENT_COLLECTIBLE_RENAME_ERROR
- EVENT_COLLECTION_UPDATED
Justice
Functions
- IsUnitJusticeGuard
- IsUnitInvulnerableGuard
- GetItemLaunderPrice
- IsItemLinkStolen
- AreAnyItemsStolen
- LaunderItem
- GetLootItemInfo – Added isStolen return.
- IsJusticeEnabledForZone
- IsJusticeEnabled
- IsKillOnSight
- GetInfamy
- GetBounty
- GetPlayerInfamyData
- GetBountyPayoffAmount
- GetInfamyLevel
- GetInfamyMeterSize
- GetFenceSellTransactionInfo
- GetFenceLaunderTransactionInfo
- GetCollectibleCategoryKeyboardIcons
- GetCollectibleCategoryGamepadIcon
- GetCollectibleCategoryTypeFromLink
- GetCollectibleIdFromLink
Enumerations
- INFAMY_THRESHOLD
- JUSTICE_SKILL
- PICKPOCKET_DIFFICULTY
- ITEM_LAUNDER_RESULT
Events
- EVENT_JUSTICE_BOUNTY_PAYOFF_AMOUNT_UPDATED
- EVENT_JUSTICE_FENCE_UPDATE
- EVENT_JUSTICE_GOLD_PICKPOCKETED
- EVENT_JUSTICE_GOLD_REMOVED
- EVENT_JUSTICE_INFAMY_UPDATED
- EVENT_JUSTICE_ITEM_PICKPOCKETED
- EVENT_JUSTICE_NOW_KOS
- EVENT_JUSTICE_NO_LONGER_KOS
- EVENT_JUSTICE_PICKPOCKET_FAILED
- EVENT_JUSTICE_STOLEN_ITEMS_REMOVED
Champion
Functions
- GetPlayerChampionXP
- GetPlayerChampionPointsEarned
- GetEnlightenedMultiplier
- GetEnlightenedPool
- IsEnlightenedAvailableForAccount
- IsEnlightenedAvailableForCharacter
- GetChampionXPInRank
- GetNumChampionDisciplines
- GetChampionDisciplineName
- GetChampionDisciplineDescription
- GetChampionDisciplineAttribute
- GetNumChampionDisciplineSkills
- GetChampionSkillPosition
- GetChampionSkillName
- GetMaxPossiblePointsInChampionSkill
- GetNumPointsSpentOnChampionSkill
- GetNumPointsSpentInChampionDiscipline
- GetChampionSkillUnlockLevel
- GetNumUnspentChampionPoints
- ClearPendingChampionPoints
- AddPendingChampionPoints
- SpendPendingChampionPoints
- SetChampionMusicActive
- GetChampionAbilityDescription
- GetChampionAbilityId
- GetChampionRespecCost
- GetChampionPointAttributeForRank
- IsChampionSystemUnlocked
Enumerations
- CHAMPION_PURCHASE
Events
- EVENT_CHAMPION_POINT_GAINED
- EVENT_CHAMPION_PURCHASE_RESULT
- EVENT_CHAMPION_SYSTEM_UNLOCKED
- EVENT_UNSPENT_CHAMPION_POINTS_CHANGED
Functions
- Added
- HasMountSkin
- GetMountSkinId
- GetRidingStats
- GetMaxRidingTraining
- GetTimeUntilCanBeTrained
- GetTrainingCost
- TrainRiding
- Removed
- GetMaxMountLevel
- GetNumStableSlots
- GetMaxStableSlots
- BuyStableSlot
- GetNextStableSlotCost
- CanBuyStableSlotUpgrade
- IsStableSlotEmpty
- SetActiveMount
- SellMount
- GetStableSlotInfo
- GetStableSlotMountStats
- GetTimeUntilMountCanBeFed
- GetNumMountFeedOptions
- [GetMountFeedOptionInfo
- FeedMount
- IsValidMountName
- RenameMount – Handled by collectible renaming.
- GetStoreMountInfo
Enumerations
- Removed
- STORE_ENTRY_TYPE_MOUNT
Events
- Added
- EVENT_ACTIVE_MOUNT_CHANGED
- EVENT_MOUNT_INFO_UPDATED
- Removed
- EVENT_MOUNTS_FULL_UPDATE
- EVENT_MOUNT_ADDED_TO_STABLE
- EVENT_MOUNT_UPDATE
- EVENT_STABLE_FULL
Globals
- Removed
- ACTIVE_MOUNT_INDEX
- Added
- GetCurrentRaidScore
- Removed
- GetCurrentRaidTime
- Changed
- GetRaidLeaderboardLocalPlayerInfo – returns best score instead of best time.
Enumerations
- Added
- RAID_POINT_REASON
Events
- Added
- EVENT_RAID_TRIAL_NEW_BEST_SCORE
- EVENT_RAID_TRIAL_SCORE_UPDATE
- Removed
- EVENT_RAID_TRIAL_NEW_BEST_TIME
- Changed
- EVENT_RAID_TRIAL_COMPLETE, EVENT_RAID_TRIAL_FAILED – Now report best score and total time. Removed penalty time.
Functions
- Added
- GetNextCompletedQuestId
- GetCompletedQuestInfo
- GetCompletedQuestLocationInfo
Functions
- Added
- GetScrollExtents
- GetTopLineIndex
- SetTopLineIndex
- GetAPIVersion
- GetCriticalStrikeChance
- GetAbilityEffectDescription
- CanInteractWithItem
- IsItemLinkStackable
- GetItemLinkStacks
- GetMapNameByIndex
- GetZoneDescription
- IsInAvAZone
- IsAchievementComplete
- IsUnitReincarnating
- IsUnitDeadOrReincarnating
- GetQuestToolTooltipInfo
- GetQuestItemTooltipInfo
- GetQuestLootItemTooltipInfo
- GetAchievementCategoryKeyboardIcons
- GetAchievementCategoryGamepadIcon
Changed
- GetLootMoney – Changed for Justice. Now return un-owned money, owned money instead of total money.
- GetAchievementCategoryInfo – No longer returns icons. Use GetAchievementCategoryKeyboardIcons.
Il va sans dire que ces nombreuses modifications impacteront la majorités des add-ons existants. N'oubliez pas de vérifier si ces derniers ont subi une mise à jour notamment grâce au gestionnaire d'add-on Minion.
Vous pouvez retrouver l'intégralité des modifications ainsi que les explications sur ces dernières et leur fonctionnement en téléchargeant la documentation officielle.