mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 17:27:47 +00:00
moving init name to purcahse
This commit is contained in:
parent
502fbf7019
commit
a3a271439b
2 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,6 @@
|
|||
#include <Actor/Player.h>
|
||||
#include <Zone/Zone.h>
|
||||
#include <Zone/HousingZone.h>
|
||||
#include <Zone/Land.h>
|
||||
#include <Network/PacketWrappers/ActorControlPacket143.h>
|
||||
#include <Network/CommonActorControl.h>
|
||||
|
||||
|
@ -39,8 +38,6 @@ public:
|
|||
{
|
||||
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 );
|
||||
player.queuePacket( screenMsgPkt );
|
||||
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,
|
||||
pHousing->getWardNum(), pHousing->getTerritoryTypeId() );
|
||||
player.sendLandPermissions();
|
||||
pLand->setLandName( "Private Estate" + std::to_string( pHousing->getWardNum() ) + "-" + std::to_string( plot ) );
|
||||
pLand->UpdateLandDb();
|
||||
sendLandUpdate( plot );
|
||||
return LandPurchaseResult::SUCCESS;
|
||||
|
|
Loading…
Add table
Reference in a new issue