mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 23:57:46 +00:00
Added GM Teri Command
Added The //gm teri <ZoneID> Command (The Internal name can also be used)
This commit is contained in:
parent
7604264394
commit
4e928c3c18
1 changed files with 13 additions and 0 deletions
|
@ -84,6 +84,7 @@ enum GmCommand
|
|||
GC = 0x0154,
|
||||
GCRank = 0x0155,
|
||||
TeriInfo = 0x025D,
|
||||
Teri = 0x0258,
|
||||
Jump = 0x025E,
|
||||
JumpNpc = 0x025F,
|
||||
};
|
||||
|
@ -269,6 +270,18 @@ void Core::Network::GameConnection::gm1Handler( const Packets::GamePacket& inPac
|
|||
"\nNextWeather:" + std::to_string( pPlayer->getCurrentZone()->getNextWeather() ) );
|
||||
break;
|
||||
}
|
||||
case GmCommand::Teri:
|
||||
{
|
||||
if( param1 < 128 )
|
||||
pPlayer->sendUrgent( "Zone ID out of range." );
|
||||
else
|
||||
{
|
||||
targetPlayer->setPosition( targetPlayer->getPos() );
|
||||
targetPlayer->performZoning( param1, targetPlayer->getPos(), 0 );
|
||||
pPlayer->sendNotice( targetPlayer->getName() + " was warped to Zone " + std::to_string(param1) );
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GmCommand::Jump:
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue