Пользовательские дополнения
На главную
astral.GetAstrolabeInfoEx()
Возвращает информацию о доступных секторах для прыжка (быстрое путешествие). Показывает как непосредственно, так и потенциально доступные сектора.
-- библиотека:
astral
-- объявление:
function GetAstrolabeInfoEx()
-- возвращаемые значения:
таблица, индексированная [0..], значения - таблицы доступных и потенциально доступных секторов с полями:
techLevel: number (integer) - уровень доступных секторов для прыжка
sectors: таблица, индексированная [0..], содержащая значения:
ObjectId - идентификатор сектора
-- пример:
-- прыжок в первый же доступный сектор
local levels = astral.GetAstrolabeInfoEx()
for i = 0, GetTableSize( levels ) - 1 do
local level = levels[i]
for j = 0, GetTableSize( level.sectors ) - 1 do
local sectorId = level.sectors[j]
local sectorInfo = astral.GetSectorInfo( sectorId )
LogInfo( "Jump to: ", level.techLevel, ", name: ", sectorInfo.name )
end
end
См. также:
Связанные страницы: "CategoryLuaApi" "CategoryAstralLua"
EventAstralHubChanged
EventAstralIslandChanged
EventAstralIslandTimeChanged
EventAstralObjectDespawned
EventAstralObjectEnabledChanged
EventAstralObjectSpawned
EventAstralPoisChanged
EventAstralSectorChanged
EventAstralWreckLootTaken
EventAstrolabeInfoChanged
EventAstrolabeSpellChanged
EventAstrolabeSpellEffect
EventIslandDeathLimitChanged
EventPlayerAstralUnlockChanged
EventScannedHubObjectsChanged
FunctionAstralAstrolabeJump
FunctionAstralGetAddonInfo
FunctionAstralGetAddons
FunctionAstralGetAddonSectors
FunctionAstralGetAllPOIs
FunctionAstralGetAllSectorsObsolete
FunctionAstralGetAllTLsObsolete
FunctionAstralGetAstrolabeDeniedPlayers
FunctionAstralGetAstrolabeInfo
FunctionAstralGetAstrolabeInfoEx
FunctionAstralGetAstrolabeTarget
FunctionAstralGetCurrentSector
FunctionAstralGetGroupUnlockLevel
FunctionAstralGetHubCenter
FunctionAstralGetHubRadius
FunctionAstralGetIslandCollapseTime
FunctionAstralGetIslandDeathLimit
FunctionAstralGetObjectInfo
FunctionAstralGetObjects
FunctionAstralGetPlayerUnlockLevel
FunctionAstralGetPOIInfo
FunctionAstralGetPOITradeInfo
FunctionAstralGetScannedObjects
FunctionAstralGetSectorAstrolabeInfo
FunctionAstralGetSectorDirectPOI
FunctionAstralGetSectorEdges
FunctionAstralGetSectorEdgesById
FunctionAstralGetSectorEdgesObsolete
FunctionAstralGetSectorInfo
FunctionAstralGetSectorInfoById
FunctionAstralGetSectorPOIs
FunctionAstralGetSectorRelatedQuests
FunctionAstralGetUnits
FunctionAstralIsSectorKnownForGroup
FunctionAstralIsSectorKnownForPlayer
FunctionAvatarGetQuestAstralUnlocks
CategoryLuaApi
CategoryFunction
CategoryAstralLua
На главную