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

На главную


cartographer.GetCurrentZoneAttributes()

Возвращает индексированный массив строковых атрибутов зоны в которой находится главный игрок. Атрибуты задаются в ресурсах зон и собираются и с самой зоны и с её родительских зон. В полученном массиве по индексу строкового аттрибута находится значение true.

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

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

-- параметры:
нет

-- возвращаемые значения:
table of string - таблица, со значениями true по индексам имеющихся строковых аттрибутов

Пример:

if cartographer.GetCurrentZoneAttributes()[ "Goblinoball" ] then
  LogInfo( "Это зона для гоблинобола." )
end

Search: "CategoryLuaApi" "CategoryCartographer"

CategoryCartographer
EventAvatarClientZoneChanged
EventAvatarMapModifiersChanged
EventAvatarZoneChanged
EventNavigateEnabledChanged
EventSosFinished
EventSosStarted
FunctionCartographerCanNavigateToPoint
FunctionCartographerGetCurrentMapInfo
FunctionCartographerGetCurrentMapModifiers
FunctionCartographerGetCurrentZoneAttributes
FunctionCartographerGetCurrentZoneInfo
FunctionCartographerGetMapBlockInfo
FunctionCartographerGetMapBlocks
FunctionCartographerGetMapMarkerObjects
FunctionCartographerGetMapMarkers
FunctionCartographerGetMapModifierInfo
FunctionCartographerGetMapModifierValuedObject
FunctionCartographerGetMarkerInfo
FunctionCartographerGetObjectGeodata
FunctionCartographerGetQuestGeodata
FunctionCartographerGetQuestObjectiveGeodata
FunctionCartographerGetSosInfo
FunctionCartographerGetSosObjects
FunctionCartographerGetZonesMapId
FunctionCartographerGetZonesMapInfo
FunctionCartographerGetZonesMapLowQuests
FunctionCartographerGetZonesMapQuests
FunctionCartographerIsCurrentZoneAnonymizedMap
FunctionCartographerIsCurrentZoneRiftMap
FunctionCartographerIsFinalQuestCompleted
FunctionCartographerIsOnCommon
FunctionRulesGetZonesMaps
FunctionUnitGetZonesMapId
Geodata
MapModifierId


CategoryLuaApi CategoryFunction CategoryCartographer

На главную