Files
ashlar/scripts/enumerations.lua
T
David Cernat 95b4849d95 [General] Save certain data to unloaded cells if its origin is valid
More specifically, Container, ObjectState and ObjectLock packets that were sent as a result of clientside dialogue or global scripts will be saved to serverside cell data.

With the new container sync that requires all items to be stored in the serverside cell data before they can be removed by clients, quests adding items to containers such as the Thieves Guild's "Loot the Mages Guild" were broken. This commit fixes them.
2018-07-23 06:57:58 +03:00

21 lines
1.2 KiB
Lua

-- This file is used to track and simplify dealing with all enumerations
-- currently implemented in packets
enumerations = {}
enumerations.ai = { CANCEL = 0, ACTIVATE = 1, COMBAT = 2, ESCORT = 3, FOLLOW = 4, TRAVEL = 5, WANDER = 6 }
enumerations.aiPrintableAction = { CANCEL = "cancelling current AI", ACTIVATE = "activating",
COMBAT = "initiating combat with", ESCORT = "escorting", FOLLOW = "following", TRAVEL = "travelling to",
WANDER = "wandering" }
enumerations.container = { SET = 0, ADD = 1, REMOVE = 2 }
enumerations.containerSub = { NONE = 0, DRAG = 1, DROP = 2, TAKE_ALL = 3, REPLY_TO_REQUEST = 4 }
enumerations.spellbook = { SET = 0, ADD = 1, REMOVE = 2 }
enumerations.faction = { RANK = 0, EXPULSION = 1, REPUTATION = 2 }
enumerations.journal = { ENTRY = 0, INDEX = 1 }
enumerations.miscellaneous = { MARK_LOCATION = 0, SELECTED_SPELL = 1 }
enumerations.objectCategories = { PLAYER = 0, ACTOR = 1, PLACED_OBJECT = 2 }
enumerations.packetOrigin = { CLIENT_GAMEPLAY = 0, CLIENT_CONSOLE = 1, CLIENT_DIALOGUE = 2,
CLIENT_SCRIPT_LOCAL = 3, CLIENT_SCRIPT_GLOBAL = 4, SERVER_SCRIPT = 5 }
enumerations.resurrect = { REGULAR = 0, IMPERIAL_SHRINE = 1, TRIBUNAL_TEMPLE = 2 }
return enumerations