psu_proto: Move send_1706 to psu_proto without reviewing it.
This commit is contained in:
parent
023214793c
commit
4faabbda8f
@ -302,9 +302,9 @@ event({counter_options_request, CounterID}, Client) ->
|
||||
psu_proto:send_1711(egs_counters_db:bg(CounterID), Client);
|
||||
|
||||
%% @todo Handle when the party already exists! And stop doing it wrong.
|
||||
event(counter_party_info_request, #client{gid=GID}) ->
|
||||
event(counter_party_info_request, Client=#client{gid=GID}) ->
|
||||
{ok, User} = egs_users:read(GID),
|
||||
psu_game:send_1706((User#users.character)#characters.name);
|
||||
psu_proto:send_1706((User#users.character)#characters.name, Client);
|
||||
|
||||
%% @todo Item distribution is always set to random for now.
|
||||
event(counter_party_options_request, _Client) ->
|
||||
|
@ -375,12 +375,6 @@ send_1602() ->
|
||||
GID = get(gid),
|
||||
send(<< 16#16020300:32, 16#ffff:16, 0:144, 16#00011300:32, GID:32/little, 0:96, Bin/binary, 0:MiddlePaddingSize, NbNPC, 0:24, UCS2PMName/binary, 0:EndPaddingSize, 0:32 >>).
|
||||
|
||||
%% @doc Party information.
|
||||
%% @todo Handle existing parties.
|
||||
send_1706(CharName) ->
|
||||
send(<< (header(16#1706))/binary, 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 >>).
|
||||
|
||||
%% @doc Party settings. Item distribution is random for now.
|
||||
%% @todo Handle correctly.
|
||||
send_170a() ->
|
||||
|
@ -1650,6 +1650,14 @@ send_1601(PartyPos, #client{socket=Socket, gid=DestGID}) ->
|
||||
send_1701(#client{socket=Socket, gid=DestGID}) ->
|
||||
packet_send(Socket, << 16#17010300:32, 0:160, 16#00011300:32, DestGID:32/little, 0:96 >>).
|
||||
|
||||
%% @doc Party information.
|
||||
%% @todo Handle existing parties.
|
||||
%% @todo This packet hasn't been reviewed at all yet.
|
||||
send_1706(CharName, #client{socket=Socket, gid=DestGID}) ->
|
||||
packet_send(Socket, << 16#17060300:32, 16#ffff:16, 0:144, 16#00011300:32, DestGID:32/little, 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 >>).
|
||||
|
||||
%% @doc Send the background to use for the counter.
|
||||
send_1711(Bg, #client{socket=Socket, gid=DestGID, lid=DestLID}) ->
|
||||
packet_send(Socket, << 16#17110300:32, DestLID:16/little, 0:144, 16#00011300:32, DestGID:32/little, 0:64, Bg:8, 0:24 >>).
|
||||
|
Loading…
Reference in New Issue
Block a user