• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

MQ2CInspect

cronic

Member
Joined
Apr 8, 2005
RedCents
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));

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:
There's 2 spaces this code that will break it. Right here:

DETOUR_TRAMPOLINE_EMPTY(void PlayerClick_Hook::RightClickedOnPlayer_Tramp(PSPAW NINFO));

Make it look like this:

DETOUR_TRAMPOLINE_EMPTY(void PlayerClick_Hook::RightClickedOnPlayer_Tramp(PSPAWNINFO));
 
So with this loaded, will it let us see what loot a mob is holding, aka what the item drops will be once you kill them?
 
jagtry said:
So with this loaded, will it let us see what loot a mob is holding, aka what the item drops will be once you kill them?

Only if they are actually equipping the items, and I don't think any mobs past Luclin equip anything besides weapons. I could be wrong - that's second-hand info.

cronic
 
I'm not posting this month lol... Tryin to get an ipod, but I'm not going to compete with cronic lol.
 
The pheonix mini in pofire(forgive me, I can't remember the name), not one of the pair at the bridge, that drops a pretty nice cloak can be seen wearing it if he has it.
 
hehe tone. iam sure cronic has got ALOT more shit up his sleeves if he really wanted to win. iam sure he would :)
 
Riddlerr said:
hehe tone. iam sure cronic has got ALOT more shit up his sleeves if he really wanted to win. iam sure he would :)

I do want to win, just this once! I'm torn on which kind of mp3 player to get, so I figured this to be a good opportunity to give one a shot. At first I was just going to sell these things that I've been posting and buy an mp3 player with that. At least this way (provided that I get what I'm after), everyone gets some neat toys at no cost.

If I don't get it, then I'll just set up shop!

cronic
 
Keeping getting :

LINK : fatal error LNK1104: cannot open file "detours.lib"
Error executing link.exe.

Ninja edit, after re-downloaded and built a clean copy of mq2 it compiled fine
 
Updated the code. Instead of editing live data, it just makes a dummy copy. This prevents the mobs name from changing quickly between npc colors and player colors, and occasionally (I saw it once) causing the mob to continue to appear to be a PC. It was messy, now it's perfect =P

cronic
 
This is kinda neat =) but not really anything usefull is it?? cant really think of anything this would help ya with
 
I'd imagine it'd still show you whether AoW would drop a BoC or not, because he slashes when he has one. Just seems like a fun plugin, was able to see whether or not the named in the Deep had the shrink wand or the cloak last night by inspecting!
 
hehe, the mobs in the mpg trial of corruption wield alternate version of epics like "dry water sprinkler of nem ankh" and "brittle blade of tallon" (or whatever the war epics are)
 
Oh and btw I meant to say that they were equipping armor too. but it's probably a special case because they're designed to imitate PCs.
 
I have crashed to desktop twice with this, getting error's in eggame.exe when i right click merchent's or try to give tradeable item's to npc's like priest of luclin in guildlobby =p
 
you probly crashed becasue whiel you was trying to inspect them the merchant window was poping up. I belive this is designed for no Merchant/bank mobs.
 
I personally dont see anything that needs to be updated as far as offsets and such are concerned...but if some struct changes or such had occurred it might need to be rewritten..does it not work or have u tried it yet?? i personally dont use this so i dont know much about it
 
this could be useful actually, so you know whether or not it'd be worth killing something for the weapon its holding :p
 
There appears to be a range limit. I have to be right on top of the mob to view it's items... and it pops open an inspect window as if I were inspecting another player. Is that the way it's supposed to work?
 
Should be unless there have been some new struct changes. Last compile it was working, if its not for you try recompiling or checking with whom compiled it for you.
 
Last time I tried it, it would say the inspecting message but no window would come up.
 
MQ2CInspect

Users who are viewing this thread

Back
Top
Cart