diff --git a/src/egs_game.erl b/src/egs_game.erl index 6c1508c..9a00c68 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -275,7 +275,7 @@ event({counter_enter, CounterID, FromZoneID, FromMapID, FromEntryID}, State=#sta 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_020c(User), + psu_proto:send_020c(State), psu_game:send_1202(), psu_game:send_1204(), psu_game:send_1206(), diff --git a/src/psu/psu_game.erl b/src/psu/psu_game.erl index 9c4938a..e6e99ae 100644 --- a/src/psu/psu_game.erl +++ b/src/psu/psu_game.erl @@ -174,7 +174,7 @@ area_load(AreaType, IsStart, SetID, OldUser, User, QuestFile, ZoneFile, AreaName true -> ignore end; true -> - psu_proto:send_020c(User) + psu_proto:send_020c(State) end, if ZoneChange =:= true -> case AreaType of diff --git a/src/psu/psu_proto.erl b/src/psu/psu_proto.erl index 04609f9..6e902b3 100644 --- a/src/psu/psu_proto.erl +++ b/src/psu/psu_proto.erl @@ -1203,8 +1203,8 @@ send_0205(CharUser, IsSeasonal, #state{socket=Socket, gid=DestGID, lid=DestLID}) 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. -send_020c(DestUser) -> - packet_send(DestUser#egs_user_model.socket, << 16#020c0200:32, 16#ffff0000:32, 0:256 >>). +send_020c(#state{socket=Socket}) -> + packet_send(Socket, << 16#020c0200:32, 16#ffff0000:32, 0:256 >>). %% @doc Send the quest file to be loaded by the client. send_020e(DestUser, Filename) ->