Use this in conjunction with /itemtarget to pick up a groundspawn from anywhere. Attached is a compiled version. Have fun.
Instructions:
- Target a ground spawn with /itemtarget.
- Type '/gank'.
Instructions:
- Target a ground spawn with /itemtarget.
- Type '/gank'.
Rich (BB code):
// cronic
#include "../MQ2Plugin.h"
#ifdef PKT_UPDATE_POSITION
#undef PKT_UPDATE_POSITION
#endif
#define PKT_UPDATE_POSITION 0x2B94
#define PKT_GRAB_ITEM 0x3CB2
PreSetup("MQ2CGank");
VOID GankCmd(PSPAWNINFO pChar, PCHAR szLine)
{
// check for target
if (!pTarget || !pGroundTarget) return;
// acquire item
PGROUNDITEM pItem = (PGROUNDITEM)pGroundTarget;
// setup move packet
struct _MOVEPKT {
/*0000*/ unsigned short SpawnID;
/*0002*/ unsigned short TimeStamp;
/*0004*/ int Heading:12;
/*0004*/ int padding1_0004:10;
/*0004*/ int padding2_0004:10;
/*0008*/ float DeltaY;
/*0012*/ float X;
/*0016*/ float DeltaX;
/*0020*/ int DeltaHeading:10;
/*0020*/ int Animation:10;
/*0020*/ int padding0020:12;
/*0024*/ float Z;
/*0028*/ float Y;
/*0032*/ float DeltaZ;
} P;
// init move packet
ZeroMemory(&P, sizeof(P));
P.SpawnID = (unsigned short)pChar->SpawnID;
P.Heading = (unsigned int)(pChar->Heading * 4);
// jump to
P.Z = pItem->Z;
P.Y = pItem->Y;
P.X = pItem->X;
SendEQMessage(PKT_UPDATE_POSITION, &P, sizeof(P));
// gank
struct _GRABITEMPKT {
unsigned long DropID;
unsigned long SpawnID;
} GP;
GP.DropID = pItem->DropID;
GP.SpawnID = pChar->SpawnID;
SendEQMessage(PKT_GRAB_ITEM, &GP, sizeof(GP));
// jump back
P.Z = pChar->Z;
P.Y = pChar->Y;
P.X = pChar->X;
SendEQMessage(PKT_UPDATE_POSITION, &P, sizeof(P));
// clear target
pTarget = 0;
pGroundTarget = 0;
}
PLUGIN_API VOID InitializePlugin(VOID)
{
AddCommand("/gank", GankCmd);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
RemoveCommand("/gank");
}
Last edited:



for cronic. but we will take AdvGhost (z axis hack) he release his version and maybe 3-4 days later. there was emergancy patches in tacvi/txevu/riwwi/rs/rcod. maybe a week or so later. it was damn near complety nerfed. and watched so hard that severel hundred people got banned. and probally thousands of suspended accounts.
Im not too sure many people are using my compile yet, as it was just made sticky, but I would like to know who has got this to work?? And, if u know, what open source files are u using?