h1z1-server 0.26.2-3 → 0.26.2-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/2016/encryptedData/fairPlayData.json +74 -78
- package/package.json +1 -1
- package/src/packets/ClientProtocol/ClientProtocol_1080/accessedCharacter.ts +98 -98
- package/src/packets/ClientProtocol/ClientProtocol_1080/base.ts +3463 -3463
- package/src/packets/ClientProtocol/ClientProtocol_1080/group.ts +417 -417
- package/src/packets/ClientProtocol/ClientProtocol_1080/h1emu.ts +32 -32
- package/src/packets/ClientProtocol/ClientProtocol_1080/h1z1packets.ts +140 -140
- package/src/packets/ClientProtocol/ClientProtocol_1080/replication.ts +89 -89
- package/src/packets/ClientProtocol/ClientProtocol_1080/ui.ts +83 -83
- package/src/packets/ClientProtocol/ClientProtocol_1080/weapon.ts +641 -641
- package/src/protocols/h1emuprotocol.ts +233 -233
- package/src/servers/H1emuServer/h1emuLoginServer.ts +58 -58
- package/src/servers/LoginServer/loginclient.ts +19 -19
- package/src/servers/LoginServer/loginserver.ts +1182 -1182
- package/src/servers/ZoneServer2016/classes/zoneclient.ts +156 -156
- package/src/servers/ZoneServer2016/commands/commandhandler.ts +149 -149
- package/src/servers/ZoneServer2016/commands/dev.ts +784 -784
- package/src/servers/ZoneServer2016/commands/internalcommands.ts +162 -162
- package/src/servers/ZoneServer2016/commands/types.ts +29 -29
- package/src/servers/ZoneServer2016/data/lootspawns.ts +2703 -2703
- package/src/servers/ZoneServer2016/entities/baseentity.ts +112 -112
- package/src/servers/ZoneServer2016/entities/basefullcharacter.ts +1015 -1015
- package/src/servers/ZoneServer2016/entities/baselightweightcharacter.ts +112 -112
- package/src/servers/ZoneServer2016/entities/constructionparententity.ts +833 -833
- package/src/servers/ZoneServer2016/entities/crate.ts +153 -153
- package/src/servers/ZoneServer2016/entities/vehicle.ts +609 -609
- package/src/servers/ZoneServer2016/managers/chatmanager.ts +202 -202
- package/src/servers/ZoneServer2016/managers/groupmanager.ts +473 -473
- package/src/servers/ZoneServer2016/managers/worlddatamanager.ts +1269 -1269
- package/src/servers/ZoneServer2016/zonepackethandlers.ts +2635 -2643
- package/src/servers/ZoneServer2016/zoneserver.ts +18 -10
- package/src/types/zoneserver.ts +1 -2
- package/src/utils/constants.ts +22 -22
- package/src/utils/enums.ts +57 -57
- package/src/utils/utils.ts +888 -888
|
@@ -1,154 +1,150 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"iv": "
|
|
4
|
-
"encryptedData": "
|
|
3
|
+
"iv": "e0fe0e47033d0f8c2fca6bf846d7dc1a",
|
|
4
|
+
"encryptedData": "58a8b380f68903535d65b674449dd901"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
|
-
"iv": "
|
|
8
|
-
"encryptedData": "
|
|
7
|
+
"iv": "8c50c8bb16e80e3638434ad371f9f309",
|
|
8
|
+
"encryptedData": "d6215f0b98cf2de174842ffc79ef15b2"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"iv": "
|
|
12
|
-
"encryptedData": "
|
|
11
|
+
"iv": "53e59dcda00ddea7b88370711836e0c1",
|
|
12
|
+
"encryptedData": "6c5017f063426439dae1fd7171a50a45"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"iv": "
|
|
16
|
-
"encryptedData": "
|
|
15
|
+
"iv": "db45e578994c27429c1f20ae4583a3f3",
|
|
16
|
+
"encryptedData": "29ddeb6e00b3e4fd3ed822c1117b40bb"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"iv": "
|
|
20
|
-
"encryptedData": "
|
|
19
|
+
"iv": "9e23aa63b86189326debda171c1e0b13",
|
|
20
|
+
"encryptedData": "53710591b7da06a59688fb0525abbdff"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
"iv": "
|
|
24
|
-
"encryptedData": "
|
|
23
|
+
"iv": "c9383dfc1b47bf53979858b359e44eaf",
|
|
24
|
+
"encryptedData": "db84dd23dfed836831f16a7ae73ebead"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"iv": "
|
|
28
|
-
"encryptedData": "
|
|
27
|
+
"iv": "33ebc86b94384da80399636365dd6035",
|
|
28
|
+
"encryptedData": "4aba129735332ce203a9744f65278b41"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
"iv": "
|
|
32
|
-
"encryptedData": "
|
|
31
|
+
"iv": "51bdc2d0660f9d3db72b557d5371f027",
|
|
32
|
+
"encryptedData": "19d673db762f9cfb07cca1a29faf2e5a"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"iv": "
|
|
36
|
-
"encryptedData": "
|
|
35
|
+
"iv": "e5b08692837fc0a70c1d870624a340cd",
|
|
36
|
+
"encryptedData": "5b62fdf899647b44009c1dbabef5cc22"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
"iv": "
|
|
40
|
-
"encryptedData": "
|
|
39
|
+
"iv": "14aca2dcf721a09fa8a8d342644956b4",
|
|
40
|
+
"encryptedData": "ba1d65b7e0e8fd67907e53e042536739"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
"iv": "
|
|
44
|
-
"encryptedData": "
|
|
43
|
+
"iv": "f45e0f19a607ef275a99668a07f5e474",
|
|
44
|
+
"encryptedData": "b584d48fb9979ee89e7887273a97be96"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"iv": "
|
|
48
|
-
"encryptedData": "
|
|
47
|
+
"iv": "17bfaa5e894e563e764cb6f04b0f121f",
|
|
48
|
+
"encryptedData": "7d3257bde4d5eef432fc5490341f8354"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
"iv": "
|
|
52
|
-
"encryptedData": "
|
|
51
|
+
"iv": "791b235a34ce66b0c0e57a216648ba6a",
|
|
52
|
+
"encryptedData": "bca0bc4d176fe846a70d3f5368ac1436"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"iv": "
|
|
56
|
-
"encryptedData": "
|
|
55
|
+
"iv": "75100f4b36c8ed8c163ee971fe448709",
|
|
56
|
+
"encryptedData": "7d3c1677c35d83838d8b7e826124c476"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
"iv": "
|
|
60
|
-
"encryptedData": "
|
|
59
|
+
"iv": "b832b969c4a96e094fa2885dce73776a",
|
|
60
|
+
"encryptedData": "a3293953c93fe01eebede8e697a24952"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
"iv": "
|
|
64
|
-
"encryptedData": "
|
|
63
|
+
"iv": "78b7eece2ae26c820325426caebd1a0d",
|
|
64
|
+
"encryptedData": "88f81ddb3e645f55475c5a1c923affa2"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
"iv": "
|
|
68
|
-
"encryptedData": "
|
|
67
|
+
"iv": "d8771bf5d3e41dd73f8eeab5ffbfa648",
|
|
68
|
+
"encryptedData": "b2638f702907c43ce55a603039048ac5"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
"iv": "
|
|
72
|
-
"encryptedData": "
|
|
71
|
+
"iv": "d6ef66193ec1f92e54789910dfc30158",
|
|
72
|
+
"encryptedData": "afb81658eea88b7468717c2205367d86"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
"iv": "
|
|
76
|
-
"encryptedData": "
|
|
75
|
+
"iv": "6fa926a07952c699e1434c9e25985122",
|
|
76
|
+
"encryptedData": "8306de02ed5776be913ce15c1c3c4fc0"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
"iv": "
|
|
80
|
-
"encryptedData": "
|
|
79
|
+
"iv": "1a32d071f7885c296f38862894eb29ff",
|
|
80
|
+
"encryptedData": "902e140269648bdd5b02f0c1e738e164"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
"iv": "
|
|
84
|
-
"encryptedData": "
|
|
83
|
+
"iv": "c6ee5c910d42e8d379d1273e9791db85",
|
|
84
|
+
"encryptedData": "399884d1660b7872081e459dfc2fff49"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
"iv": "
|
|
88
|
-
"encryptedData": "
|
|
87
|
+
"iv": "671890e42b97e4b0d4b48b2221bcee18",
|
|
88
|
+
"encryptedData": "6f0d3c37df1effdc369e8aa4b968b574"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"iv": "
|
|
92
|
-
"encryptedData": "
|
|
91
|
+
"iv": "12b701e205ac477717df90dd73fef9fa",
|
|
92
|
+
"encryptedData": "278a9afb3d7161aadfe0ed263b8749db"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
"iv": "
|
|
96
|
-
"encryptedData": "
|
|
95
|
+
"iv": "959fa3a154cfe53ed68ef9155978dd97",
|
|
96
|
+
"encryptedData": "4444bf29d96368dac5eb7d79675d22f5"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
"iv": "
|
|
100
|
-
"encryptedData": "
|
|
99
|
+
"iv": "264a393821cf736c6931c4765bd6640d",
|
|
100
|
+
"encryptedData": "c620201dc93759684ecd0ab867842118"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
"iv": "
|
|
104
|
-
"encryptedData": "
|
|
103
|
+
"iv": "6703a38716381e5eef74d69515239198",
|
|
104
|
+
"encryptedData": "012ede445f6fa2b00bd1696625fa4e38"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
|
-
"iv": "
|
|
108
|
-
"encryptedData": "
|
|
107
|
+
"iv": "1a9d1e6918b0787a22c9e4d737a37539",
|
|
108
|
+
"encryptedData": "80f953f06b929ac08068b5310bb7eaa9"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
"iv": "
|
|
112
|
-
"encryptedData": "
|
|
111
|
+
"iv": "79a2643e0c305b4cc7b1be0c888916bf",
|
|
112
|
+
"encryptedData": "9b2d9c3eaee916dddc8aa5d7abc54368"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
"iv": "
|
|
116
|
-
"encryptedData": "
|
|
115
|
+
"iv": "d8293769a689387c15d68515111c8b35",
|
|
116
|
+
"encryptedData": "c5c2af155d190e85d9278ab567031bf6"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
"iv": "
|
|
120
|
-
"encryptedData": "
|
|
119
|
+
"iv": "acc743e3a8742baed4156fdf49ae6741",
|
|
120
|
+
"encryptedData": "decd3701f4c0da44e3feadadd94e131d"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
|
-
"iv": "
|
|
124
|
-
"encryptedData": "
|
|
123
|
+
"iv": "779e4c1e862cdc3c1f926a628bef8b3d",
|
|
124
|
+
"encryptedData": "22c54bff6b00fd0a47c609f1f45656daae25701da116587bfba74cd302476563"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
"iv": "
|
|
128
|
-
"encryptedData": "
|
|
127
|
+
"iv": "870c9a494863e6a739970a0c5c0c7901",
|
|
128
|
+
"encryptedData": "a05df57c97bc7f518d63d0844c0769333eb1825375e5cb3b68fa3d9e45695c66"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
|
-
"iv": "
|
|
132
|
-
"encryptedData": "
|
|
131
|
+
"iv": "c100cc89c9d918f7e39d968cf142d90a",
|
|
132
|
+
"encryptedData": "bec60c1400803c3919d44d26a76c3322"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
"iv": "
|
|
136
|
-
"encryptedData": "
|
|
135
|
+
"iv": "6f5a3c8f7277d3226c585906e4d2ee64",
|
|
136
|
+
"encryptedData": "567c6b6e87b1807954977219fe85d709"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
|
-
"iv": "
|
|
140
|
-
"encryptedData": "
|
|
139
|
+
"iv": "5f49b9a9c138e434e39dd1ea5be070b0",
|
|
140
|
+
"encryptedData": "90191e751a0dd536834e529c6ac899ce"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
|
-
"iv": "
|
|
144
|
-
"encryptedData": "
|
|
143
|
+
"iv": "1d6540a79cdec002b8d8f35493c8e6e3",
|
|
144
|
+
"encryptedData": "7f2b485187b3fb2cc554daf027d6916f"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
"iv": "
|
|
148
|
-
"encryptedData": "
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"iv": "2008bc98968e48590db853c977453843",
|
|
152
|
-
"encryptedData": "cf7d7711092e961e6df7f2c175c309b1"
|
|
147
|
+
"iv": "ce7bae7f86e7dffcf901773beca812c3",
|
|
148
|
+
"encryptedData": "4f5a5e8e47394f340cd1e151f99fb392"
|
|
153
149
|
}
|
|
154
150
|
]
|
package/package.json
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
// ======================================================================
|
|
2
|
-
//
|
|
3
|
-
// GNU GENERAL PUBLIC LICENSE
|
|
4
|
-
// Version 3, 29 June 2007
|
|
5
|
-
// copyright (C) 2020 - 2021 Quentin Gruber
|
|
6
|
-
// copyright (C) 2021 - 2023 H1emu community
|
|
7
|
-
//
|
|
8
|
-
// https://github.com/QuentinGruber/h1z1-server
|
|
9
|
-
// https://www.npmjs.com/package/h1z1-server
|
|
10
|
-
//
|
|
11
|
-
// Based on https://github.com/psemu/soe-network
|
|
12
|
-
// ======================================================================
|
|
13
|
-
|
|
14
|
-
import { itemSchema } from "./shared";
|
|
15
|
-
|
|
16
|
-
export const accessedCharacterPackets: any = [
|
|
17
|
-
[
|
|
18
|
-
"AccessedCharacter.BeginCharacterAccess",
|
|
19
|
-
0xf10100,
|
|
20
|
-
{
|
|
21
|
-
fields: [
|
|
22
|
-
{ name: "objectCharacterId", type: "uint64string", defaultValue: "0" },
|
|
23
|
-
{ name: "containerGuid", type: "uint64string", defaultValue: "0" },
|
|
24
|
-
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
25
|
-
{
|
|
26
|
-
name: "itemsData",
|
|
27
|
-
type: "byteswithlength",
|
|
28
|
-
defaultValue: null,
|
|
29
|
-
fields: [
|
|
30
|
-
{
|
|
31
|
-
name: "items",
|
|
32
|
-
type: "array",
|
|
33
|
-
defaultValue: [],
|
|
34
|
-
fields: [
|
|
35
|
-
{
|
|
36
|
-
name: "item",
|
|
37
|
-
type: "schema",
|
|
38
|
-
defaultValue: {},
|
|
39
|
-
fields: itemSchema,
|
|
40
|
-
},
|
|
41
|
-
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{ name: "unknownDword1", type: "uint32", defaultValue: 0 },
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
[
|
|
51
|
-
"AccessedCharacter.EndCharacterAccess",
|
|
52
|
-
0xf10200,
|
|
53
|
-
{
|
|
54
|
-
fields: [],
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
[
|
|
58
|
-
"AccessedCharacter.Unknown1",
|
|
59
|
-
0xf10400,
|
|
60
|
-
{
|
|
61
|
-
fields: [
|
|
62
|
-
{ name: "characterId", type: "uint64string", defaultValue: "0" },
|
|
63
|
-
{ name: "containerGuid", type: "uint64string", defaultValue: "0" },
|
|
64
|
-
],
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
[
|
|
68
|
-
"AccessedCharacter.Unknown2",
|
|
69
|
-
0xf10600,
|
|
70
|
-
{
|
|
71
|
-
fields: [
|
|
72
|
-
{ name: "characterId", type: "uint64string", defaultValue: "0" },
|
|
73
|
-
{
|
|
74
|
-
name: "itemsData",
|
|
75
|
-
type: "byteswithlength",
|
|
76
|
-
defaultValue: null,
|
|
77
|
-
fields: [
|
|
78
|
-
{
|
|
79
|
-
name: "items",
|
|
80
|
-
type: "array",
|
|
81
|
-
defaultValue: [],
|
|
82
|
-
fields: [
|
|
83
|
-
{
|
|
84
|
-
name: "item",
|
|
85
|
-
type: "schema",
|
|
86
|
-
defaultValue: {},
|
|
87
|
-
fields: itemSchema,
|
|
88
|
-
},
|
|
89
|
-
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
{ name: "unknownDword1", type: "uint32", defaultValue: 0 },
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
];
|
|
1
|
+
// ======================================================================
|
|
2
|
+
//
|
|
3
|
+
// GNU GENERAL PUBLIC LICENSE
|
|
4
|
+
// Version 3, 29 June 2007
|
|
5
|
+
// copyright (C) 2020 - 2021 Quentin Gruber
|
|
6
|
+
// copyright (C) 2021 - 2023 H1emu community
|
|
7
|
+
//
|
|
8
|
+
// https://github.com/QuentinGruber/h1z1-server
|
|
9
|
+
// https://www.npmjs.com/package/h1z1-server
|
|
10
|
+
//
|
|
11
|
+
// Based on https://github.com/psemu/soe-network
|
|
12
|
+
// ======================================================================
|
|
13
|
+
|
|
14
|
+
import { itemSchema } from "./shared";
|
|
15
|
+
|
|
16
|
+
export const accessedCharacterPackets: any = [
|
|
17
|
+
[
|
|
18
|
+
"AccessedCharacter.BeginCharacterAccess",
|
|
19
|
+
0xf10100,
|
|
20
|
+
{
|
|
21
|
+
fields: [
|
|
22
|
+
{ name: "objectCharacterId", type: "uint64string", defaultValue: "0" },
|
|
23
|
+
{ name: "containerGuid", type: "uint64string", defaultValue: "0" },
|
|
24
|
+
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
25
|
+
{
|
|
26
|
+
name: "itemsData",
|
|
27
|
+
type: "byteswithlength",
|
|
28
|
+
defaultValue: null,
|
|
29
|
+
fields: [
|
|
30
|
+
{
|
|
31
|
+
name: "items",
|
|
32
|
+
type: "array",
|
|
33
|
+
defaultValue: [],
|
|
34
|
+
fields: [
|
|
35
|
+
{
|
|
36
|
+
name: "item",
|
|
37
|
+
type: "schema",
|
|
38
|
+
defaultValue: {},
|
|
39
|
+
fields: itemSchema,
|
|
40
|
+
},
|
|
41
|
+
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{ name: "unknownDword1", type: "uint32", defaultValue: 0 },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"AccessedCharacter.EndCharacterAccess",
|
|
52
|
+
0xf10200,
|
|
53
|
+
{
|
|
54
|
+
fields: [],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
"AccessedCharacter.Unknown1",
|
|
59
|
+
0xf10400,
|
|
60
|
+
{
|
|
61
|
+
fields: [
|
|
62
|
+
{ name: "characterId", type: "uint64string", defaultValue: "0" },
|
|
63
|
+
{ name: "containerGuid", type: "uint64string", defaultValue: "0" },
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
[
|
|
68
|
+
"AccessedCharacter.Unknown2",
|
|
69
|
+
0xf10600,
|
|
70
|
+
{
|
|
71
|
+
fields: [
|
|
72
|
+
{ name: "characterId", type: "uint64string", defaultValue: "0" },
|
|
73
|
+
{
|
|
74
|
+
name: "itemsData",
|
|
75
|
+
type: "byteswithlength",
|
|
76
|
+
defaultValue: null,
|
|
77
|
+
fields: [
|
|
78
|
+
{
|
|
79
|
+
name: "items",
|
|
80
|
+
type: "array",
|
|
81
|
+
defaultValue: [],
|
|
82
|
+
fields: [
|
|
83
|
+
{
|
|
84
|
+
name: "item",
|
|
85
|
+
type: "schema",
|
|
86
|
+
defaultValue: {},
|
|
87
|
+
fields: itemSchema,
|
|
88
|
+
},
|
|
89
|
+
{ name: "unknownBool1", type: "boolean", defaultValue: false },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{ name: "unknownDword1", type: "uint32", defaultValue: 0 },
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
];
|