psu_game: Small fixes to send_1500 based on research. GID shows up properly on own partner card now.
This commit is contained in:
parent
1d0c9ff960
commit
c3380cbf95
@ -1549,11 +1549,13 @@ send_1332() ->
|
|||||||
%% @doc Send the player's partner card.
|
%% @doc Send the player's partner card.
|
||||||
%% @todo Find out the remaining values.
|
%% @todo Find out the remaining values.
|
||||||
send_1500(User) ->
|
send_1500(User) ->
|
||||||
|
GID = User#egs_user_model.id,
|
||||||
#characters{slot=Slot, name=Name, race=Race, gender=Gender, class=Class} = User#egs_user_model.character,
|
#characters{slot=Slot, name=Name, race=Race, gender=Gender, class=Class} = User#egs_user_model.character,
|
||||||
RaceBin = psu_characters:race_atom_to_binary(Race),
|
RaceBin = psu_characters:race_atom_to_binary(Race),
|
||||||
GenderBin = psu_characters:gender_atom_to_binary(Gender),
|
GenderBin = psu_characters:gender_atom_to_binary(Gender),
|
||||||
ClassBin = psu_characters:class_atom_to_binary(Class),
|
ClassBin = psu_characters:class_atom_to_binary(Class),
|
||||||
send(<< (header(16#1500))/binary, Name/binary, RaceBin:8, GenderBin:8, ClassBin:8, 0:3112, 16#010401:24, Slot:8, 0:64 >>).
|
send(<< 16#15000300:32, 16#ffff:16, 0:144, 16#00011300:32, GID:32/little, 0:64,
|
||||||
|
Name/binary, RaceBin:8, GenderBin:8, ClassBin:8, 0:40, GID:32/little, 0:3040, 16#010401:24, Slot:8, 0:64 >>).
|
||||||
|
|
||||||
%% @todo Send an empty partner card list.
|
%% @todo Send an empty partner card list.
|
||||||
send_1501() ->
|
send_1501() ->
|
||||||
|
Loading…
Reference in New Issue
Block a user