mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Fix event battle.
This commit is contained in:
parent
ca2370910c
commit
352a0ac823
2 changed files with 13 additions and 0 deletions
|
@ -264,6 +264,8 @@ namespace Sapphire::Network::ActorControl
|
|||
|
||||
ToggleOrchestrionUnlock = 0x396,
|
||||
|
||||
EventBattleDialog = 0x39C,
|
||||
|
||||
/*!
|
||||
* param1 = mountSpeed
|
||||
* Retail sends 12 for mount speed star 1 unlocked and 15 for mount speed star 2 unlocked
|
||||
|
@ -391,6 +393,8 @@ namespace Sapphire::Network::ActorControl
|
|||
AchievementComp = 0x203,
|
||||
AchievementCatChat = 0x206,
|
||||
|
||||
RequestEventBattle = 0x232C,
|
||||
|
||||
QuestJournalUpdateQuestVisibility = 0x2BE,
|
||||
QuestJournalClosed = 0x2BF,
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "Network/PacketWrappers/ChatPacket.h"
|
||||
#include "Network/PacketWrappers/ServerNoticePacket.h"
|
||||
#include "Network/PacketWrappers/ActorControlPacket.h"
|
||||
#include "Network/PacketWrappers/ActorControlSelfPacket.h"
|
||||
|
||||
#include "Manager/DebugCommandMgr.h"
|
||||
#include "Manager/EventMgr.h"
|
||||
|
@ -493,6 +494,14 @@ void Sapphire::Network::GameConnection::clientTriggerHandler( FrameworkPtr pFw,
|
|||
canTeleport, unk1, privateEstateAccess, unk );
|
||||
break;
|
||||
}
|
||||
case ClientTriggerType::RequestEventBattle:
|
||||
{
|
||||
auto packet = makeActorControlSelf( player.getId(), ActorControl::EventBattleDialog, 0, param12, param2 );
|
||||
player.queuePacket( packet );
|
||||
|
||||
player.sendDebug( "event battle level sync: {0}, ilevel sync?: {1}", param12, param2 );
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue