1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 06:47:45 +00:00

setting land name like retail

This commit is contained in:
AriAvery 2018-11-12 09:40:20 +01:00
parent c9eb1bafce
commit c4cb8ecb7c

View file

@ -2,6 +2,7 @@
#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>
@ -38,6 +39,8 @@ 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,