psu_proto: Pass the process state to send_0a05.
This commit is contained in:
parent
eca850f396
commit
e3bd9a38a6
@ -267,7 +267,7 @@ event({counter_enter, CounterID, FromZoneID, FromMapID, FromEntryID}, State=#sta
|
||||
%% load counter
|
||||
psu_proto:send_0c00(User),
|
||||
psu_proto:send_020e(QuestFile, State),
|
||||
psu_proto:send_0a05(User),
|
||||
psu_proto:send_0a05(State),
|
||||
psu_proto:send_010d(User#egs_user_model{lid=0}, State),
|
||||
psu_game:send_0200(mission),
|
||||
psu_game:send_020f(ZoneFile, 0, 16#ff),
|
||||
|
@ -154,7 +154,7 @@ area_load(AreaType, IsStart, SetID, OldUser, User, QuestFile, ZoneFile, AreaName
|
||||
end,
|
||||
if ZoneChange =:= true ->
|
||||
% load new zone
|
||||
psu_proto:send_0a05(User#egs_user_model{lid=0}),
|
||||
psu_proto:send_0a05(State),
|
||||
if AreaType =:= lobby ->
|
||||
send_0111(6, 0);
|
||||
true -> ignore
|
||||
|
@ -1221,9 +1221,8 @@ send_0216(IP, Port, #state{socket=Socket, gid=DestGID}) ->
|
||||
packet_send(Socket, << 16#02160300:32, 16#ffff:16, 0:144, 16#00000f00:32, DestGID:32/little, 0:64, IP/binary, Port:16/little, 0:16 >>).
|
||||
|
||||
%% @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 >>).
|
||||
send_0a05(#state{socket=Socket, gid=DestGID, lid=DestLID}) ->
|
||||
packet_send(Socket, << 16#0a050300:32, DestGID:16/little, 0:144, 16#00011300:32, DestLID:32/little, 0:64 >>).
|
||||
|
||||
%% @doc Quest init.
|
||||
%% @todo When first entering a zone it seems LID should be set to ffff apparently.
|
||||
|
Loading…
Reference in New Issue
Block a user