mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-04 01:37:47 +00:00
moving init name to purcahse
This commit is contained in:
parent
c4cb8ecb7c
commit
4763451da9
2 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,6 @@
|
||||||
#include <Actor/Player.h>
|
#include <Actor/Player.h>
|
||||||
#include <Zone/Zone.h>
|
#include <Zone/Zone.h>
|
||||||
#include <Zone/HousingZone.h>
|
#include <Zone/HousingZone.h>
|
||||||
#include <Zone/Land.h>
|
|
||||||
#include <Network/PacketWrappers/ActorControlPacket143.h>
|
#include <Network/PacketWrappers/ActorControlPacket143.h>
|
||||||
#include <Network/CommonActorControl.h>
|
#include <Network/CommonActorControl.h>
|
||||||
|
|
||||||
|
@ -39,8 +38,6 @@ public:
|
||||||
{
|
{
|
||||||
case LandPurchaseResult::SUCCESS:
|
case LandPurchaseResult::SUCCESS:
|
||||||
{
|
{
|
||||||
pHousing->getLand( activeLand.plot )->setLandName( "Private Estate" + std::to_string( activeLand.ward ) + "-" + std::to_string( activeLand.plot ) );
|
|
||||||
|
|
||||||
auto screenMsgPkt = makeActorControl143( player.getId(), ActorControl::DutyQuestScreenMsg, m_id, 0x98 );
|
auto screenMsgPkt = makeActorControl143( player.getId(), ActorControl::DutyQuestScreenMsg, m_id, 0x98 );
|
||||||
player.queuePacket( screenMsgPkt );
|
player.queuePacket( screenMsgPkt );
|
||||||
auto screenMsgPkt2 = makeActorControl143( player.getId(), ActorControl::LogMsg, 0x0D16, 0x1AA,
|
auto screenMsgPkt2 = makeActorControl143( player.getId(), ActorControl::LogMsg, 0x0D16, 0x1AA,
|
||||||
|
|
|
@ -193,6 +193,7 @@ Core::LandPurchaseResult Core::HousingZone::purchseLand( Entity::Player& player,
|
||||||
player.setLandPermissions( LandPermissionSlot::Private, 0x00, plot,
|
player.setLandPermissions( LandPermissionSlot::Private, 0x00, plot,
|
||||||
pHousing->getWardNum(), pHousing->getTerritoryTypeId() );
|
pHousing->getWardNum(), pHousing->getTerritoryTypeId() );
|
||||||
player.sendLandPermissions();
|
player.sendLandPermissions();
|
||||||
|
pLand->setLandName( "Private Estate" + std::to_string( pHousing->getWardNum() ) + "-" + std::to_string( plot ) );
|
||||||
pLand->UpdateLandDb();
|
pLand->UpdateLandDb();
|
||||||
sendLandUpdate( plot );
|
sendLandUpdate( plot );
|
||||||
return LandPurchaseResult::SUCCESS;
|
return LandPurchaseResult::SUCCESS;
|
||||||
|
|
Loading…
Add table
Reference in a new issue