Review send_0215 and move it to psu_proto.
This commit is contained in:
parent
dfb8f691fb
commit
f0754543cf
@ -339,7 +339,7 @@ area_load(AreaType, IsStart, SetID, OldUser, User, QuestFile, ZoneFile, AreaName
|
|||||||
true -> ignore
|
true -> ignore
|
||||||
end,
|
end,
|
||||||
if IsStart =:= true ->
|
if IsStart =:= true ->
|
||||||
send_0215(16#ffffffff);
|
psu_proto:send_0215(User, 16#ffffffff);
|
||||||
true -> ignore
|
true -> ignore
|
||||||
end,
|
end,
|
||||||
if ZoneChange =:= true ->
|
if ZoneChange =:= true ->
|
||||||
@ -357,9 +357,9 @@ area_load(AreaType, IsStart, SetID, OldUser, User, QuestFile, ZoneFile, AreaName
|
|||||||
psu_proto:send_0205(User, IsSeasonal),
|
psu_proto:send_0205(User, IsSeasonal),
|
||||||
send_100e(QuestID, ZoneID, (User#egs_user_model.area)#psu_area.mapid, AreaName, 16#ffffffff),
|
send_100e(QuestID, ZoneID, (User#egs_user_model.area)#psu_area.mapid, AreaName, 16#ffffffff),
|
||||||
if AreaType =:= mission ->
|
if AreaType =:= mission ->
|
||||||
send_0215(0),
|
psu_proto:send_0215(User, 0),
|
||||||
if IsStart =:= true ->
|
if IsStart =:= true ->
|
||||||
send_0215(0),
|
psu_proto:send_0215(User, 0),
|
||||||
send_0c09();
|
send_0c09();
|
||||||
true -> ignore
|
true -> ignore
|
||||||
end;
|
end;
|
||||||
@ -416,7 +416,7 @@ npc_load(Leader, [{PartyPos, NPCGID}|NPCList]) ->
|
|||||||
egs_user_model:write(NPCUser),
|
egs_user_model:write(NPCUser),
|
||||||
send_010d(NPCUser),
|
send_010d(NPCUser),
|
||||||
send_0201(NPCUser),
|
send_0201(NPCUser),
|
||||||
send_0215(0),
|
psu_proto:send_0215(Leader, 0),
|
||||||
send_0a04(NPCUser#egs_user_model.id),
|
send_0a04(NPCUser#egs_user_model.id),
|
||||||
send_1004(npc_mission, NPCUser, PartyPos),
|
send_1004(npc_mission, NPCUser, PartyPos),
|
||||||
send_100f((NPCUser#egs_user_model.character)#characters.npcid, PartyPos),
|
send_100f((NPCUser#egs_user_model.character)#characters.npcid, PartyPos),
|
||||||
@ -595,8 +595,8 @@ event({counter_enter, CounterID, FromZoneID, FromMapID, FromEntryID}) ->
|
|||||||
send_020f(ZoneFile, 0, 16#ff),
|
send_020f(ZoneFile, 0, 16#ff),
|
||||||
psu_proto:send_0205(User, 0),
|
psu_proto:send_0205(User, 0),
|
||||||
send_100e(16#7fffffff, 0, 0, AreaName, CounterID),
|
send_100e(16#7fffffff, 0, 0, AreaName, CounterID),
|
||||||
send_0215(0),
|
psu_proto:send_0215(User, 0),
|
||||||
send_0215(0),
|
psu_proto:send_0215(User, 0),
|
||||||
send_020c(),
|
send_020c(),
|
||||||
send_1202(),
|
send_1202(),
|
||||||
send_1204(),
|
send_1204(),
|
||||||
@ -1192,10 +1192,6 @@ send_0210() ->
|
|||||||
- calendar:datetime_to_gregorian_seconds({{1970, 1, 1}, {0, 0, 0}}),
|
- calendar:datetime_to_gregorian_seconds({{1970, 1, 1}, {0, 0, 0}}),
|
||||||
send(<< (header(16#0210))/binary, 0:32, CurrentTime:32/little-unsigned-integer >>).
|
send(<< (header(16#0210))/binary, 0:32, CurrentTime:32/little-unsigned-integer >>).
|
||||||
|
|
||||||
%% @todo No idea what this do. Nor why it's sent twice when loading a counter.
|
|
||||||
send_0215(N) ->
|
|
||||||
send(<< (header(16#0215))/binary, N:32/little-unsigned-integer >>).
|
|
||||||
|
|
||||||
%% @todo End of character loading. Just send it.
|
%% @todo End of character loading. Just send it.
|
||||||
send_021b() ->
|
send_021b() ->
|
||||||
send(header(16#021b)).
|
send(header(16#021b)).
|
||||||
|
@ -949,6 +949,11 @@ send_020e(DestUser, Filename) ->
|
|||||||
Size = byte_size(File),
|
Size = byte_size(File),
|
||||||
packet_send(DestUser#egs_user_model.socket, << 16#020e0300:32, 16#ffff:16, 0:272, Size:32/little, 0:32, File/binary, 0:32 >>).
|
packet_send(DestUser#egs_user_model.socket, << 16#020e0300:32, 16#ffff:16, 0:272, Size:32/little, 0:32, File/binary, 0:32 >>).
|
||||||
|
|
||||||
|
%% @todo No idea what this is doing.
|
||||||
|
send_0215(DestUser, UnknownValue) ->
|
||||||
|
#egs_user_model{socket=CSocket, id=GID, lid=LID} = DestUser,
|
||||||
|
packet_send(CSocket, << 16#02150300:32, LID:16/little, 0:144, 16#00011300:32, GID:32/little, 0:64, UnknownValue:32/little >>).
|
||||||
|
|
||||||
%% @todo Inventory related. Doesn't seem to do anything.
|
%% @todo Inventory related. Doesn't seem to do anything.
|
||||||
send_0a05(DestUser) ->
|
send_0a05(DestUser) ->
|
||||||
#egs_user_model{socket=CSocket, id=GID, lid=LID} = DestUser,
|
#egs_user_model{socket=CSocket, id=GID, lid=LID} = DestUser,
|
||||||
|
Loading…
Reference in New Issue
Block a user