// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL. // Copyright (c) 2014 - 2015 Evol developers #include "common/hercules.h" #include "common/HPMi.h" #include "common/nullpo.h" #include "char/int_party.h" #include "char/char.h" #include "char/inter.h" #include "char/mapif.h" #include "common/mmo.h" #include "common/sql.h" #include "plugins/HPMHooking.h" int einter_party_check_lv(struct party_data **p) { hookStop(); nullpo_ret(p); // Force EXP sharing to be active if ((*p)->party.exp == 0) { (*p)->party.exp = 1; mapif->party_optionchanged(0, &(*p)->party, 0, 0); inter_party->tosql(&(*p)->party, PS_BASIC, 0); } return 1; } //Party setting change request // Overrides exp to always be true bool einter_party_change_option_pre(int *party_id __attribute__ ((unused)), int *account_id __attribute__ ((unused)), int *exp, int *item __attribute__ ((unused)), int *map_fd __attribute__ ((unused))) { if (!exp) (*exp) = 1; return true; }