Can't remember where I found this, but shows how a Detour can be used to remove NoTrade, however clientside ONLY. So can use this in Lieu of the SharedBank Offset.
First open eqgame.h and look for this line, this changes each patch but thanks to the people at MQ who find it for us!
mq2notrade:
First open eqgame.h and look for this line, this changes each patch but thanks to the people at MQ who find it for us!
Rich (BB code):
#define EQ_Item__CanDrop 0x4D0030
mq2notrade:
Rich (BB code):
#include "../MQ2Plugin.h"
PreSetup("MQ2NoTrade");
#ifdef EQ_Item__CanDrop
#undef EQ_Item__CanDrop
#endif
#define EQ_Item__CanDrop 0x4D0030 /* 04-19-06 */
class EQ_Item_Detour {
public:
// ***********************************************************************************
// ******Turns all no trade items dropable. All serverside checks are still present,
// However you can still transfer items thru the shared bank with this plugin*****
// ***********************************************************************************
bool CanDrop_Trampoline(float);
bool CanDrop_Detour(float)
{
CanDrop_Trampoline((float)0);
return true;
}
};
DETOUR_TRAMPOLINE_EMPTY(bool EQ_Item_Detour::CanDrop_Trampoline(float));
PLUGIN_API VOID InitializePlugin(VOID)
{
DebugSpewAlways("Initializing MQ2NoTrade");
EzDetour(EQ_Item__CanDrop,EQ_Item_Detour::CanDrop_Detour,EQ_Item_Detour::CanDrop_Trampoline);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
DebugSpewAlways("Shutting down MQ2NoTrade");
RemoveDetour(EQ_Item__CanDrop);
}
Last edited: