1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 19:17:45 +00:00

better name

This commit is contained in:
collett 2020-05-22 14:01:26 +09:00
parent 965b88f37d
commit 6c0b2bfd64
5 changed files with 8 additions and 8 deletions

View file

@ -376,7 +376,7 @@ namespace Sapphire::Network::Packets
PerformNoteHandler = 0x029B, // updated 4.3
MapInteractionHandler = 0x0285, // updated 5.25
WorldInteractionHandler = 0x0285, // updated 5.25
ShopMessage = 0x00C1, // updated 5.25
LootMessage = 0x00B1, // updated 5.25
};

View file

@ -344,8 +344,8 @@ struct FFXIVIpcFreeCompanyUpdateShortMessageHandler :
uint16_t unknown2;
};
struct FFXIVIpcMapInteractionHandler :
FFXIVIpcBasePacket< MapInteractionHandler >
struct FFXIVIpcWorldInteractionHandler :
FFXIVIpcBasePacket< WorldInteractionHandler >
{
uint32_t action;
uint32_t unknown2;

View file

@ -130,7 +130,7 @@ Sapphire::Network::GameConnection::GameConnection( Sapphire::Network::HivePtr pH
setZoneHandler( ClientZoneIpcType::MarketBoardRequestItemListings, "MarketBoardRequestItemListings",
&GameConnection::marketBoardRequestItemListings );
setZoneHandler( ClientZoneIpcType::MapInteractionHandler, "MapInteractionHandler", &GameConnection::eventHandlerMapInteraction );
setZoneHandler( ClientZoneIpcType::WorldInteractionHandler, "WorldInteractionHandler", &GameConnection::eventHandlerWorldInteraction );
setChatHandler( ClientChatIpcType::TellReq, "TellReq", &GameConnection::tellHandler );

View file

@ -143,7 +143,7 @@ namespace Sapphire::Network
DECLARE_HANDLER( eventHandlerShop );
DECLARE_HANDLER( eventHandlerMapInteraction );
DECLARE_HANDLER( eventHandlerWorldInteraction );
DECLARE_HANDLER( eventHandlerLinkshell );

View file

@ -276,12 +276,12 @@ void Sapphire::Network::GameConnection::eventHandlerShop( const Packets::FFXIVAR
scriptMgr.onTalk( player, player.getId(), eventId );
}
void Sapphire::Network::GameConnection::eventHandlerMapInteraction( const Packets::FFXIVARR_PACKET_RAW& inPacket,
void Sapphire::Network::GameConnection::eventHandlerWorldInteraction( const Packets::FFXIVARR_PACKET_RAW& inPacket,
Entity::Player& player )
{
const auto packet = ZoneChannelPacket< Client::FFXIVIpcMapInteractionHandler >( inPacket );
const auto packet = ZoneChannelPacket< Client::FFXIVIpcWorldInteractionHandler >( inPacket );
auto action = packet.data().action;
player.sendDebug( "MapInteraction {}", action );
player.sendDebug( "WorldInteraction {}", action );
if( action == 0xD4 && player.getRace() == 3 ) // enter dwarf house lalafell only of course
{
// looks like shit but IT WORKS.