1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 22:37:45 +00:00

create zone cmd

This commit is contained in:
Adam 2018-03-13 19:25:50 +11:00
parent 28ee0fd182
commit ddd52bcbab

View file

@ -709,6 +709,17 @@ void Core::DebugCommandHandler::instance( char* data, Entity::Player &player, bo
else
player.sendDebug( "Failed to create instance with id: " + std::to_string( instanceContentId ) );
}
if( subCommand == "createzone" || subCommand == "crz" )
{
uint32_t zoneId;
sscanf( params.c_str(), "%d", &zoneId );
auto instance = pTeriMgr->createTerritoryInstance( zoneId );
if( instance )
player.sendDebug( "Created instance with id: " + std::to_string( instance->getGuId() ) + " -> " + instance->getName() );
else
player.sendDebug( "Failed to create instance with id: " + std::to_string( zoneId ) );
}
else if( subCommand == "remove" || subCommand == "rm" )
{
uint32_t terriId;