Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quests Static Responses, Reward Box & Item Rewards Static Responses #237

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Arrowgene.Ddon.GameServer/DdonGameServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ private void LoadPacketHandler()
AddHandler(new FriendGetFriendListHandler(this));
AddHandler(new FriendGetRecentCharacterListHandler(this));


AddHandler(new Gp_28_2_1_Handler(this));
AddHandler(new GpGetUpdateAppCourseBonusFlagHandler(this));
AddHandler(new GpGetValidChatComGroupHandler(this));
Expand Down Expand Up @@ -298,7 +297,7 @@ private void LoadPacketHandler()

AddHandler(new PartnerPawnPawnLikabilityReleasedRewardListGetHandler(this));
AddHandler(new PartnerPawnPawnLikabilityRewardListGetHandler(this));

AddHandler(new PartyMemberSetValueHandler(this));
AddHandler(new PartyPartyBreakupHandler(this));
AddHandler(new PartyPartyChangeLeaderHandler(this));
AddHandler(new PartyPartyCreateHandler(this));
Expand Down Expand Up @@ -342,6 +341,8 @@ private void LoadPacketHandler()
AddHandler(new QuestGetPriorityQuestHandler(this));
AddHandler(new QuestGetQuestCompletedListHandler(this));
AddHandler(new QuestGetQuestPartyBonusListHandler(this));
AddHandler(new QuestGetRewardBoxHandler(this));
AddHandler(new QuestGetRewardBoxItemHandler(this));
AddHandler(new QuestGetSetQuestListHandler(this));
AddHandler(new QuestGetTutorialQuestListHandler(this));
AddHandler(new QuestGetWorldManageQuestListHandler(this));
Expand All @@ -350,7 +351,8 @@ private void LoadPacketHandler()
AddHandler(new QuestQuestProgressHandler(this));
AddHandler(new QuestSendLeaderQuestOrderConditionInfoHandler(this));
AddHandler(new QuestSendLeaderWaitOrderQuestListHandler(this));

AddHandler(new QuestSetPriorityQuestHandler(this));

AddHandler(new EntryBoardEntryBoardList(this));
AddHandler(new EntryBoardEntryBoardItemCreate(this));
AddHandler(new EntryBoardEntryBoardItemForceStart(this));
Expand Down
9,321 changes: 2,371 additions & 6,950 deletions Arrowgene.Ddon.GameServer/Dump/GameFullDump.cs

Large diffs are not rendered by default.

1,414 changes: 2 additions & 1,412 deletions Arrowgene.Ddon.GameServer/Dump/InGameDump.cs

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions Arrowgene.Ddon.GameServer/Handler/PartyMemberSetValueHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Arrowgene.Buffers;
using Arrowgene.Ddon.GameServer.Dump;
using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Server.Network;
using Arrowgene.Ddon.Shared.Network;
using Arrowgene.Logging;

namespace Arrowgene.Ddon.GameServer.Handler
{
public class PartyMemberSetValueHandler : PacketHandler<GameClient>
{
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(PartyMemberSetValueHandler));


public PartyMemberSetValueHandler(DdonGameServer server) : base(server)
{
}

public override PacketId Id => PacketId.C2S_PARTY_PARTY_MEMBER_SET_VALUE_REQ;

public override void Handle(GameClient client, IPacket packet)
{
client.Send(GameFull.Dump_900);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public QuestGetPartyQuestProgressInfoHandler(DdonGameServer server) : base(serve
public override void Handle(GameClient client, IPacket packet)
{
S2CQuestGetPartyQuestProgressInfoRes res = new S2CQuestGetPartyQuestProgressInfoRes();
client.Send(res);
// client.Send(GameFull.Dump_142);
// client.Send(res);
client.Send(GameFull.Dump_142);
}
}
}
26 changes: 26 additions & 0 deletions Arrowgene.Ddon.GameServer/Handler/QuestGetRewardBoxHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Arrowgene.Buffers;
using Arrowgene.Ddon.GameServer.Dump;
using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Server.Network;
using Arrowgene.Ddon.Shared.Network;
using Arrowgene.Logging;

namespace Arrowgene.Ddon.GameServer.Handler
{
public class QuestGetRewardBoxHandler : PacketHandler<GameClient>
{
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(QuestGetRewardBoxHandler));


public QuestGetRewardBoxHandler(DdonGameServer server) : base(server)
{
}

public override PacketId Id => PacketId.C2S_QUEST_GET_REWARD_BOX_LIST_REQ;

public override void Handle(GameClient client, IPacket packet)
{
client.Send(GameFull.Dump_901);
}
}
}
26 changes: 26 additions & 0 deletions Arrowgene.Ddon.GameServer/Handler/QuestGetRewardBoxItemHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Arrowgene.Buffers;
using Arrowgene.Ddon.GameServer.Dump;
using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Server.Network;
using Arrowgene.Ddon.Shared.Network;
using Arrowgene.Logging;

namespace Arrowgene.Ddon.GameServer.Handler
{
public class QuestGetRewardBoxItemHandler : PacketHandler<GameClient>
{
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(QuestGetRewardBoxItemHandler));


public QuestGetRewardBoxItemHandler(DdonGameServer server) : base(server)
{
}

public override PacketId Id => PacketId.C2S_QUEST_GET_REWARD_BOX_ITEM_REQ;

public override void Handle(GameClient client, IPacket packet)
{
client.Send(GameFull.Dump_902);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public override void Handle(GameClient client, IPacket packet)
uint data0 = inBuffer.ReadUInt32(Endianness.Big);
uint data1 = inBuffer.ReadUInt32(Endianness.Big);
uint data2 = inBuffer.ReadUInt32(Endianness.Big);
Logger.Debug("data0: "+data0+" data1: "+data1+" data2: "+data2+"\n");
if(data2 == 287350){
client.Send(GameFull.Dump_652);
}
else{

IBuffer outBuffer = new StreamBuffer();
outBuffer.WriteInt32(0, Endianness.Big);
Expand All @@ -49,6 +54,7 @@ public override void Handle(GameClient client, IPacket packet)
client.Send(GameFull.Dump_297);
client.Send(GameFull.Dump_299);
client.Send(GameFull.Dump_524);
}
}
}
}
38 changes: 38 additions & 0 deletions Arrowgene.Ddon.GameServer/Handler/QuestSetPriorityQuestHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using Arrowgene.Buffers;
using Arrowgene.Ddon.GameServer.Dump;
using Arrowgene.Ddon.Server;
using Arrowgene.Ddon.Server.Network;
using Arrowgene.Ddon.Shared.Network;
using Arrowgene.Logging;

namespace Arrowgene.Ddon.GameServer.Handler
{
public class QuestSetPriorityQuestHandler : PacketHandler<GameClient>
{
private static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof(QuestSetPriorityQuestHandler));


public QuestSetPriorityQuestHandler(DdonGameServer server) : base(server)
{
}

public override PacketId Id => PacketId.C2S_QUEST_SET_PRIORITY_QUEST_REQ;

public override void Handle(GameClient client, IPacket packet)
{
IBuffer inBuffer = new StreamBuffer(packet.Data);
inBuffer.SetPositionStart();
uint data0 = inBuffer.ReadUInt32(Endianness.Big);
// uint data1 = inBuffer.ReadUInt32(Endianness.Big);
// uint data2 = inBuffer.ReadUInt32(Endianness.Big);
Logger.Debug("data0: "+data0+"\n");

//" data1: "+data1+" data2: "+data2+



client.Send(GameFull.Dump_653);

}
}
}
Loading