psu_proto: Pass the process state to send_0205.

This commit is contained in:
Loïc Hoguin 2010-09-22 03:10:53 +02:00
parent 18d97c2ca3
commit 91f32909bd
3 changed files with 5 additions and 6 deletions

View File

@ -271,7 +271,7 @@ event({counter_enter, CounterID, FromZoneID, FromMapID, FromEntryID}, State=#sta
psu_proto:send_010d(User#egs_user_model{lid=0}, State), psu_proto:send_010d(User#egs_user_model{lid=0}, State),
psu_game:send_0200(mission), psu_game:send_0200(mission),
psu_game:send_020f(ZoneFile, 0, 16#ff), psu_game:send_020f(ZoneFile, 0, 16#ff),
psu_proto:send_0205(User, 0), psu_proto:send_0205(User, 0, State),
psu_game:send_100e(16#7fffffff, 0, 0, AreaName, CounterID), psu_game:send_100e(16#7fffffff, 0, 0, AreaName, CounterID),
psu_proto:send_0215(User, 0), psu_proto:send_0215(User, 0),
psu_proto:send_0215(User, 0), psu_proto:send_0215(User, 0),

View File

@ -164,7 +164,7 @@ area_load(AreaType, IsStart, SetID, OldUser, User, QuestFile, ZoneFile, AreaName
send_020f(ZoneFile, SetID, SeasonID); send_020f(ZoneFile, SetID, SeasonID);
true -> ignore true -> ignore
end, end,
psu_proto:send_0205(User#egs_user_model{lid=0}, IsSeasonal), psu_proto:send_0205(User, IsSeasonal, State),
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 ->
psu_proto:send_0215(User#egs_user_model{lid=0}, 0), psu_proto:send_0215(User#egs_user_model{lid=0}, 0),

View File

@ -1197,10 +1197,9 @@ send_0202(#state{socket=Socket, gid=DestGID}) ->
%% @doc Make the client load a new map. %% @doc Make the client load a new map.
%% @todo We set a value of 1 and not 0 after EntryID because this value is never found to be 0. %% @todo We set a value of 1 and not 0 after EntryID because this value is never found to be 0.
send_0205(DestUser, IsSeasonal) -> send_0205(CharUser, IsSeasonal, #state{socket=Socket, gid=DestGID, lid=DestLID}) ->
#egs_user_model{socket=CSocket, id=GID, lid=LID, area=Area, entryid=EntryID} = DestUser, #egs_user_model{area=#psu_area{zoneid=ZoneID, mapid=MapID}, entryid=EntryID} = CharUser,
#psu_area{zoneid=ZoneID, mapid=MapID} = Area, packet_send(Socket, << 16#02050300:32, DestLID:16/little, 0:144, 16#00011300:32, DestGID:32/little, 0:64,
packet_send(CSocket, << 16#02050300:32, LID:16/little, 0:144, 16#00011300:32, GID:32/little, 0:64,
16#ffffffff:32, ZoneID:32/little, MapID:32/little, EntryID:32/little, 1:32/little, 0:24, IsSeasonal:8 >>). 16#ffffffff:32, ZoneID:32/little, MapID:32/little, EntryID:32/little, 1:32/little, 0:24, IsSeasonal:8 >>).
%% @todo No idea what this one does. For unknown reasons it uses channel 2. %% @todo No idea what this one does. For unknown reasons it uses channel 2.