From ca250eb246cd8f21c2789d9371964c5766ec7c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 5 Jun 2010 01:42:32 +0200 Subject: [PATCH] game: Add reply to command 170b with sane values. --- p/packet170c.bin | Bin 0 -> 1668 bytes src/egs_game.erl | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 p/packet170c.bin diff --git a/p/packet170c.bin b/p/packet170c.bin new file mode 100644 index 0000000000000000000000000000000000000000..258d0999dbd32249046a6fc0070877efbda3e38b GIT binary patch literal 1668 zcmb_cJ#Q015S`g|&=t^7LbEhfh%Svg$39suVor_`No5_z3WbfWlNA&pBqR_@fs_=` z@DHdckOKLj02=-S6(xUxW*E=S_>6+>DB_BHGjDe1&FmK(UMsx<7XdtT?+_SYyRrlR zuDF{H8H4|d7(sW_J#jdO!R^u)=Qi+u+Z`YT3@?1kV+WI7Y13hhwd?)>aSdBP@I4^l zN`|+1zT5leesNw0-reB5F8vOvXa4Yrl^G$!my>bu7Ju_R4;7!VyoZ*53K;n=mL33( z{a}EXJ=Xm88~h0vC~%1Y9ZCdastML976e)mjA&2&9Dq{gKPu*YL>B)WBkBqfuPpKz)&+4xWAFDnr)&HdR3BY;#PicFhew|vH*DKCj|BLDO>G4AS zd%BMiEz>{J`UKA1|3exr)K8}Ra+f&oy#6ny-`DdvZ~v>h{y@w0kMqW7|8@ta-0{fH zKU3{p;rqR^oiTv*j&NIv-M{HnzRE!R=B}Dy_mBM%zd89wCuS8`)H2)=cF^9{v(Ih_ z!o}-$|JkkQwcKrnBA;qJUxgx{awptd{uc1unOY?A%&$A#q0IcXp;#f<`m@{2b!+tw z-LY|s`>dh+KaHf!otme*r_32OgGC>WvCzGGMvrVjXo!_GJG5n7+!X8cY`zZ`Ji7*y sTBgy$pi5?JeObfaKMrL1i&zc~dusub{MD^kDpidWq~&%q@62lpWMfdBvi literal 0 HcmV?d00001 diff --git a/src/egs_game.erl b/src/egs_game.erl index 9f704da..2082dd0 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -718,6 +718,14 @@ handle(16#1709, CSocket, GID, _, _) -> Packet = << 16#170a0300:32, 0:160, 16#00011300:32, GID:32/little-unsigned-integer, 0:64, 16#01010c08:32 >>, egs_proto:packet_send(CSocket, Packet); +%% @doc Counter-related handler. +%% @todo Find what the heck this packet is. + +handle(16#170b, CSocket, GID, _, _) -> + {ok, File} = file:read_file("p/packet170c.bin"), + Packet = << 16#170c0300:32, 0:160, 16#00011300:32, GID:32/little-unsigned-integer, 0:64, File/binary >>, + egs_proto:packet_send(CSocket, Packet); + %% @doc Counter initialization handler? %% @todo Handle correctly.