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

На главную


cartographer.GetCurrentZoneAttributes()

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

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

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

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

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

Пример:

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

Search: "CategoryLuaApi" "CategoryCartographer"

CategoryCartographer
EventAvatarClientZoneChanged
EventAvatarZoneChanged
EventSosFinished
EventSosStarted
FunctionCartographerGetCurrentMap
FunctionCartographerGetCurrentZone
FunctionCartographerGetCurrentZoneAttributes
FunctionCartographerGetMapBlockInfo
FunctionCartographerGetMapBlocks
FunctionCartographerGetPlayerGeodata
FunctionCartographerGetQuestGeodata
FunctionCartographerGetSosInfo
FunctionCartographerGetSosObjects
FunctionCartographerGetZonesMapId
FunctionCartographerGetZonesMapInfo
FunctionUnitGetZonesMapId


CategoryLuaApi CategoryFunction CategoryCartographer

На главную