diff --git a/src/egs_game.erl b/src/egs_game.erl index 621b913..dd01eeb 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -192,7 +192,7 @@ char_select_load(CSocket, GID, Version, Number) -> send_packet_1006(CSocket, GID, 12), % 0210 egs_proto:send_universe_info(CSocket, GID), - egs_proto:send_player_card(CSocket, GID, Char), + egs_proto:send_player_card(CSocket, GID, Char, Number), % 1501 1512 0303 egs_proto:send_npc_info(CSocket, GID), % 021b diff --git a/src/egs_proto.erl b/src/egs_proto.erl index 7ab0189..f1c1f47 100644 --- a/src/egs_proto.erl +++ b/src/egs_proto.erl @@ -252,9 +252,9 @@ send_npc_info(CSocket, GID) -> %% @doc Send the player's partner card. -send_player_card(CSocket, GID, Char) -> +send_player_card(CSocket, GID, Char, Number) -> << CharInfo:576/bits, _/bits >> = Char, - Packet = << 16#1500:16, 0:208, GID:32/little-unsigned-integer, 0:64, CharInfo/binary, 0:3072, 16#01040103:32, 0:64 >>, + Packet = << 16#15000300:32, 0:160, 16#00011300:32, GID:32/little-unsigned-integer, 0:64, CharInfo/binary, 0:3072, 16#010401:24, Number:8, 0:64 >>, packet_send(CSocket, Packet). %% @doc Send the quest file to be loaded.