cAllTerritories::getInstance()->check( pChar );
void commandGo( cUOSocket *socket, const QString &command, QStringList &args ){	P_CHAR pChar = socket->player();	if( !pChar )		return;	if( args.isEmpty() )	{		socket->sysMessage( "Bringin up travel gump" );		return;	}	else	{		Coord_cl newPos = pChar->pos;		for( QStringList::const_iterator i = args.begin(); i != args.end(); ++i )			if( parseCoordinates( (*i), newPos ) )			{				// This is a bandwith saving method				// Before we're moving the character anywhere we remove it				// only from the sockets in range and then resend it to only the new sockets in range				pChar->removeFromView( false );				pChar->moveTo( newPos );				pChar->resend( false );				socket->resendPlayer();				socket->resendWorld();				return;			}		// When we reached this point it's clear that we didn't find any valid coordinates in our arguments		QString location = args.join( " " );		QDomElement *node = DefManager->getSection( WPDT_LOCATION, location );		if( !node->isNull() && parseCoordinates( node->text(), newPos ) )		{			pChar->removeFromView( false );			pChar->moveTo( newPos );			pChar->resend( false );			socket->resendPlayer();			socket->resendWorld();			return;		}				}	// If we reached this end it's definetly an invalid command	socket->sysMessage( tr( "Usage: go [location|x,y,z,[map]]" ) );}