Пользовательские дополнения

На главную


astral.GetSectorInfo( sectorId )

Возвращает информацию об астральном секторе по его идентификатору.

См. ITEM_QUALITY_...

-- библиотека:
astral

-- объявление:
function GetSectorInfo( sectorId )

-- параметры:
sectorId: ObjectId - идентификатор сектора

-- возвращаемые значения:
table or nil - если информация доступна, то таблица с полями:
  id: ObjectId - идентификатор сектора
  addonId: ObjectId or nil - идентификатор астрального аддона, если такая информация имеется
  name: WString or nil - название сектора
  description: ValuedText or nil - описание
  techLevel: number (integer) - уровень сектора
  quality: number (enum ITEM_QUALITY_...) - уровень качества данного сектора
  requiredUnlock: number - требуемый анлок астрала
  ticketsCount: number - количество необходимых ключей для посещения острова
  maxServerProgress: number - значение серверного анлока, выше которого ключи перестают требоваться
  number: number (integer) - порядковый номер сектора в астральном аддоне
  x: number - координата X расположения сектора в аддоне
  y: number - координата Y расположения сектора в аддоне
  astrolabeVisible: boolean - true если сектор виден в астролябии
  mapVisible: boolean - true если сектор виден на карте
  allowChoiceLoot: boolean - true если в секторе можно выбирать лут

-- пример:
local sectorId = astral.GetCurrentSector()
if sectorId then
  local sectorInfo = astral.GetSectorInfo( sectorId )
  if sectorInfo then
    LogInfo( sectorInfo.name )
  end
end

Связанные страницы: "CategoryLuaApi" "CategoryAstralLua"

EnumFailType
EventAstralHubChanged
EventAstralIslandChanged
EventAstralIslandTimeChanged
EventAstralObjectEnabledChanged
EventAstralPoisChanged
EventAstralSectorChanged
EventAstralSectorCheckJumpResult
EventAstralWreckLootTaken
EventAstrolabeInfoChanged
EventAstrolabeSpellChanged
EventAstrolabeSpellEffect
EventIslandDeathLimitChanged
EventPlayerAstralUnlockChanged
EventScannedHubObjectsChanged
FunctionAstralAstrolabeJump
FunctionAstralCheckJump
FunctionAstralGetAddonInfo
FunctionAstralGetAddons
FunctionAstralGetAddonSectors
FunctionAstralGetAllPOIs
FunctionAstralGetAllSectorsObsolete
FunctionAstralGetAllTLsObsolete
FunctionAstralGetAstrolabeDeniedPlayers
FunctionAstralGetAstrolabeInfo
FunctionAstralGetAstrolabeInfoEx
FunctionAstralGetAstrolabeTarget
FunctionAstralGetCurrentSector
FunctionAstralGetHubCenter
FunctionAstralGetHubRadius
FunctionAstralGetIslandCollapseTime
FunctionAstralGetIslandDeathLimit
FunctionAstralGetObjectInfo
FunctionAstralGetObjects
FunctionAstralGetPlayerUnlockLevel
FunctionAstralGetPOIInfo
FunctionAstralGetPOITradeInfo
FunctionAstralGetScannedObjects
FunctionAstralGetSectorAstrolabeInfo
FunctionAstralGetSectorDirectPOI
FunctionAstralGetSectorEdges
FunctionAstralGetSectorEdgesById
FunctionAstralGetSectorEdgesObsolete
FunctionAstralGetSectorInfo
FunctionAstralGetSectorInfoById
FunctionAstralGetSectorPOIs
FunctionAstralGetSectorRelatedQuests
FunctionAstralGetUnits
FunctionAstralIsSectorKnownForGroup
FunctionAstralIsSectorKnownForPlayer


CategoryLuaApi CategoryFunction CategoryAstralLua

На главную