mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
add new packet
This commit is contained in:
parent
da199b7626
commit
cb2211a8f8
3 changed files with 15 additions and 0 deletions
|
@ -157,6 +157,7 @@ namespace Sapphire::Network::Packets
|
|||
ActorOwner = 0x0385, // updated 5.21
|
||||
PlayerStateFlags = 0x02E1, // updated 5.21
|
||||
PlayerClassInfo = 0x016B, // updated 5.21
|
||||
CharaVisualEffect = 0x00AB, // updated 5.21
|
||||
|
||||
ModelEquip = 0x0292, // updated 5.21
|
||||
Examine = 0x0210, // updated 5.21
|
||||
|
|
|
@ -1991,6 +1991,12 @@ namespace Sapphire::Network::Packets::Server
|
|||
char otherName[32];
|
||||
};
|
||||
|
||||
struct FFXIVIpcCharaVisualEffect : FFXIVIpcBasePacket< CharaVisualEffect >
|
||||
{
|
||||
uint32_t id;
|
||||
uint32_t padding;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /*_CORE_NETWORK_PACKETS_SERVER_IPC_H*/
|
||||
|
|
|
@ -361,6 +361,14 @@ void Sapphire::World::Manager::DebugCommandMgr::set( char* data, Entity::Player&
|
|||
}
|
||||
}
|
||||
}
|
||||
else if( subCommand == "visual" )
|
||||
{
|
||||
int32_t id;
|
||||
sscanf( params.c_str(), "%d", &id );
|
||||
auto pPacket = makeZonePacket< FFXIVIpcCharaVisualEffect >( player.getId() );
|
||||
pPacket->data().id = id;
|
||||
player.queuePacket( pPacket );
|
||||
}
|
||||
else
|
||||
{
|
||||
player.sendUrgent( "{0} is not a valid SET command.", subCommand );
|
||||
|
|
Loading…
Add table
Reference in a new issue