From 1a4218d46ecbed547be1a6849448bbfa3ef82bf3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 Jul 2016 20:51:19 +0300 Subject: Add homunculus exp packet (0xb22) --- src/emap/homunculus.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/emap/homunculus.c (limited to 'src/emap/homunculus.c') diff --git a/src/emap/homunculus.c b/src/emap/homunculus.c new file mode 100644 index 0000000..df9bafb --- /dev/null +++ b/src/emap/homunculus.c @@ -0,0 +1,24 @@ +// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// Copyright (c) 2014 - 2015 Evol developers + +#include "common/hercules.h" + +#include +#include +#include + +#include "common/HPMi.h" +#include "common/nullpo.h" + +#include "emap/send.h" + +int ehomunculus_gainexp_pre(struct homun_data **hdPtr, + unsigned int *expPtr) +{ + struct homun_data *hd = *hdPtr; + nullpo_ret(hd); + const int exp = *expPtr; + + send_homun_exp(hd, exp); + return 0; +} -- cgit v1.2.3-70-g09d2