diff --git a/src/psu/psu_game.erl b/src/psu/psu_game.erl index c4f2915..e059ec8 100644 --- a/src/psu/psu_game.erl +++ b/src/psu/psu_game.erl @@ -344,7 +344,7 @@ area_load(AreaType, IsStart, SetID, OldUser, User, QuestFile, ZoneFile, AreaName end, if ZoneChange =:= true -> % load new zone - send_0a05(), + psu_proto:send_0a05(User), if AreaType =:= lobby -> send_0111(6, 0); true -> ignore @@ -589,7 +589,7 @@ event({counter_enter, CounterID, FromZoneID, FromMapID, FromEntryID}) -> %% load counter psu_proto:send_0c00(User), send_020e(QuestFile), - send_0a05(), + psu_proto:send_0a05(User), send_010d(User#egs_user_model{lid=0}), send_0200(mission), send_020f(ZoneFile, 0, 16#ff), @@ -1303,10 +1303,6 @@ send_0a04(NPCGID) -> {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 >>). -%% @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 It sends 60 values so it's probably some kind of options for all 60 items in the inventory? send_0a06() -> diff --git a/src/psu/psu_proto.erl b/src/psu/psu_proto.erl index 8cc63bf..56de548 100644 --- a/src/psu/psu_proto.erl +++ b/src/psu/psu_proto.erl @@ -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 >>). +%% @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 >>).