From 87c256edbaa8e68f16a305b720d9da0514973cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 26 Feb 2011 22:55:55 +0100 Subject: [PATCH] psu_proto: Move send_1512 to psu_proto without reviewing it. --- src/psu/psu_game.erl | 7 +------ src/psu/psu_proto.erl | 5 +++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/psu/psu_game.erl b/src/psu/psu_game.erl index 0410d6d..516eb71 100644 --- a/src/psu/psu_game.erl +++ b/src/psu/psu_game.erl @@ -35,7 +35,7 @@ char_load(User, Client) -> psu_proto:send_0222(User#users.uni, Client), psu_proto:send_1500(User#users.character, Client), send_1501(), - send_1512(), + psu_proto:send_1512(Client), %% 0303 psu_proto:send_1602(Client), psu_proto:send_021b(Client). @@ -351,8 +351,3 @@ send_1332() -> send_1501() -> GID = get(gid), send(<< 16#15010300:32, 16#ffff:16, 0:144, 16#00011300:32, GID:32/little, 0:96 >>). - -%% @todo Send an empty blacklist. -send_1512() -> - GID = get(gid), - send(<< 16#15120300:32, 16#ffff:16, 0:144, 16#00011300:32, GID:32/little, 0:46144 >>). diff --git a/src/psu/psu_proto.erl b/src/psu/psu_proto.erl index e40317a..7a8d48e 100644 --- a/src/psu/psu_proto.erl +++ b/src/psu/psu_proto.erl @@ -1638,6 +1638,11 @@ send_1500(Character, #client{socket=Socket, gid=DestGID}) -> Name/binary, RaceBin:8, GenderBin:8, ClassBin:8, VoiceType:8, VoicePitch:8, 0:24, DestGID:32/little, 0:224, Comment/binary, 1, 4, 1, Slot, 0:64 >>). +%% @todo Send an empty blacklist. +%% @todo This packet hasn't been reviewed at all yet. +send_1512(#client{socket=Socket, gid=DestGID}) -> + packet_send(Socket, << 16#15120300:32, 16#ffff:16, 0:144, 16#00011300:32, DestGID:32/little, 0:46144 >>). + %% @todo NPC related packet, sent when there's an NPC in the area. %% @todo This packet hasn't been reviewed at all yet. send_1601(PartyPos, #client{socket=Socket, gid=DestGID}) ->