mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 14:07:46 +00:00
unlockAction now takes u16 param, unlockAction debug command added
This commit is contained in:
parent
fec2b8c81b
commit
3d09b3efc0
3 changed files with 9 additions and 2 deletions
|
@ -562,7 +562,7 @@ void Core::Entity::Player::changePosition( float x, float y, float z, float o )
|
||||||
m_queuedZoneing = boost::make_shared<QueuedZoning>( getZoneId(), pos, Util::getTimeMs(), o );
|
m_queuedZoneing = boost::make_shared<QueuedZoning>( getZoneId(), pos, Util::getTimeMs(), o );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Core::Entity::Player::learnAction( uint8_t actionId )
|
void Core::Entity::Player::learnAction( uint16_t actionId )
|
||||||
{
|
{
|
||||||
uint16_t index;
|
uint16_t index;
|
||||||
uint8_t value;
|
uint8_t value;
|
||||||
|
|
|
@ -419,7 +419,7 @@ public:
|
||||||
/*! update bitmask for how-to's seen */
|
/*! update bitmask for how-to's seen */
|
||||||
void updateHowtosSeen( uint32_t howToId );
|
void updateHowtosSeen( uint32_t howToId );
|
||||||
/*! learn an action / update the unlock bitmask. */
|
/*! learn an action / update the unlock bitmask. */
|
||||||
void learnAction( uint8_t actionId );
|
void learnAction( uint16_t actionId );
|
||||||
/*! learn a song / update the unlock bitmask. */
|
/*! learn a song / update the unlock bitmask. */
|
||||||
void learnSong( uint8_t songId, uint32_t itemId );
|
void learnSong( uint8_t songId, uint32_t itemId );
|
||||||
/*! check if an action is already unlocked in the bitmask. */
|
/*! check if an action is already unlocked in the bitmask. */
|
||||||
|
|
|
@ -423,6 +423,13 @@ void Core::DebugCommandHandler::add( char * data, Entity::Player& player, boost:
|
||||||
player.queuePacket( controlPacket );*/
|
player.queuePacket( controlPacket );*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else if( subCommand == "unlock" )
|
||||||
|
{
|
||||||
|
uint32_t id;
|
||||||
|
|
||||||
|
sscanf( params.c_str(), "%d", &id );
|
||||||
|
player.learnAction( id );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendUrgent( subCommand + " is not a valid ADD command." );
|
player.sendUrgent( subCommand + " is not a valid ADD command." );
|
||||||
|
|
Loading…
Add table
Reference in a new issue