Review send_0a05 and move it to psu_proto.
This commit is contained in:
parent
9fc62c8130
commit
d9586cfd10
@ -344,7 +344,7 @@ area_load(AreaType, IsStart, SetID, OldUser, User, QuestFile, ZoneFile, AreaName
|
|||||||
end,
|
end,
|
||||||
if ZoneChange =:= true ->
|
if ZoneChange =:= true ->
|
||||||
% load new zone
|
% load new zone
|
||||||
send_0a05(),
|
psu_proto:send_0a05(User),
|
||||||
if AreaType =:= lobby ->
|
if AreaType =:= lobby ->
|
||||||
send_0111(6, 0);
|
send_0111(6, 0);
|
||||||
true -> ignore
|
true -> ignore
|
||||||
@ -589,7 +589,7 @@ event({counter_enter, CounterID, FromZoneID, FromMapID, FromEntryID}) ->
|
|||||||
%% load counter
|
%% load counter
|
||||||
psu_proto:send_0c00(User),
|
psu_proto:send_0c00(User),
|
||||||
send_020e(QuestFile),
|
send_020e(QuestFile),
|
||||||
send_0a05(),
|
psu_proto:send_0a05(User),
|
||||||
send_010d(User#egs_user_model{lid=0}),
|
send_010d(User#egs_user_model{lid=0}),
|
||||||
send_0200(mission),
|
send_0200(mission),
|
||||||
send_020f(ZoneFile, 0, 16#ff),
|
send_020f(ZoneFile, 0, 16#ff),
|
||||||
@ -1303,10 +1303,6 @@ send_0a04(NPCGID) ->
|
|||||||
{ok, Bin} = file:read_file("p/packet0a04.bin"),
|
{ok, Bin} = file:read_file("p/packet0a04.bin"),
|
||||||
send(<< 16#0a040300:32, 0:32, 16#00001d00:32, NPCGID:32/little-unsigned-integer, 0:64, 16#00011300:32, GID:32/little-unsigned-integer, 0:64, Bin/binary >>).
|
send(<< 16#0a040300:32, 0:32, 16#00001d00:32, NPCGID:32/little-unsigned-integer, 0:64, 16#00011300:32, GID:32/little-unsigned-integer, 0:64, Bin/binary >>).
|
||||||
|
|
||||||
%% @todo Inventory related. No idea what it does.
|
|
||||||
send_0a05() ->
|
|
||||||
send(header(16#0a05)).
|
|
||||||
|
|
||||||
%% @todo Inventory related. Figure out everything in this packet and handle it correctly.
|
%% @todo Inventory related. Figure out everything in this packet and handle it correctly.
|
||||||
%% @todo It sends 60 values so it's probably some kind of options for all 60 items in the inventory?
|
%% @todo It sends 60 values so it's probably some kind of options for all 60 items in the inventory?
|
||||||
send_0a06() ->
|
send_0a06() ->
|
||||||
|
@ -946,6 +946,10 @@ send_0c00(DestUser) ->
|
|||||||
16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32,
|
16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32,
|
||||||
16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32 >>).
|
16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32, 16#ffffffff:32 >>).
|
||||||
|
|
||||||
|
%% @todo Inventory related. Doesn't seem to do anything.
|
||||||
|
send_0a05(DestUser) ->
|
||||||
|
#egs_user_model{socket=CSocket, id=GID, lid=LID} = DestUser,
|
||||||
|
packet_send(CSocket, << 16#0a050300:32, LID:16/little, 0:144, 16#00011300:32, GID:32/little, 0:64 >>).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user