EvenLessSpam
Active member
- Joined
- Oct 31, 2005
- RedCents
- 91¢
Anyone got the latest #define PKT_OPEN_OBJECT offset? Or is it unchanged for 2005-12-07?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.


EvenLessSpam said:Anyone got the latest #define PKT_OPEN_OBJECT offset? Or is it unchanged for 2005-12-07?
outdated

// acquire target
PSPAWNINFO Target = (PSPAWNINFO)pTarget;
if (Target->Type =
// setup move packet
struct _MOVEPKT {

codecaster said:Hell yea, rg01... but...
Rich (BB code):// acquire target PSPAWNINFO Target = (PSPAWNINFO)pTarget; if (Target->Type = // setup move packet struct _MOVEPKT {
..hehe
-CodeCaster

I don't know for sure, but reading the comments in the code, makes me think that it warps you to the chest, opens it and warps you back.Mantisknight said:Does this plugin warp you to object, open then warp you back, or Just remove the distance check for /open?
// init move packet
ZeroMemory(&P, sizeof(P));
P.SpawnID = (unsigned short)pChar->SpawnID;
P.Heading = (unsigned int)(pChar->Heading * 4);
// jump to
P.Z = Target->Z;
P.Y = Target->Y;
P.X = Target->X;
SendEQMessage(PKT_UPDATE_POSITION, &P, sizeof(P));
// open
SendEQMessage(PKT_OPEN_OBJECT, "", 0);
// jump back
P.Z = pChar->Z;
P.Y = pChar->Y;
P.X = pChar->X;
SendEQMessage(PKT_UPDATE_POSITION, &P, sizeof(P));
EvenLessSpam said:I don't know for sure, but reading the comments in the code, makes me think that it warps you to the chest, opens it and warps you back.
Rich (BB code):// init move packet ZeroMemory(&P, sizeof(P)); P.SpawnID = (unsigned short)pChar->SpawnID; P.Heading = (unsigned int)(pChar->Heading * 4); // jump to P.Z = Target->Z; P.Y = Target->Y; P.X = Target->X; SendEQMessage(PKT_UPDATE_POSITION, &P, sizeof(P)); // open SendEQMessage(PKT_OPEN_OBJECT, "", 0); // jump back P.Z = pChar->Z; P.Y = pChar->Y; P.X = pChar->X; SendEQMessage(PKT_UPDATE_POSITION, &P, sizeof(P));
// cronic
#include "../MQ2Plugin.h"
#ifdef PKT_UPDATE_POSITION
#undef PKT_UPDATE_POSITION
#endif
#define PKT_UPDATE_POSITION 0x7B59
#define PKT_OPEN_OBJECT 0x340B
PreSetup("MQ2COpen");
VOID OpenCmd(PSPAWNINFO pChar, PCHAR szLine)
{
// check for target
if (!pTarget || !ppTarget) return;
// acquire target
PSPAWNINFO Target = (PSPAWNINFO)pTarget;
struct _MOVEPKT {
/*0000*/ unsigned short SpawnID;
/*0002*/ unsigned short TimeStamp;
/*0004*/ int DeltaHeading:16;
/*0006*/ int padding0020:16;
/*0008*/ float DeltaZ;
/*0012*/ float Y;
/*0016*/ int Animation:16;
/*0018*/ int Heading:16;
/*0020*/ float X;
/*0024*/ float DeltaY;
/*0028*/ float DeltaX;
/*0032*/ float Z;
} 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 = Target->Z;
P.Y = Target->Y;
P.X = Target->X;
SendEQMessage(PKT_UPDATE_POSITION, &P, sizeof(P));
// open
SendEQMessage(PKT_OPEN_OBJECT, "", 0);
// jump back
P.Z = pChar->Z;
P.Y = pChar->Y;
P.X = pChar->X;
SendEQMessage(PKT_UPDATE_POSITION, &P, sizeof(P));
}
PLUGIN_API VOID InitializePlugin(VOID)
{
AddCommand("/open", OpenCmd);
}
PLUGIN_API VOID ShutdownPlugin(VOID)
{
RemoveCommand("/open");
}
thez said:#define PKT_OPEN_OBJECT 0x340B
Needs to be updated.
Is this plugin working?
#define PKT_OPEN_OBJECT 0x2AD4 // 4-19-06
Sony said:Fixed bug wuch caused interactive objects to not display their names when targeted.
