With this loaded, right clicking on an npc will cause you to inspect it, just like a player. The window will reflect all equipment that the npc is actually wearing. As far as I know, this doesn't work on PoP+ mobs.
Note: This must be recompiled on every patch or it will crash you. Because of this, I'm not posting a dll.
cronic
Note: For some reason, the message board has added spaces to the below code that must be removed before you can compile. Find this line:
DETOUR_TRAMPOLINE_EMPTY(void PlayerClick_Hook::RightClickedOnPlayer_Tramp(PSPAW NINFO));
And replace it with:
DETOUR_TRAMPOLINE_EMPTY(void PlayerClick_Hook::RightClickedOnPlayer_Tramp(PSPAWNINFO));
Note: This must be recompiled on every patch or it will crash you. Because of this, I'm not posting a dll.
cronic
Note: For some reason, the message board has added spaces to the below code that must be removed before you can compile. Find this line:
DETOUR_TRAMPOLINE_EMPTY(void PlayerClick_Hook::RightClickedOnPlayer_Tramp(PSPAW NINFO));
And replace it with:
DETOUR_TRAMPOLINE_EMPTY(void PlayerClick_Hook::RightClickedOnPlayer_Tramp(PSPAWNINFO));
Rich (BB code):
// cronic
#include "../MQ2Plugin.h"
PreSetup("MQ2CInspect");
class PlayerClick_Hook
{
public:
void RightClickedOnPlayer_Tramp(PSPAWNINFO);
void RightClickedOnPlayer_Detour(PSPAWNINFO pSpawn)
{
if (pSpawn->Type == SPAWN_NPC)
{
PSPAWNINFO pCopy = new SPAWNINFO;
memcpy(pCopy, pSpawn, sizeof(SPAWNINFO));
pCopy->Type = SPAWN_PLAYER;
RightClickedOnPlayer_Tramp(pCopy);
delete pCopy;
}
else
{
RightClickedOnPlayer_Tramp(pSpawn);
}
}
};
DETOUR_TRAMPOLINE_EMPTY(void PlayerClick_Hook::RightClickedOnPlayer_Tramp(PSPAWNINFO));
PLUGIN_API VOID InitializePlugin(VOID)
{
EzDetour(CEverQuest__RightClickedOnPlayer, PlayerClick_Hook::RightClickedOnPlayer_Detour, PlayerClick_Hook::RightClickedOnPlayer_Tramp);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
RemoveDetour(CEverQuest__RightClickedOnPlayer);
}
Last edited:


