mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-07-10 14:27:45 +00:00
debug command for setting quest var
This commit is contained in:
parent
451fdb694a
commit
2ac74f7313
1 changed files with 70 additions and 0 deletions
|
@ -301,6 +301,76 @@ void Sapphire::World::Manager::DebugCommandMgr::set( char* data, Entity::Player&
|
||||||
{
|
{
|
||||||
terriMgr.disableCurrentFestival();
|
terriMgr.disableCurrentFestival();
|
||||||
}
|
}
|
||||||
|
else if( subCommand == "QuestVar" )
|
||||||
|
{
|
||||||
|
uint16_t questId;
|
||||||
|
uint8_t index;
|
||||||
|
uint8_t value;
|
||||||
|
sscanf( params.c_str(), "%hu %hhu %hhu", &questId, &index, &value );
|
||||||
|
switch( index )
|
||||||
|
{
|
||||||
|
case 1:
|
||||||
|
{
|
||||||
|
player.setQuestUI8AH( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 2:
|
||||||
|
{
|
||||||
|
player.setQuestUI8AL( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 3:
|
||||||
|
{
|
||||||
|
player.setQuestUI8BH( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 4:
|
||||||
|
{
|
||||||
|
player.setQuestUI8BL( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 5:
|
||||||
|
{
|
||||||
|
player.setQuestUI8CH( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 6:
|
||||||
|
{
|
||||||
|
player.setQuestUI8CL( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 7:
|
||||||
|
{
|
||||||
|
player.setQuestUI8DH( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 8:
|
||||||
|
{
|
||||||
|
player.setQuestUI8DL( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 9:
|
||||||
|
{
|
||||||
|
player.setQuestUI8EH( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 10:
|
||||||
|
{
|
||||||
|
player.setQuestUI8EL( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 11:
|
||||||
|
{
|
||||||
|
player.setQuestUI8FH( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 12:
|
||||||
|
{
|
||||||
|
player.setQuestUI8FL( questId, value );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else if( subCommand == "BitFlag" )
|
else if( subCommand == "BitFlag" )
|
||||||
{
|
{
|
||||||
uint16_t questId;
|
uint16_t questId;
|
||||||
|
|
Loading…
Add table
Reference in a new issue