mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 03:06:38 +00:00
[Dynamic Zones] Implement dz switch id (#2343)
This adds the `dz_switch_id` field to doors and dynamic_zones. It will allow for compasses to be automatically added to dz entrances and will support moving clients to the dz on use without needing to script it. These can be imported for switches/doors from live packet dumps. Also removes compass packet encoders (same struct in all clients)
This commit is contained in:
@@ -169,6 +169,8 @@
|
||||
#define ServerOP_DzExpireWarning 0x045b
|
||||
#define ServerOP_DzCreated 0x045c
|
||||
#define ServerOP_DzDeleted 0x045d
|
||||
#define ServerOP_DzSetSwitchID 0x045e
|
||||
#define ServerOP_DzMovePC 0x045f
|
||||
|
||||
#define ServerOP_LSInfo 0x1000
|
||||
#define ServerOP_LSStatus 0x1001
|
||||
@@ -1671,6 +1673,13 @@ struct ServerDzMemberStatuses_Struct {
|
||||
ServerDzMemberStatusEntry_Struct entries[0];
|
||||
};
|
||||
|
||||
struct ServerDzMovePC_Struct {
|
||||
uint32 dz_id;
|
||||
uint16 sender_zone_id;
|
||||
uint16 sender_instance_id;
|
||||
uint32 character_id;
|
||||
};
|
||||
|
||||
struct ServerExpeditionLockout_Struct {
|
||||
uint32 expedition_id;
|
||||
uint64 expire_time;
|
||||
@@ -1752,6 +1761,11 @@ struct ServerDzLocation_Struct {
|
||||
float heading;
|
||||
};
|
||||
|
||||
struct ServerDzSwitchID_Struct {
|
||||
uint32 dz_id;
|
||||
int dz_switch_id;
|
||||
};
|
||||
|
||||
struct ServerDzMember_Struct {
|
||||
uint32 dz_id;
|
||||
uint16 dz_zone_id;
|
||||
|
||||
Reference in New Issue
Block a user