1. sObjectMgr.GetPlayer замени на ObjectAccessor::FindPlayer
2. if (!targetpl->IsInWorld()) не нужно
3. в ObjectAccessor.h:
Код:
static Player* FindPlayer(ObjectGuid guid);
попробуй заменить на
Код:
static Player* MANGOS_DLL_SPEC FindPlayer(ObjectGuid guid);