h1z1-server 0.26.2-1 → 0.26.2-3

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.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/src/packets/ClientProtocol/ClientProtocol_1080/accessedCharacter.ts +98 -98
  3. package/src/packets/ClientProtocol/ClientProtocol_1080/base.ts +3463 -3463
  4. package/src/packets/ClientProtocol/ClientProtocol_1080/group.ts +417 -417
  5. package/src/packets/ClientProtocol/ClientProtocol_1080/h1emu.ts +32 -32
  6. package/src/packets/ClientProtocol/ClientProtocol_1080/h1z1packets.ts +140 -140
  7. package/src/packets/ClientProtocol/ClientProtocol_1080/replication.ts +89 -89
  8. package/src/packets/ClientProtocol/ClientProtocol_1080/shared.ts +2600 -2600
  9. package/src/packets/ClientProtocol/ClientProtocol_1080/ui.ts +83 -83
  10. package/src/packets/ClientProtocol/ClientProtocol_1080/weapon.ts +641 -641
  11. package/src/protocols/h1emuprotocol.ts +233 -233
  12. package/src/servers/H1emuServer/h1emuLoginServer.ts +58 -58
  13. package/src/servers/LoginServer/loginclient.ts +19 -19
  14. package/src/servers/LoginServer/loginserver.ts +1182 -1182
  15. package/src/servers/ZoneServer2016/classes/zoneclient.ts +156 -156
  16. package/src/servers/ZoneServer2016/commands/commandhandler.ts +149 -149
  17. package/src/servers/ZoneServer2016/commands/commands.ts +6 -0
  18. package/src/servers/ZoneServer2016/commands/dev.ts +784 -784
  19. package/src/servers/ZoneServer2016/commands/internalcommands.ts +162 -162
  20. package/src/servers/ZoneServer2016/commands/types.ts +29 -29
  21. package/src/servers/ZoneServer2016/data/lootspawns.ts +2703 -2703
  22. package/src/servers/ZoneServer2016/entities/baseentity.ts +112 -112
  23. package/src/servers/ZoneServer2016/entities/basefullcharacter.ts +1015 -1015
  24. package/src/servers/ZoneServer2016/entities/baselightweightcharacter.ts +112 -112
  25. package/src/servers/ZoneServer2016/entities/character.ts +9 -0
  26. package/src/servers/ZoneServer2016/entities/constructionparententity.ts +833 -833
  27. package/src/servers/ZoneServer2016/entities/crate.ts +153 -153
  28. package/src/servers/ZoneServer2016/entities/vehicle.ts +609 -609
  29. package/src/servers/ZoneServer2016/managers/chatmanager.ts +202 -202
  30. package/src/servers/ZoneServer2016/managers/groupmanager.ts +473 -473
  31. package/src/servers/ZoneServer2016/managers/worlddatamanager.ts +1269 -1269
  32. package/src/servers/ZoneServer2016/zonepackethandlers.ts +2643 -2643
  33. package/src/servers/ZoneServer2016/zoneserver.ts +40 -15
  34. package/src/utils/constants.ts +22 -22
  35. package/src/utils/enums.ts +57 -57
  36. package/src/utils/utils.ts +888 -888
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "h1z1-server",
3
- "version": "0.26.2-1",
3
+ "version": "0.26.2-3",
4
4
  "description": "Library for emulating h1z1 servers",
5
5
  "author": "Quentin Gruber <quentingruber@gmail.com> (http://github.com/quentingruber)",
6
6
  "license": "GPL-3.0-only",
@@ -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
+ ];