diff --git a/p/npc.bin b/p/npc.bin new file mode 100644 index 0000000..2f92afc Binary files /dev/null and b/p/npc.bin differ diff --git a/src/egs_proto.erl b/src/egs_proto.erl index adff428..1e27f4f 100644 --- a/src/egs_proto.erl +++ b/src/egs_proto.erl @@ -300,7 +300,8 @@ send_map(CSocket, Quest, MapType, MapNumber, MapEntry) -> %% @doc Send the player's NPC and PM information. send_npc_info(CSocket, GID) -> - Packet = << 16#1602:16, 0:208, GID:32/little-unsigned-integer, 0:3680 >>, + {ok, File} = file:read_file("p/npc.bin"), + Packet = << 16#16020300:16, 0:192, GID:32/little-unsigned-integer, 0:96, File/binary >>, packet_send(CSocket, Packet). %% @doc Send the player's partner card.