mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
Aetheryte -> GM command
This commit is contained in:
parent
280bd3081b
commit
bced310bbd
2 changed files with 23 additions and 7 deletions
|
@ -182,13 +182,6 @@ void Core::DebugCommandHandler::set( char * data, Core::Entity::PlayerPtr pPlaye
|
||||||
|
|
||||||
pPlayer->teleport( aetheryteId );
|
pPlayer->teleport( aetheryteId );
|
||||||
}
|
}
|
||||||
|
|
||||||
else if( ( subCommand == "unlockaetheryte" ) && ( params != "" ) )
|
|
||||||
{
|
|
||||||
for( uint8_t i = 0; i < 255; i++ )
|
|
||||||
pPlayer->registerAetheryte( i );
|
|
||||||
}
|
|
||||||
|
|
||||||
else if( ( subCommand == "discovery" ) && ( params != "" ) )
|
else if( ( subCommand == "discovery" ) && ( params != "" ) )
|
||||||
{
|
{
|
||||||
int32_t map_id;
|
int32_t map_id;
|
||||||
|
|
|
@ -84,6 +84,7 @@ enum GmCommand
|
||||||
QuestInspect = 0x0131,
|
QuestInspect = 0x0131,
|
||||||
GC = 0x0154,
|
GC = 0x0154,
|
||||||
GCRank = 0x0155,
|
GCRank = 0x0155,
|
||||||
|
Aetheryte = 0x015E,
|
||||||
Teri = 0x0258,
|
Teri = 0x0258,
|
||||||
TeriInfo = 0x025D,
|
TeriInfo = 0x025D,
|
||||||
Jump = 0x025E,
|
Jump = 0x025E,
|
||||||
|
@ -364,6 +365,28 @@ void Core::Network::GameConnection::gm1Handler( const Packets::GamePacket& inPac
|
||||||
" was switched." );
|
" was switched." );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GmCommand::Aetheryte:
|
||||||
|
{
|
||||||
|
if( param1 == 0 )
|
||||||
|
{
|
||||||
|
if( param2 == 0 )
|
||||||
|
{
|
||||||
|
for( uint8_t i = 0; i < 255; i++ )
|
||||||
|
targetActor->getAsPlayer()->registerAetheryte( i );
|
||||||
|
pPlayer->sendNotice( "All Aetherytes for " + targetPlayer->getName() +
|
||||||
|
" were turned on." );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
targetActor->getAsPlayer()->registerAetheryte( param2 );
|
||||||
|
pPlayer->sendNotice( "Aetheryte " + std::to_string( param2 ) + " for " + targetPlayer->getName() +
|
||||||
|
" was turned on." );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
pPlayer->sendUrgent( "GM1 Command not implemented: " + std::to_string( commandId ) );
|
pPlayer->sendUrgent( "GM1 Command not implemented: " + std::to_string( commandId ) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue