mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
create zone cmd
This commit is contained in:
parent
28ee0fd182
commit
ddd52bcbab
1 changed files with 11 additions and 0 deletions
|
@ -709,6 +709,17 @@ void Core::DebugCommandHandler::instance( char* data, Entity::Player &player, bo
|
||||||
else
|
else
|
||||||
player.sendDebug( "Failed to create instance with id: " + std::to_string( instanceContentId ) );
|
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" )
|
else if( subCommand == "remove" || subCommand == "rm" )
|
||||||
{
|
{
|
||||||
uint32_t terriId;
|
uint32_t terriId;
|
||||||
|
|
Loading…
Add table
Reference in a new issue