mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 17:27:47 +00:00
Fix shop packet.
This commit is contained in:
parent
08704ffe88
commit
6e4f861234
2 changed files with 17 additions and 3 deletions
|
@ -43,7 +43,7 @@ private:
|
|||
|
||||
}
|
||||
|
||||
player.playGilShop( result.eventId, SCENE_FLAGS, result.param2 == 1 ? 3 : 2, std::bind( &GilShop::shopInteractionCallback, this, std::placeholders::_1, std::placeholders::_2 ) );
|
||||
player.playGilShop( result.eventId, SCENE_FLAGS, result.param2, std::bind( &GilShop::shopInteractionCallback, this, std::placeholders::_1, std::placeholders::_2 ) );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -145,8 +145,22 @@ void Sapphire::Entity::Player::playGilShop( uint32_t eventId, uint32_t flags, ui
|
|||
openGilShopPacket->data().eventId = eventId;
|
||||
openGilShopPacket->data().sceneFlags = flags;
|
||||
openGilShopPacket->data().actorId = getId();
|
||||
openGilShopPacket->data().params[ 0 ] = 1;
|
||||
openGilShopPacket->data().params[ 1 ] = param;
|
||||
switch( param )
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
openGilShopPacket->data().params[ 0 ] = 0x02;
|
||||
openGilShopPacket->data().params[ 1 ] = 1;
|
||||
openGilShopPacket->data().params[ 2 ] = 0x64;
|
||||
break;
|
||||
}
|
||||
case 2:
|
||||
{
|
||||
openGilShopPacket->data().params[ 0 ] = 0xA2;
|
||||
openGilShopPacket->data().params[ 1 ] = 2;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
openGilShopPacket->data().scene = 10;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue