2016-01-12 03:41:44 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 05.01.16.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef OPENMW_NETWORKMESSAGES_HPP
|
|
|
|
#define OPENMW_NETWORKMESSAGES_HPP
|
|
|
|
|
|
|
|
#include <MessageIdentifiers.h>
|
|
|
|
|
|
|
|
enum GameMessages
|
|
|
|
{
|
2017-01-10 10:33:02 +00:00
|
|
|
ID_MASTER_QUERY = ID_USER_PACKET_ENUM+1,
|
2017-02-05 07:01:33 +00:00
|
|
|
ID_PLAYER_BASEINFO,
|
|
|
|
ID_PLAYER_CHARGEN,
|
|
|
|
ID_PLAYER_POS,
|
2017-04-16 06:00:18 +00:00
|
|
|
ID_PLAYER_STATS_DYNAMIC,
|
2017-02-05 07:01:33 +00:00
|
|
|
ID_PLAYER_ATTACK,
|
2016-01-12 03:41:44 +00:00
|
|
|
ID_USER_MYID,
|
2017-02-05 07:01:33 +00:00
|
|
|
ID_PLAYER_EQUIPMENT,
|
2016-01-12 03:41:44 +00:00
|
|
|
ID_USER_DISCONNECTED,
|
2017-02-27 23:38:25 +00:00
|
|
|
ID_PLAYER_DEATH,
|
|
|
|
ID_PLAYER_RESURRECT,
|
2016-01-12 03:41:44 +00:00
|
|
|
ID_CHAT_MESSAGE,
|
2017-04-14 13:00:34 +00:00
|
|
|
ID_PLAYER_ANIM_FLAGS,
|
2016-01-12 03:41:44 +00:00
|
|
|
|
2017-02-04 12:25:43 +00:00
|
|
|
ID_PLAYER_ATTRIBUTE,
|
|
|
|
ID_PLAYER_SKILL,
|
2017-02-05 07:01:33 +00:00
|
|
|
ID_PLAYER_LEVEL,
|
|
|
|
ID_PLAYER_CHARCLASS,
|
2016-07-23 14:02:06 +00:00
|
|
|
ID_HANDSHAKE,
|
2016-09-18 03:50:01 +00:00
|
|
|
ID_LOADED,
|
2016-08-30 05:24:31 +00:00
|
|
|
ID_GUI_MESSAGEBOX,
|
Implement inventory functions
AddItem, RemoveItem, GetItemName, GetItemCount, GetItemHealth, GetInventorySize SendInventory
Example:
```lua
tes3mp.AddItem(pid, "glass dagger", 1, 50)
tes3mp.AddItem(pid, "glass dagger", 1, -1)
tes3mp.SendInventory(pid)
tes3mp.RemoveItem(pid, "glass dagger", 1)
tes3mp.SendInventory(pid)
local invSize = tes3mp.GetInventorySize(pid) - 1
for i = 0, invSize do
print(("%s %d %d"):format(tes3mp.GetItemName(pid, i), tes3mp.GetItemCount(pid, i), tes3mp.GetItemHealth(pid, i)))
end
```
2016-10-22 18:57:37 +00:00
|
|
|
ID_GAME_TIME,
|
2017-02-05 07:01:33 +00:00
|
|
|
ID_PLAYER_INVENTORY,
|
|
|
|
ID_PLAYER_SPELLBOOK,
|
|
|
|
ID_PLAYER_JOURNAL,
|
|
|
|
ID_PLAYER_ACTIVESKILLS,
|
2016-10-19 17:36:11 +00:00
|
|
|
|
2017-01-20 08:30:50 +00:00
|
|
|
ID_PLAYER_CELL_CHANGE,
|
2017-01-26 11:49:20 +00:00
|
|
|
ID_PLAYER_CELL_STATE,
|
2017-01-20 08:30:50 +00:00
|
|
|
|
2017-04-05 01:06:45 +00:00
|
|
|
ID_ACTOR_LIST,
|
|
|
|
ID_ACTOR_AUTHORITY,
|
2017-04-10 05:37:18 +00:00
|
|
|
ID_ACTOR_TEST,
|
2017-04-11 08:37:38 +00:00
|
|
|
ID_ACTOR_ANIM_PLAY,
|
|
|
|
ID_ACTOR_ATTACK,
|
|
|
|
ID_ACTOR_CELL_CHANGE,
|
2017-04-14 13:00:34 +00:00
|
|
|
ID_ACTOR_ANIM_FLAGS,
|
2017-04-16 06:00:18 +00:00
|
|
|
ID_ACTOR_STATS_DYNAMIC,
|
2017-04-11 08:37:38 +00:00
|
|
|
ID_ACTOR_POSITION,
|
|
|
|
ID_ACTOR_SPEECH,
|
2017-04-05 01:06:45 +00:00
|
|
|
|
2016-10-25 09:15:27 +00:00
|
|
|
ID_OBJECT_PLACE,
|
|
|
|
ID_OBJECT_DELETE,
|
2017-02-04 11:05:15 +00:00
|
|
|
ID_OBJECT_SCALE,
|
2016-10-25 09:15:27 +00:00
|
|
|
ID_OBJECT_LOCK,
|
|
|
|
ID_OBJECT_UNLOCK,
|
2016-10-25 09:53:18 +00:00
|
|
|
ID_OBJECT_MOVE,
|
2016-10-25 11:28:39 +00:00
|
|
|
ID_OBJECT_ROTATE,
|
2016-10-27 13:09:02 +00:00
|
|
|
ID_OBJECT_ANIM_PLAY,
|
2016-10-25 09:15:27 +00:00
|
|
|
|
2017-02-04 11:14:37 +00:00
|
|
|
ID_CONTAINER,
|
2017-02-01 09:54:40 +00:00
|
|
|
ID_DOOR_STATE,
|
2016-11-20 20:54:49 +00:00
|
|
|
ID_MUSIC_PLAY,
|
2016-10-26 09:25:50 +00:00
|
|
|
ID_VIDEO_PLAY,
|
|
|
|
|
|
|
|
ID_SCRIPT_LOCAL_SHORT,
|
|
|
|
ID_SCRIPT_LOCAL_FLOAT,
|
2016-10-26 21:41:14 +00:00
|
|
|
ID_SCRIPT_MEMBER_SHORT,
|
2016-11-03 18:59:39 +00:00
|
|
|
ID_SCRIPT_GLOBAL_SHORT,
|
|
|
|
|
2017-03-05 08:46:11 +00:00
|
|
|
ID_GAME_CONSOLE,
|
|
|
|
ID_GAME_PREINIT
|
2016-01-12 03:41:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //OPENMW_NETWORKMESSAGES_HPP
|