1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 14:07:46 +00:00

Merge pull request #4 from amibu01/master

GM Command opcodes, gitignore update for libraries, set expansion
This commit is contained in:
SapphireMordred 2017-08-08 19:51:21 +02:00 committed by GitHub
commit 5d40abc877
4 changed files with 11 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,4 +1,4 @@
bin
bin
.vs
*.dat
*.suo
@ -63,6 +63,7 @@ bin
/Debug
/bin/s
/bin/initui_1121.cpp
/src/libraries
/lib/xiv_dat_lib/.vs
/Server_Common/.vs
/Server_Common/.vs

View file

@ -255,8 +255,8 @@ namespace Packets {
DiscoveryHandler = 0x0109,// updated for sb
SkillHandler = 0x010B, // updated for sb
GMCommand1 = 0x010D,// updated for sb
GMCommand2 = 0x010E,// updated for sb
GMCommand1 = 0x010C,// updated for sb
GMCommand2 = 0x010D,// updated for sb
UpdatePositionHandler = 0x010F, // updated for sb
InventoryModifyHandler = 0x0116, // updated for sb

View file

@ -201,6 +201,12 @@ void Core::GameCommandHandler::set( char * data, Core::Entity::PlayerPtr pPlayer
pPlayer->teleport( aetheryteId );
}
else if( ( subCommand == "unlockaetheryte" ) && ( params != "" ) )
{
for( uint8_t i = 0; i < 255; i++ )
pPlayer->registerAetheryte( i );
}
else if( ( subCommand == "discovery" ) && ( params != "" ) )
{
int32_t map_id;

View file

@ -68,6 +68,7 @@ private:
memcpy( m_data.howto, player->getHowToArray(), sizeof( m_data.howto ) );
m_data.expansion = 2;
//memset( m_data.unlockBitmask, 0xFF, sizeof( m_data.unlockBitmask ) );
//memset( m_data.unknown_0344, 0xFF, sizeof( m_data.unknown_0344 ) );