diff --git a/src/egs_game.erl b/src/egs_game.erl index 6d1505e..24ff405 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -669,6 +669,24 @@ handle(16#0f0a, CSocket, GID, _, Orig) -> egs_proto:packet_send(CSocket, Packet), log(GID, "lobby event (can only chair so far)"); +%% @doc Mission selection handler? Send a party information recap. +%% @todo Handle when the party already exists! And stop doing it wrong. + +handle(16#1705, CSocket, GID, _, _) -> + User = egs_db:users_select(GID), + CharName = User#users.charname, + Packet = << 16#17060300:32, 0:160, 16#00011300:32, GID:32/little-unsigned-integer, 0:64, + 16#00000300:32, 16#d5c0faff:32, 0:64, CharName/binary, 16#78000000:32, 16#01010000:32, + 0:1536, 16#0100c800:32, 16#0601010a:32, 16#ffffffff:32, 0:32 >>, + egs_proto:packet_send(CSocket, Packet); + +%% @doc Party settings request handler. Item distribution is random for now. +%% @todo Handle correctly. + +handle(16#1709, CSocket, GID, _, _) -> + Packet = << 16#170a0300:32, 0:160, 16#00011300:32, GID:32/little-unsigned-integer, 0:64, 16#01010c08:32 >>, + egs_proto:packet_send(CSocket, Packet); + %% @doc Counter initialization handler? %% @todo Handle correctly.