Commit Graph
10 Commits
Author SHA1 Message Date
David Cernat 1c3e9ac808 [General] Clean up logging by using easily adjustable log level values 2018-09-08 19:11:27 +03:00
David Cernat f562209544 [General] Add enumerations for inventory actions 2018-08-21 11:16:19 +03:00
David Cernat 426187a171 [General] Implement dynamic records, part 1
A new RecordStore class has been implemented, used for saving and loading spell, potion, enchantment, creature, NPC, armor, book, clothing, miscellaneous and weapon record data, as well as accompanying magical effects (for spells, potions and enchantments), inventory items (for creatures and NPCs) and body parts (for armor and clothing). RecordStore data is kept in the new data/recordstore folder.

The OnRecordDynamic event has been implemented in eventHandler, with records received from players first being saved to their associated RecordStores, then being forwarded to players with their new server-set ids, and finally having their associated items added to the players they were received from.

Utility methods for getting and loading RecordStores have been added to logicHandler.

The commands /storerecord and /createrecord have been implemented for on-the-fly record creation.

The help menu has been expanded with examples for creating records.

All records are currently "global", i.e. when players join the server, they receive all the records created on it. This is a temporary, flawed approach that will be replaced with the correct approach in part 2.
2018-07-31 17:46:29 +03:00
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
David Cernat 1de97b09db [Commands] Handle wandering in /setai 2018-07-10 07:17:52 +03:00
David Cernat 5f61ef7290 [General] Update usage of ActorAI packets 2018-07-10 07:08:28 +03:00
David Cernat 2c9d17b59d [Commands] Rework /setai command, part 1
Using CANCEL as an action now works and makes sense, though the other actions require additional parameters that will be added in part 2.
2018-07-10 05:09:41 +03:00
David Cernat 76d05bb1b0 [Cell] Update saving and resending of containers to use new approach 2018-06-05 14:21:00 +03:00
David Cernat 10efde497e [Commands] Add /setcollision command for quick collision overrides 2018-05-28 09:45:27 +03:00
David Cernat 1dbaa6978a [General] Rename actionTypes into enumerations 2018-05-26 00:04:16 +03:00