mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 22:17:45 +00:00
Some additions
This commit is contained in:
parent
c320604cd7
commit
ec6aa1d4d6
2 changed files with 15 additions and 8 deletions
|
@ -7,6 +7,9 @@
|
||||||
|
|
||||||
|
|
||||||
using namespace Core;
|
using namespace Core;
|
||||||
|
using namespace Network;
|
||||||
|
using namespace Packets;
|
||||||
|
using namespace Server;
|
||||||
|
|
||||||
class CmnDefHousingSignboard : public EventScript
|
class CmnDefHousingSignboard : public EventScript
|
||||||
{
|
{
|
||||||
|
@ -31,23 +34,27 @@ public:
|
||||||
PurchaseResult res = pHousing->purchseLand( player, activeLand.plot,
|
PurchaseResult res = pHousing->purchseLand( player, activeLand.plot,
|
||||||
static_cast< uint8_t >( result.param2 ) );
|
static_cast< uint8_t >( result.param2 ) );
|
||||||
|
|
||||||
|
|
||||||
switch( res )
|
switch( res )
|
||||||
{
|
{
|
||||||
case PurchaseResult::SUCCESS:
|
case PurchaseResult::SUCCESS:
|
||||||
{
|
{
|
||||||
auto screenMsgPkt = Network::Packets::Server::makeActorControl143( player.getId(),
|
auto screenMsgPkt = makeActorControl143( player.getId(), ActorControl::DutyQuestScreenMsg, m_id, 0x98 );
|
||||||
Network::ActorControl::DutyQuestScreenMsg,
|
|
||||||
m_id, 0x98 );
|
|
||||||
player.queuePacket( screenMsgPkt );
|
player.queuePacket( screenMsgPkt );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case PurchaseResult::ERR_NOT_ENOUGH_GIL:
|
case PurchaseResult::ERR_NOT_ENOUGH_GIL:
|
||||||
{
|
{
|
||||||
auto errorMsg = Network::Packets::Server::makeActorControl143( player.getId(),
|
auto errorMsg = makeActorControl143( player.getId(), ActorControl::LogMsg, 4027 );
|
||||||
Network::ActorControl::LogMsg,
|
|
||||||
4027 );
|
|
||||||
player.queuePacket( errorMsg );
|
player.queuePacket( errorMsg );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case PurchaseResult::ERR_NOT_AVAILABLE:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PurchaseResult::ERR_INTERNAL:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,7 +213,7 @@ void Core::ServerZone::mainLoop()
|
||||||
|
|
||||||
auto currTime = Util::getTimeSeconds();
|
auto currTime = Util::getTimeSeconds();
|
||||||
|
|
||||||
pTeriMgr->updateTerritoryInstances( currTime );
|
pTeriMgr->updateTerritoryInstances( static_cast< uint32_t >( currTime ) );
|
||||||
|
|
||||||
pScriptMgr->update();
|
pScriptMgr->update();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue