From 4b02d01243eeb6b31c57e5220914b9e5e7c7bfe8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Jul 2016 20:49:31 +0300 Subject: Impliment packet SMSG_HOMUNCULUS_EXP 0x0b22. For now it show homunculus exp over player ovner. But probably need show it over homunculus. --- src/net/eathena/homunculusrecv.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/net/eathena/homunculusrecv.cpp') diff --git a/src/net/eathena/homunculusrecv.cpp b/src/net/eathena/homunculusrecv.cpp index 2366b639b..4511d89b1 100644 --- a/src/net/eathena/homunculusrecv.cpp +++ b/src/net/eathena/homunculusrecv.cpp @@ -25,6 +25,7 @@ #include "being/homunculusinfo.h" #include "being/playerinfo.h" +#include "being/localplayer.h" #include "enums/resources/notifytypes.h" @@ -205,4 +206,12 @@ void HomunculusRecv::processHomunculusFood(Net::MessageIn &msg) } } +void HomunculusRecv::processHomunculusExp(Net::MessageIn &msg) +{ + const int exp = msg.readInt32("exp"); + msg.readInt32("unused"); + if (localPlayer) + localPlayer->addHomunXpMessage(exp); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50