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

На главную

## CodeLuaGlobalVars

Список глобальных переменных, определенных в коде. Все переменные имеют тип number (int) - числовое перечисление.

    -- quest states
    QUEST_IN_PROGRESS
    QUEST_READY_TO_RETURN
    QUEST_COMPLETED
    QUEST_FAILED

    -- quest counter type
    QUEST_COUNT_KILL
    QUEST_COUNT_ITEM
    QUEST_COUNT_SPECIAL
    QUEST_COUNT_KILL_AVATAR
    QUEST_COUNT_MONEY
    QUEST_COUNT_SHIP_UPGRADE_MONEY
    QUEST_COUNT_UPGRADABLE_SHIP
    QUEST_COUNT_REPUTATION
    QUEST_COUNT_ALT_CURRENCY

    -- Тип квеста
    QUEST_TYPE_SOLO
    QUEST_TYPE_PARTY
    QUEST_TYPE_INSTANCE
    QUEST_TYPE_RAID

    //-- Тип поиска квеста ()
    QUEST_FIND_NEXT_QUEST_MODE_ZONE
    QUEST_FIND_NEXT_QUEST_MODE_ALL

    -- keyboard flags
    -- can be used in combinations like (KBF_SHIFT + KBF_ALT) etc.
    KBF_NONE
    KBF_SHIFT
    KBF_ALT
    KBF_CTRL
    KBF_ANY

    -- additional bind parameters
    BIND_ACTIVATE_ONLY
    BIND_ACTIVATE_AND_DEACTIVATE

    -- widget alignment
    WIDGET_ALIGN_LOW
    WIDGET_ALIGN_HIGH
    WIDGET_ALIGN_CENTER
    WIDGET_ALIGN_BOTH
    WIDGET_ALIGN_LOW_ABS

    -- widget sizing
    WIDGET_SIZING_DEFAULT
    WIDGET_SIZING_INTERNAL
    WIDGET_SIZING_CHILDREN

    -- blend effect
    BLEND_EFFECT_ALPHABLND
    BLEND_EFFECT_HIGHLIGHT
    BLEND_EFFECT_ADD
    BLEND_EFFECT_MUL
    BLEND_EFFECT_REPLACE

    -- effect types
    EA_MONOTONOUS_INCREASE
    EA_SYMMETRIC_FLASH

    -- damage source
    DAMAGE_SOURCE_SPELL
    DAMAGE_SOURCE_DOT
    DAMAGE_SOURCE_MAINATTACK
    DAMAGE_SOURCE_RANGED
    DAMAGE_SOURCE_BARRIER
    DAMAGE_SOURCE_OTHER

    SEX_UNKNOWN
    SEX_MALE
    SEX_FEMALE

    -- player or mob mana type
    MANA_TYPE_MANA
    MANA_TYPE_ENERGY

    -- action effects
    EFFECT_TYPE_UNKNOWN
    EFFECT_TYPE_COOLDOWN_STARTED
    EFFECT_TYPE_COOLDOWN_FINISHED
    EFFECT_TYPE_SPELL_PREPARED
    EFFECT_TYPE_SPELL_ACTIVE_STATE_CHANGED

    -- dress slots
    DRESS_SLOT_HELM
    DRESS_SLOT_ARMOR
    DRESS_SLOT_PANTS
    DRESS_SLOT_BOOTS
    DRESS_SLOT_MANTLE
    DRESS_SLOT_GLOVES
    DRESS_SLOT_BRACERS
    DRESS_SLOT_BELT
    DRESS_SLOT_RING1
    DRESS_SLOT_RING2
    DRESS_SLOT_EARRINGS
    DRESS_SLOT_NECKLACE
    DRESS_SLOT_CLOAK
    DRESS_SLOT_SHIRT
    DRESS_SLOT_MAINHAND
    DRESS_SLOT_OFFHAND
    DRESS_SLOT_RANGED
    DRESS_SLOT_AMMO
    DRESS_SLOT_TABARD
    DRESS_SLOT_TRINKET
    DRESS_SLOT_BAG
    DRESS_SLOT_DEATHINSURANCE
    DRESS_SLOT_LIFESTYLEHEAD
    DRESS_SLOT_LIFESTYLEBACK
    DRESS_SLOT_LIFESTYLESUIT
    DRESS_SLOT_LIFESTYLEUNDERWEAR
    DRESS_SLOT_UNDRESSABLE
    DRESS_SLOT_TWOHANDED
    DRESS_SLOT_DUALWIELD
    DRESS_SLOT_RING

    ITEM_QUALITY_JUNK
    ITEM_QUALITY_GOODS
    ITEM_QUALITY_COMMON
    ITEM_QUALITY_UNCOMMON
    ITEM_QUALITY_RARE
    ITEM_QUALITY_EPIC
    ITEM_QUALITY_LEGENDARY
    ITEM_QUALITY_RELIC

    -- item binding types
    ITEM_BINDING_BIND_NONE
    ITEM_BINDING_BIND_ON_PICKUP
    ITEM_BINDING_BIND_ON_EQUIP
    ITEM_BINDING_BIND_ON_USE

    -- take items result
    TAKE_ITEMS_RESULT_SUCCESS
    TAKE_ITEMS_RESULT_PARTIAL_STACK_LEFT
    TAKE_ITEMS_RESULT_FULL_STACK_LEFT

    -- itemmall account status
    ITEMMALL_STATUS_NORMAL
    ITEMMALL_STATUS_LOCKED

    -- action types
    ACTION_TYPE_UNKNOWN
    ACTION_TYPE_SPELL
    ACTION_TYPE_ITEM
    ACTION_TYPE_MOUNT
    ACTION_TYPE_EMOTE

    -- spell types
    SPELL_TYPE_SELF
    SPELL_TYPE_CURRENT_TARGET
    SPELL_TYPE_POINT
    SPELL_TYPE_CURRENT_TARGET_NOT_SELF

    -- visible objects position
    ATTACHED_OBJECT_POS_BOTTOM
    ATTACHED_OBJECT_POS_CENTER
    ATTACHED_OBJECT_POS_UP

    -- mob qualities (eliteness)
    UNIT_QUALITY_COMMON
    UNIT_QUALITY_ELITE
    UNIT_QUALITY_FLAVOR_ELITE
    UNIT_QUALITY_MINI_BOSS
    UNIT_QUALITY_BOSS
    UNIT_QUALITY_RAID_BOSS
    UNIT_QUALITY_RAID_ELITE
    UNIT_QUALITY_CRITTER

    -- chat
    CHAT_TYPE_DEBUG - для служебного использования (только отладочная версия)
    CHAT_TYPE_ASK
    CHAT_TYPE_NOTICE
    CHAT_TYPE_WHISPER
    CHAT_TYPE_PARTY
    CHAT_TYPE_SAY
    CHAT_TYPE_ZONE
    CHAT_TYPE_YELL_ZONE
    CHAT_TYPE_WORLD
    CHAT_TYPE_EMOTE
    CHAT_TYPE_CHANNEL
    CHAT_TYPE_GUILD
    CHAT_TYPE_GUILD_OFFICER
    CHAT_TYPE_RAID
    CHAT_TYPE_PSIONIC

    -- pet movement type
    PET_MOVE_FOLLOW
    PET_MOVE_STAY

    -- pet aggro type
    PET_AGGRO_AGGRESIVE
    PET_AGGRO_DEFENSIVE
    PET_AGGRO_PASSIVE

    -- Zone PvP Type
    ZONE_PVP_TYPE_ARENA
    ZONE_PVP_TYPE_CONTESTED
    ZONE_PVP_TYPE_HOMELAND
    ZONE_PVP_TYPE_SANCTUARY

    -- Choice Greed/Need for loot
    CHOICE_GREED_NEED_PASS
    CHOICE_GREED_NEED_GREED
    CHOICE_GREED_NEED_NEED

    -- LootScheme
    LOOT_SCHEME_TYPE_FREE_FOR_ALL
    LOOT_SCHEME_TYPE_MASTER
    LOOT_SCHEME_TYPE_GROUP

    -- ValuedObject type
    VAL_OBJ_TYPE_UNKNOWN
    VAL_OBJ_TYPE_ITEM
    VAL_OBJ_TYPE_SPELL
    VAL_OBJ_TYPE_ABILITY
    VAL_OBJ_TYPE_CREATURE
    VAL_OBJ_TYPE_PLAYER
    VAL_OBJ_TYPE_MOUNT
    VAL_OBJ_TYPE_CURRENCY
    VAL_OBJ_TYPE_POST_TYPE
    VAL_OBJ_TYPE_WISHMASTER
    VAL_OBJ_TYPE_QUEST
    VAL_OBJ_TYPE_GUILD_ALLOD
    VAL_OBJ_TYPE_DEVICE

    -- Usable device type
    USDEV_NOT_USABLE_DEVICE
    USDEV_USABLE_DEVICE
    USDEV_REACTOR
    USDEV_ENGINE_HORIZONTAL
    USDEV_ENGINE_VERTICAL
    USDEV_RUDDER
    USDEV_CANNON
    USDEV_BEAM_CANNON
    USDEV_TORPEDO
    USDEV_SHIELD
    USDEV_NAVIGATOR
    USDEV_REPAIR
    USDEV_TELEPORT
    USDEV_LAZARETH
    USDEV_TREASURE
    USDEV_REMOTE_RUDDER
    USDEV_REMOTE_ENGINE
    USDEV_REMOTE_ENGINE_HORIZONTAL
    USDEV_REMOTE_ENGINE_VERTICAL
    USDEV_BOARDING
    USDEV_SCANER
    USDEV_DECOR_SAILS
    USDEV_DECOR_NAME
    USDEV_DECOR_FLAG
    USDEV_DECOR_STERN
    USDEV_DECOR_LIGHTHOUSE
    USDEV_DECOR_STATUE
    USDEV_DECOR_FIGUREHEAD

    -- Psionic contact type
    PSIONIC_CONTACT_NORMAL
    PSIONIC_CONTACT_CRUDE

    -- Ship sides
    SHIP_SIDE_NONE
    SHIP_SIDE_GENERAL
    SHIP_SIDE_FRONT
    SHIP_SIDE_REAR
    SHIP_SIDE_LEFT
    SHIP_SIDE_RIGHT

    -- Options data type
    UI_OPTION_DATA_FIXED
    UI_OPTION_DATA_BOOLEAN
    UI_OPTION_DATA_DISCRETE
    UI_OPTION_DATA_DISCRETE_FLOAT

    -- effect types
    ET_MOVE
    ET_FADE
    ET_RESIZE
    ET_TEXTURE_ROTATION
    ET_TEXT_SCALE

    -- Client detectors types
    CLIENT_DETECTOR_QUEST_NPC
    CLIENT_DETECTOR_TRAINER_NPC
    CLIENT_DETECTOR_VENDOR_NPC
    CLIENT_DETECTOR_SERVICE_NPC
    CLIENT_DETECTOR_PLAYER
    CLIENT_DETECTOR_SPOUSE

    -- Vendor types
    VENDOR_NO_VENDOR
    VENDOR_GENERAL
    VENDOR_WEAPON_ARMOR
    VENDOR_CRAFTING_COMPONENTS
    VENDOR_USABLE_ITEMS
    VENDOR_GUILD
    VENDOR_MYRRH

    -- Crafting skill ENUMs
    CRAFTING_SKILL_UNKNOWN
    CRAFTING_SKILL_ALCHEMY
    CRAFTING_SKILL_ARMOR_CRAFT

    -- Armor craft ENUMs
    ARMOR_CRAFT_PROP_LVL_ADD
    ARMOR_CRAFT_PROP_LVL_SUB
    ARMOR_CRAFT_PROP_QLT_ADD
    ARMOR_CRAFT_PROP_QLT_SUB
    ARMOR_CRAFT_PROP_SCS_ADD
    ARMOR_CRAFT_PROP_SCS_SUB

    -- Guild member rights
    GUILD_MEMBER_RIGHT_CHAT
    GUILD_MEMBER_RIGHT_OFFICER_CHAT
    GUILD_MEMBER_RIGHT_RECRUIT
    GUILD_MEMBER_RIGHT_PROMOTE_DEMOTE
    GUILD_MEMBER_RIGHT_KICK
    GUILD_MEMBER_RIGHT_WEAR_SYMBOLICS
    GUILD_MEMBER_RIGHT_MODIFY_SYMBOLICS
    GUILD_MEMBER_RIGHT_MODIFY_MESSAGE
    GUILD_MEMBER_RIGHT_MODIFY_DESCRIPTION
    GUILD_MEMBER_RIGHT_MODIFY_MEMBER_DESCRIPTION

    -- Ability and spell learn failed conditions
    LEARN_ERROR_LOW_LEVEL
    LEARN_ERROR_NO_CASH
    LEARN_ERROR_NO_PREVIOS_RANKS
    LEARN_ERROR_ALREADY_KNOWN
    LEARN_ERROR_PREVIOS_TRAINING_UNFINISHED

    -- Reputation levels
    REPUTATION_LEVEL_HOSTILITY
    REPUTATION_LEVEL_ENEMY
    REPUTATION_LEVEL_UNFRIENDLY
    REPUTATION_LEVEL_NEUTRAL
    REPUTATION_LEVEL_KINDLY
    REPUTATION_LEVEL_FRIENDLY
    REPUTATION_LEVEL_CONFIDENTIAL

    -- Auction search result sorting order
    AUCTION_ORDERFIELD_NAME
    AUCTION_ORDERFIELD_CLASS
    AUCTION_ORDERFIELD_SLOT
    AUCTION_ORDERFIELD_RARETY
    AUCTION_ORDERFIELD_LEVEL
    AUCTION_ORDERFIELD_TYPE
    AUCTION_ORDERFIELD_BID
    AUCTION_ORDERFIELD_BUYOUT
    AUCTION_ORDERFIELD_LEFTTIME
    AUCTION_ORDERFIELD_NONE

    -- Auction life time
    AUCTION_CREATETIME_HOURS3
    AUCTION_CREATETIME_HOURS12
    AUCTION_CREATETIME_HOURS24

    -- Group member state
    GROUP_MEMBER_STATE_OFFLINE
    GROUP_MEMBER_STATE_NEAR
    GROUP_MEMBER_STATE_FAR

    -- Reason of target changing
    CHANGE_TARGET_UNKNOWN
    CHANGE_TARGET_DEAD_TARGET

    -- Creature InnateStats
    ENUM_InnateStats_Plain
    ENUM_InnateStats_Rage
    ENUM_InnateStats_Finisher
    ENUM_InnateStats_Lethality
    ENUM_InnateStats_Vitality
    ENUM_InnateStats_Endurance
    ENUM_InnateStats_Lifesteal
    ENUM_InnateStats_Will
    ENUM_InnateStats_CritChance

    -- Creature resistances
    RESISTANCE_ELEMENTAL
    RESISTANCE_DIVINE
    RESISTANCE_NATURE

    -- Raid member state
    RAID_MEMBER_STATE_OFFLINE
    RAID_MEMBER_STATE_NEAR
    RAID_MEMBER_STATE_FAR

    -- Raid member rights
    RAID_MEMBER_RIGHT_LEADER_HELPER
    RAID_MEMBER_RIGHT_LOOT_MASTER

    -- Pet types
    PET_TYPE_UNKNOWN
    PET_TYPE_NECROMANCER
    PET_TYPE_DRUID
    PET_TYPE_PSIONIC

    -- Spell Requirements types
    AFCT_Or
    AFCT_And
    AFCT_Pet
    AFCT_Not

    -- ItemMall banners types
    BANNER_TYPE_ITEM
    BANNER_TYPE_CATEGORY
    BANNER_TYPE_STATUS

    ITEMMALL_ITEM_NOTITEMMALLABLE
    ITEMMALL_ITEM_ITEMMALLABLE
    ITEMMALL_ITEM_SELLABLE

    -- Альтернативная ItemMall-ная валюта
    ENUM_ItemMallAltCurrency_REFFERALS

    TTT_Talents
    TTT_Stats

    INTERACTION_BINDING_STONE
    INTERACTION_HERALD
    INTERACTION_GUILD_AUCTIONER
    INTERACTION_CLASS_RELATED

    -- MailBox template parameter type
    MAIL_TEMPLATE_PARAM_TYPE_TEXT
    MAIL_TEMPLATE_PARAM_TYPE_MONEY
    MAIL_TEMPLATE_PARAM_TYPE_GAME_ITEM

    -- Chargen
    CHARGEN_EQUIP_TYPE_NONE
    CHARGEN_EQUIP_TYPE_HIGH_LEVEL

    -- EVENT_AVATAR_ITEM_TAKEN source
    ITEM_TAKEN_TYPE_QUEST
    ITEM_TAKEN_TYPE_SPELL
    ITEM_TAKEN_TYPE_VENDOR
    ITEM_TAKEN_TYPE_СRAFT

    -- EVENT_QUEST_ACCEPT_ERROR
    ACCEPT_ERROR_SUCCESS
    ACCEPT_ERROR_FAIL_SYSTEM
    ACCEPT_ERROR_QUEST_IS_STARTED
    ACCEPT_ERROR_QUEST_IS_FINISHED
    ACCEPT_ERROR_QUEST_ON_COOLDOWN
    ACCEPT_ERROR_TOO_MANY_ACTIVE_QUESTS
    ACCEPT_ERROR_TO_MANY_QUESTS_ON_COOLDOWN
    ACCEPT_ERROR_LOW_AVATAR_LEVEL

    -- WIDGET_3D_BIND_POINT_...
    WIDGET_3D_BIND_POINT_LOW
    WIDGET_3D_BIND_POINT_CENTER
    WIDGET_3D_BIND_POINT_HIGH

    -- Hub types
    HT_NONE
    HT_UNKNOWN
    HT_OUR
    HT_ENEMYSHIP
    HT_PORTAL
    HT_ALLOD
    HT_ISLAND

    -- Show ites info reason
    ENUM_ShowItemsInfoReason_Unknown
    ENUM_ShowItemsInfoReason_XRayLootChest

    -- drag & drop
    DND_INVALID_ID

    -- ready check
    READY_CHECK_READY_STATE_UNKNOWN
    READY_CHECK_READY_STATE_READY
    READY_CHECK_READY_STATE_NOT_READY

    -- all items containers for items operation (rune/purify/disassembling etc.)
    ITEM_CONT_DEPOSITE
    ITEM_CONT_EQUIPMENT
    ITEM_CONT_EQUIPMENT_RITUAL
    ITEM_CONT_INVENTORY

    -- game event rule type
    RULE_TYPE_RECOMMENDED
    RULE_TYPE_DAILY
    RULE_TYPE_REPEATED
    RULE_TYPE_ACTION
    RULE_TYPE_HOLYDAY
    RULE_TYPE_SINGLE
    RULE_TYPE_GROUP
    RULE_TYPE_GUILD

    -- Alternative currency storage type
    ENUM_CURRENCY_STORAGE_AVATAR
    ENUM_CURRENCY_STORAGE_GUILD

    -- Alternative currency storage type
    ENUM_CURRENCY_STORAGE_AVATAR
    ENUM_CURRENCY_STORAGE_GUILD

    -- Login kind
    LOGIN_KIND_DEFAULT
    LOGIN_KIND_JAPAN
    LOGIN_KIND_KOREA
    LOGIN_KIND_SOUZ
    LOGIN_KIND_LAUNCHER

    //-- Guild tabards
    ENUM_TabardType_None
    ENUM_TabardType_Common
    ENUM_TabardType_Champion

    //-- Guild symbolics type
    GUILD_SIMBOLICS_TEXTURE_TYPE_EMBLEM1
    GUILD_SIMBOLICS_TEXTURE_TYPE_EMBLEM2
    GUILD_SIMBOLICS_TEXTURE_TYPE_EMBLEM3
    GUILD_SIMBOLICS_TEXTURE_TYPE_EMBLEM4
    GUILD_SIMBOLICS_TEXTURE_TYPE_PATTERN

    -- Text X align
    ENUM_AlignX_DEFAULT
    ENUM_AlignX_LEFT
    ENUM_AlignX_CENTER
    ENUM_AlignX_RIGHT
    ENUM_AlignX_JUSTIFY
    ENUM_AlignX_NONE

    -- Text Y align
    ENUM_AlignY_TOP
    ENUM_AlignY_MIDDLE
    ENUM_AlignY_BOTTOM
    ENUM_AlignY_DEBUG

    -- Color Type
    ENUM_ColorType_TEXT
    ENUM_ColorType_SHADOW
    ENUM_ColorType_OUTLINE

//-- TWar winner choice

ENUM_AttackersWinSelectionHandlerFinishType_Seize

ENUM_AttackersWinSelectionHandlerFinishType_Raid

ENUM_AttackersWinSelectionHandlerFinishType_Free

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

CategoryEnums
CodeLuaGlobalVars
EnumAccessionResult
EnumActionFailCause
EnumAlignX
EnumAlignY
EnumArmorCraftProp
EnumAttachedObjectPos
EnumAuctionBidResultMsgResult
EnumAuctionCreateResultMsg
EnumAuctionCreationTime
EnumAuctionDescriptorParticipationStatus
EnumAuctionDiscardResultMsgResult
EnumAuctionGetParamsResultMsgStatus
EnumAuctionGetResultMsgResult
EnumAuctionOrderField
EnumAuctionSearchResultMsgResult
EnumAvatarFriendIgnoreListsError
EnumAvatarKickCause
EnumAvatarOnlineStatus
EnumBalanceOperationType
EnumBattlegroundRecapturablePlayerSpawnPlaceState
EnumBeastType
EnumBlendEffect
EnumBoxOperationResult
EnumCategoryType
EnumChangeTarget
EnumChatFailedType
EnumChoiceGreedNeed
EnumColorType
EnumCreateMailResult
EnumCreatureRace
EnumCreatureStat
EnumCriticalMalfunctionType
EnumCurrencyStorage
EnumDayOfWeek
EnumDevelopmentSource
EnumDevelopmentTrack
EnumDiceCraftCmdType
EnumDisassemblingResult
EnumDressResult
EnumEnchantInsertionResult
EnumEnchantSlot
EnumExchangeResult
EnumGlobalScalerType
EnumGroupInviteFailed
EnumGroupKickFailed
EnumGroupMemberState
EnumGuildBankOperation
EnumGuildBGVeteranBGRole
EnumGuildMemberRight
EnumGuildResult
EnumGuildSymbolicsTextureType
EnumInvalidNameKind
EnumItemCont
EnumItemMallBuyCrystalsResultStatus
EnumItemMallBuyResultMsgStatus
EnumItemMallCheckItemsResultMsgStatus
EnumItemMallConvertResultMsgStatus
EnumItemMallCurrency
EnumItemMallGetAccountResultMsgStatus
EnumItemMallGetBannersResultMsgStatus
EnumItemMallGetCategoriesResultMsgStatus
EnumItemMallGetItemPriceResultMsgStatus
EnumItemMallGetItemsByCategoryResultMsgStatus
EnumItemMallGetItemsByItemIdResultMsgStatus
EnumItemMallGetItemsByResResultMsgStatus
EnumItemMallGetItemsByStatusResultMsgStatus
EnumItemMallGetItemsResultMsgStatus
EnumItemmallItem
EnumItemMallSellResultMsgStatus
EnumItemMallSpendAltAccountResultMsgStatus
EnumItemQuality
EnumItemSource
EnumKeyboardFlags
EnumLearnError
EnumLootSchemeType
EnumMailServiceReply
EnumMatchMakingMechanicsType
EnumMoneyChangeReason
EnumMonth
EnumMouseButton
EnumMsgGetBonusListResultResult
EnumMsgGuildAllodAuctionBidResultResult
EnumMsgRenameAvatarResultResult
EnumProgressiveDownloadActivity
EnumQuestFindNextQuestMode
EnumQuestType
EnumRaidFailed
EnumRaidMemberRight
EnumRaidMemberState
EnumReadyCheckReadyState
EnumReputationLevel
EnumRequestAddressByNameFailCause
EnumRequestAddressByNameType
EnumRuleNotificationType
EnumRuleType
EnumRuneOperationResult
EnumShipInfoMarker
EnumShipSide
EnumsInnateStats
EnumsResistances
EnumSubElement
EnumTabardType
EnumTakeItemActionType
EnumTakeItemsResult
EnumToolProperty
EnumTransferMoneyOperationDirection
EnumTurnReason
EnumUpgradeChanceBehavior
EnumUpgradeVector
EnumUsedev
EnumVendor
EnumZoneDanger
EnumZoneTierDifficulty

CategoryLuaApi CategoryEnums

На главную