diff --git a/src/egs_game.erl b/src/egs_game.erl index 17993ad..06df488 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -729,8 +729,8 @@ event(player_death_return_to_lobby, Client=#client{gid=GID}) -> event(player_type_availability_request, Client) -> psu_proto:send_1a07(Client); -event(player_type_capabilities_request, _Client) -> - psu_game:send_0113(); +event(player_type_capabilities_request, Client) -> + psu_proto:send_0113(Client); event(ppcube_request, Client) -> psu_proto:send_1a04(Client); diff --git a/src/psu/psu_game.erl b/src/psu/psu_game.erl index 5cc9458..4220575 100644 --- a/src/psu/psu_game.erl +++ b/src/psu/psu_game.erl @@ -158,12 +158,6 @@ build_010a_list([ItemID|Tail], Acc) -> Bin = << UCS2Name/binary, 0:NamePadding, RarityBin:8, 0:8, BinItemID/binary, SellPrice:32/little, DataBin/binary >>, build_010a_list(Tail, [Bin|Acc]). -%% @todo Types capability list. -send_0113() -> - {ok, File} = file:read_file("p/typesinfo.bin"), - GID = get(gid), - send(<< 16#01130300:32, 0:64, GID:32/little, 0:64, 16#00011300:32, GID:32/little, 0:64, GID:32/little, File/binary >>). - %% @todo Handle more than just goggles. send_0a0a(Inventory) -> {ok, << _:68608/bits, Rest/bits >>} = file:read_file("p/packet0a0a.bin"), diff --git a/src/psu/psu_proto.erl b/src/psu/psu_proto.erl index 52148e3..f00669d 100644 --- a/src/psu/psu_proto.erl +++ b/src/psu/psu_proto.erl @@ -1211,6 +1211,12 @@ send_0111(#users{gid=CharGID, lid=CharLID}, EventID, Param, #client{socket=Socke packet_send(Socket, << 16#01110300:32, DestLID:16/little, 0:48, CharGID:32/little, 0:64, 16#00011300:32, DestGID:32/little, 0:64, CharGID:32/little, CharLID:32/little, EventID:32/little, Param:32/little >>). +%% @todo Types capability list. +%% @todo This packet hasn't been reviewed at all yet. +send_0113(#client{socket=Socket, gid=DestGID}) -> + {ok, File} = file:read_file("p/typesinfo.bin"), + packet_send(Socket, << 16#01130300:32, 0:64, DestGID:32/little, 0:64, 16#00011300:32, DestGID:32/little, 0:64, DestGID:32/little, File/binary >>). + %% @doc Update the character level, blastbar, luck and money information. send_0115(CharUser, Client) -> send_0115(CharUser, 16#ffffffff, Client).