mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 05:57:45 +00:00
Removed @set quest command
This commit is contained in:
parent
476707b6c4
commit
ef7d941921
2 changed files with 0 additions and 45 deletions
|
@ -190,8 +190,6 @@ void Core::GameCommandHandler::set( char * data, Core::Entity::PlayerPtr pPlayer
|
||||||
pPlayer->sendToInRangeSet( control, true );
|
pPlayer->sendToInRangeSet( control, true );
|
||||||
|
|
||||||
}
|
}
|
||||||
else if( ( subCommand == "quest" ) && ( params != "" ) )
|
|
||||||
setQuestHandler( const_cast< char* >( params.c_str() ), pPlayer, command );
|
|
||||||
|
|
||||||
else if( ( subCommand == "tele" ) && ( params != "" ) )
|
else if( ( subCommand == "tele" ) && ( params != "" ) )
|
||||||
{
|
{
|
||||||
|
@ -281,47 +279,6 @@ void Core::GameCommandHandler::set( char * data, Core::Entity::PlayerPtr pPlayer
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Core::GameCommandHandler::setQuestHandler( char * data, Core::Entity::PlayerPtr pPlayer, boost::shared_ptr<Core::GameCommand> command )
|
|
||||||
{
|
|
||||||
std::string tmpCommand( data );
|
|
||||||
std::string subCommand;
|
|
||||||
|
|
||||||
std::size_t pos = tmpCommand.find_first_of( " " );
|
|
||||||
|
|
||||||
if( pos != std::string::npos )
|
|
||||||
// command has parameters, grab the first part
|
|
||||||
subCommand = tmpCommand.substr( 0, pos );
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// no subcommand given
|
|
||||||
subCommand = tmpCommand;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string params( data + pos );
|
|
||||||
|
|
||||||
if( subCommand == "seq" )
|
|
||||||
{
|
|
||||||
int32_t questId;
|
|
||||||
int32_t sequence;
|
|
||||||
sscanf( params.c_str(), "%i %i", &questId, &sequence );
|
|
||||||
|
|
||||||
if( sequence == -1 )
|
|
||||||
pPlayer->removeQuest( questId );
|
|
||||||
else
|
|
||||||
pPlayer->updateQuest( questId, sequence );
|
|
||||||
}
|
|
||||||
else if( subCommand == "var" )
|
|
||||||
{
|
|
||||||
int32_t questId;
|
|
||||||
int32_t varIdx;
|
|
||||||
int32_t varVal;
|
|
||||||
sscanf( params.c_str(), "%i %i %i", &questId, &varIdx, &varVal );
|
|
||||||
|
|
||||||
//pPlayer->updateQuestVar( questId, varIdx, varVal );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Core::GameCommandHandler::add( char * data, Core::Entity::PlayerPtr pPlayer, boost::shared_ptr<Core::GameCommand> command )
|
void Core::GameCommandHandler::add( char * data, Core::Entity::PlayerPtr pPlayer, boost::shared_ptr<Core::GameCommand> command )
|
||||||
{
|
{
|
||||||
std::string subCommand;
|
std::string subCommand;
|
||||||
|
|
|
@ -34,8 +34,6 @@ public:
|
||||||
//void debug( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
//void debug( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
||||||
void scriptReload( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
void scriptReload( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
||||||
|
|
||||||
void setQuestHandler( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
|
||||||
|
|
||||||
void injectPacket( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
void injectPacket( char * data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
||||||
void nudge( char* data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
void nudge( char* data, Entity::PlayerPtr pPlayer, boost::shared_ptr<GameCommand> command );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue